Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
92 views
Currently we are working on a new project. With the new RadRibbonBar (using v.2011.1.315.40) - which is very nice - we decide to try to implement a RibbonBar for the RadEditor. Basically we are rewiring all the calls to the RadEditor using the javascript fire() method just as in the example at the demo site.

Sofar this was working perfectly. However when doing:

editor.fire("MediaManager");

we will get the javascript error:

"Runtime-fout Microsoft JScript: Sys.ArgumentNullException: Dialog Parameters for the MediaManager dialog do not exist
Parameter name: dialogName"


A trace on the  editor javascript object showed that

editor._dialogOpener._dialogDefinitions.MediaManager

Is expected but does not exists. (See attachment) For all to other dialogs like 'LinkManager' or 'TableWizard' it the DialogDefinitions are set.

---

To overcome this problem we tried to create a work-arround:

var ImageManagerDefinitions = editor._dialogOpener._dialogDefinitions.ImageManager;
var MediaManagerDefinitions = objectCloner(ImageManagerDefinitions)
MediaManagerDefinitions.Title = "Media Manager";
editor._dialogOpener._dialogDefinitions.MediaManager = MediaManagerDefinitions;

However this is not the full solution.. Because the ImageManager is now loaded. To make the work-arround functional de SerizalizedParameter of the Media Manager is required. Sofar we didn't find out how to get this Parameter.

Hope you can fix this bug and  tell us how to get that SerizalizedParameter  or tell us that we are doing something realy wrong here...





Dobromir
Telerik team
 answered on 01 Apr 2011
1 answer
188 views
Hi,

I am using a TreeView that is bind to databse.
I am using CheckBoxes="true" TriStateCheckBoxes="true"  CheckChildNodes="true"

Look somthing like this but checkbox ;

Node 1 :
  • item 1
  • item 2
  • item 3

Node 2:

  • item 11
  • item 22
  • item 33

How can i find if the parent node is check?
Here what i need to do!

If the user click item 1 and item 3 and click submit
He will recive a message that item 1 and item 3 is check
For that part i have no probleme

But if  he check item 1 , item 2 and item 3 "all the item"  then
He will receive a message that  Node 1 is check


Any idea how can do this?
For the first part i am using something like this :

Dim nodeCollection As IList(Of RadTreeNode) = RadTreeView1.CheckedNodes
  
        For Each node As RadTreeNode In nodeCollection
              MsgBox()
           Next



Princy
Top achievements
Rank 2
 answered on 01 Apr 2011
1 answer
148 views
Hi,

I am using a RadGrid with Column filtering enabled.
What i would like to achieve is to Apply all RadGrid column filters at once with a button_click, and somehow disable the automatic refresh for every single column.

I was thinking i could disable the refresh that is getting triggered after setting a column filter, but was unable to do so.

Any help would be appreciated!
Thanks!
Daniel
Telerik team
 answered on 01 Apr 2011
1 answer
315 views
How to Open a POST Method RadWindow From CodeBehind,
and How to get these Controls Value from Parent Page?

WebForm1.aspx
<telerik:RadTextBox ID="RadTextBoxNodeName" Text="Jeff" Runat="server" /> 
<telerik:RadTextBox ID="RadTextBoxNodeType" Text="Student" Runat="server" />
<telerik:RadTextBox ID="RadTextBoxNodeMemo" Text="Test ..." Runat="server" />
<telerik:RadButton ID="RadButton1" runat="server" Text="OK" onclick="RadButton1_Click">
  
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

WebForm1.aspx.cs
protected void RadButton1_Click(object sender, EventArgs e)   
{  
    RadWindow rwin = new RadWindow();    
    rwin.VisibleOnPageLoad = true;    
    rwin.NavigateUrl = "/window.aspx";
    this.RadWindowManager1.Windows.Add(rwin);   
}

Window.aspx
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

Window.aspx.cs
private void Page_Load(object sender, System.EventArgs e)   
{  
    this.Label1.Text = Request.HttpMethod;  // Post or Get
}
Princy
Top achievements
Rank 2
 answered on 01 Apr 2011
3 answers
382 views
Hi all,
I've got a problem with radtextbox in my page. If I use javascript to insert text in a RadTextBox I can do it easily and it works well, but if I try to access thata text server-side, radtextbox.text property is ALWAYS empty, even if I type into it, not only if I set it using Javascript.

My text box is defined as follow
<telerik:RadTextBox TextMode="MultiLine" runat="server" ID="txtNote" MaxLength="512" Rows="5" Width="100%" />

Kind regards
Riccardo
Riccardo
Top achievements
Rank 1
 answered on 01 Apr 2011
7 answers
362 views
Hi,

I have been unsuccessful in my attempts to install Telerik.Web.ui.dll into the GAC on our Win 2008 server r2.  I have tried everything from drag drop to windows\assembly (doesn't show an error, doesn't install) to gacutil from 2.0 sdk (error with telerik assy being greater than current assembly) to gacutil 4.0 from VS 2010 tools.  I am running my sites under .NET 4.0 and have set all application pools to use .NET 4.0. 

Is there any way to do this other than placing the telerik.web.ui.dll in each bin folder for each app?

Thanks!
Vasil
Telerik team
 answered on 01 Apr 2011
1 answer
131 views
Hi,

I want to use seperator at my combobox. But i want to see this seperator like menu's one. Is it possible? If yes how?
Princy
Top achievements
Rank 2
 answered on 01 Apr 2011
4 answers
154 views
Hello,
I would like to use a RadToolTip to add, modify items from a RadGrid.
It works well but when I add to the radtooltip a RequiredFieldValidator and ValidationSummary, the radtooltip doesn't work.

Could you help me ?

Here are the javascript an HTML:

<

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

    <script type="text/javascript">

 

        function

 

CloseToolTip()

 

 

        {

 

 

            var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();

 

 

 

            if(tooltip)

 

 

                { tooltip.hide(); };

 

        }

        function

 

OkToolTip()

 

 

        {

 

            CloseToolTip();

 

            ajaxManager.ajaxRequest(

"RT_LOT");

 

 

        }

    </

 

script>

 

</

 

telerik:RadCodeBlock>

 


<

 

telerik:RadToolTip ID="RT_LOT" runat="server" HideEvent="FromCode" Modal="True"

 

 

Position="Center" RelativeTo="BrowserWindow" ShowCallout="False">

 

 

<br />

 

 

    <table style="border-color: #0000FF; border-width: 10px; width: 100%; text-align: left;">

 

 

        <tr>

 

 

            <td><asp:Label ID="RT_LOT_LibLabel" runat="server"></asp:Label></td>
            <td><asp:RequiredFieldValidator ID="RT_LOT_RFV" runat="server" Display="Dynamic" ErrorMessage="Erreur"

 

 

ControlToValidate="RT_LOT_Lib" SetFocusOnError="True">*</asp:RequiredFieldValidator></td>

 

 

            <td><asp:TextBox ID="RT_LOT_Lib" runat="server" Width="336px"></asp:TextBox></td>

 

 

        </tr>

 

 

        <tr>

 

 

            <td colspan="3"><asp:ValidationSummary ID="RT_LOT_ValidationSummary" DisplayMode="BulletList" runat="server" /></td>

 

 

        </tr>

 

 

        <tr>

 

 

            <td><input id="RT_LOT_Ok" runat="server" type="button" value="Ok" onclick="OkToolTip();"

 

 

                style="width: 80px; color: #008000; font-weight: bold;" /></td>

 

 

            <td></td>

 

 

            <td><input id="RT_LOT_AnnBt" type="button" value="Annuler" onclick="CloseToolTip();"

 

 

style="width: 80px; color: #FF0000; font-weight: bold;" /></td>

 

 

        </tr>

 

 

    </table>

 

 

</telerik:RadToolTip>

 


Here is the code behind:
// Ajaxifying

protected

 

void Page_Load(object sender, EventArgs e)

 

 

{

 

 

    try

 

    {
        

radAjaxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);

 

        radAjaxManager.AjaxSettings.AddAjaxSetting(toolBar, RT_LOT);
    }

 

    catch (Exception err)

 

 

    {...

}

 

 

}


// open the RadToolTip from a toolbar:

protected

 

void toolBar_ButtonClick(object sender, RadToolBarEventArgs e)

 

 

{

 

 

    try

 

    {

 

        switch (e.Item.Value)

 

 

        {

 

 

            case @"CRT":
                ...

 

                RT_LOT.Show();

 

                break;

 

        }

    }

 

    catch (Exception err)

 

 

        {...

}

 

}
// get the data from the RadToolTip

protected

 

void manager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)

 

 

{

 

 

    try

 

    {

 

        if (e.Argument == @"RT_LOT")

 

 

        {

 ... };

 

 

    }

 

 

    catch (Exception err)

 

 

        { ...

}

 

 

}


Many thanks...
Bernard
Bernard
Top achievements
Rank 1
 answered on 01 Apr 2011
1 answer
90 views
Is there a way to hide the expand link on a radgrid if no data falls underneath the main grid.  People consitently pick on every expand link just to see no data associated with it, can this be changed to be hidden.  And is ther a way to change the picture of the expand link to a plus sign instead of an arrow.
Princy
Top achievements
Rank 2
 answered on 01 Apr 2011
6 answers
967 views
Is it possible to pass parameters other than row index, max rows, filter, and sort to the Web Method?  I can't seem to find any examples.  I have a RadGrid successfully using a Web Service to do client-side data binding, but I need it to pass in some extra parameters.

I'm thinking that I *might* be able to do this by passing the other parameters as part of the filter parameters and then handling that in the Web Service, but that just seems like a hack. :-)
Nicholas
Top achievements
Rank 1
 answered on 01 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?