Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
Hi, i have a question: can i put the Option Panel (the panel that appear on the right when i edit the radeditor webpart) into a div or into the page in a custom position? i know that for the base editor of wss i can "anchor" the panel into a div with an id on it that tell to sharepoint where to put the panel in.

...thanks!
Stanimir
Telerik team
 answered on 23 Feb 2009
1 answer
166 views
Hi,
I'm trying to do something with radgrid.
I have 30 columns, and I set width of grid = 900px, and horizontal scroll doesn't appear. But if I set width of each columns scroll appears.
How to make: I'm not set width of columns and scroll (horizontal) appears when contents of columns is greater then width's grid?
Thank You.
Dimo
Telerik team
 answered on 23 Feb 2009
1 answer
92 views
Hello everyone,

I am using dock control in one of my application. and on drag and drop, frequely this rror occurs.
Suddenly dock appear twice....
can you please help me to shortout this error.


http://121.247.170.47/Dezision/Attachment/dock%20error.jpg

Thanks in advance,
Mayur
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 23 Feb 2009
1 answer
99 views
Hello everyone,

I am using dock control in one of my application. and on drag and drop, frequely this rror occurs.
Suddenly dock appear twice....
can you please help me to shortout this error.


http://121.247.170.47/Dezision/Attachment/dock%20error.jpg

Thanks in advance,
Mayur
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 23 Feb 2009
0 answers
195 views
Hi

I using List<SiteDataItem> siteData = new List<SiteDataItem>(); datasource for RadTreeView. How can I add ImageUrl all RadTreeView node?

 DataTable dt = FoldersToTable();  
        List<SiteDataItem> siteData = new List<SiteDataItem>();  
 
        RadTreeNode myNod = new RadTreeNode();  
 
        for (int i = 0; i < dt.Rows.Count; i++)  
        {  
            string Name = dt.Rows[i]["Name"].ToString();  
            string FullName = dt.Rows[i]["FullName"].ToString();  
            int ParentId = int.Parse(dt.Rows[i]["ParentId"].ToString());  
            int ID = int.Parse(dt.Rows[i]["ID"].ToString());  
 
            if (ID == ParentId)  
            {  
                Name = "<a  Target='main' href=../Mail/Mail/Inbox.aspx?folderName=" + HttpUtility.UrlEncode(Name) + ">" + mailCounts(Name, Name) + "</a>";  
                siteData.Add(new SiteDataItem(ID, null, Name, ""));  
            }  
            else  
            {  
                Name = "<a Target='main' href=../Mail/Mail/Inbox.aspx?folderName=" + HttpUtility.UrlEncode(FullName) + ">" + mailCounts(FullName, Name) + "</a>";  
                siteData.Add(new SiteDataItem(ID, ParentId, Name, ""));  
            }  
        }  
 
     
        RadTreeView1.DataTextField = "Text";  
        RadTreeView1.DataNavigateUrlField = "Url";  
        RadTreeView1.DataFieldID = "ID";  
        RadTreeView1.DataFieldParentID = "ParentID";  
        RadTreeView1.DataSource = siteData;  
        RadTreeView1.DataBind(); 
ali
Top achievements
Rank 1
 asked on 23 Feb 2009
1 answer
207 views

I have a client side code in which I use the RadAjaxManager to make a service side request using the ajaxRequest method. The first time the ajax request is called in my javascript, I get a javascript error. Every time after that, the code works fine. The error says 'length' is null or not an object. I do not use length in any part of my web page or in any javascript. Moreover, it says it's occuring on line 20838...I do not even have that many lines! This makes me think it is a problem with Teleriks script. Below are some code snippets of what I am trying to do:

aspx:
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server"
        EnableTheming="True">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
.....

           <script>

                             function mouseUp(e) {

 

                                    //Initiate AJAX request to update the page
                                    //$find("<%=RadAjaxManager1.ClientID%>").ajaxRequest(arguments)

                                    var ajaxManager = $find("<%=RadAjaxManager1.ClientID%>");
                                    ajaxManager.ajaxRequest();
                                    alert(ajaxManager);

                                }
                            }
              </script>

code behind:
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
}
        

If it makes any difference, this is being done during a grid row being dragged onto a tree node and the ajax request is being made on the mouse up over a tree node.

Also, without the alert after the ajaxRequest(), I wouldn't see the javascript error...the code would never reach the signature in the code behind. Again, this only occurs on the first time the code runs throught...each subsequent time it functions as desired.


I just discovered that the ajaxRequest() doesn't go to the code behind on the first call only when it inside a check I am making. If I put it outside an if statement, the request goes to my code behind to execute the code. However, during this first call, the javascript method is reaching and finding the ajax manager. 

if (destinationNode) {

                                    var ajaxManager = $find("<%=RadAjaxManager1.ClientID%>");
                                    alert('ajaxManager ');

                                    ajaxManager.ajaxRequest();
}

...Above: the alert gets hit but the ajaxRequest never posts to the code behind (on the first call only)

If I move this code outside of the if statement, the request gets made. This seems odd. Does it look like I have a problem?

Yavor
Telerik team
 answered on 23 Feb 2009
3 answers
154 views
Hi,

I'm using Asp.net AJAX Q1 2008. Recently I've implemented RadEditor to production server, I've got problem when tried to open image manager dialog, Flash Manager Dialog and Media Manager Dialog, it always shows 'The page cannot be found' but it is working with image map editor dialog. Any Idea what is wrong with this??

Here is the error screenshot: http://www.bansra.go.th/1.png

and here is what happen when open Image Map Edior Dialog(working fine!!): http://www.bansra.go.th/2.png

And what I found out is all dialogs comes from same url
(http://bansra.go.th/admin/uc/news/Telerik.Web.UI.DialogHandler.aspx) but different parameters, is this what it cause the problem??

this is <httpHandlers> in my web.config.

<httpHandlers>
      <remove path="*.asmx" verb="*" />
      <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
       validate="false" />
      <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
       validate="false" />
      <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
       validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
       validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
       validate="false" />
    </httpHandlers>

Please help I need to solve it Yesterday, tried to browse Knowledge base but found nothing related.

PS. All other controls are working fine under this server.

Thanks,
Paul
Rumen
Telerik team
 answered on 23 Feb 2009
5 answers
136 views
Hi,

I am programmatically constructing my Splitter layout. It's all working great, but I can't figure out how to expand the panel on creation.

I am loading the settings from an XML file. The following is what I think is the relevant snippet:

                        // create a tab panel 
            RadPane radTabContainerPane = new RadPane(); 
            radTabContainerPane.Width = new Unit(22, UnitType.Pixel); 
            radTabContainerPane.Scrolling = SplitterPaneScrolling.None; 
            radTabContainerPane.MinWidth = 22; 
 
            // create a sliding zone 
            RadSlidingZone radSlidingZone = new RadSlidingZone(); 
            radSlidingZone.Width = new Unit(22, UnitType.Pixel); 
            radSlidingZone.SlideDirection = direction; 
            radSlidingZone.ClickToOpen = true
             
                        // populate children 
            XmlNodeList paneXmlNodes = parentPaneXmlNode.SelectNodes("Pane"); 
            foreach (XmlNode paneXmlNode in paneXmlNodes) 
            { 
                RadSlidingPane radPane = new RadSlidingPane(); 
                radPane = (RadSlidingPane)PopulateRadPaneFromPaneXmlNode(radPane, paneXmlNode,parentRadSplitter.Orientation); 
                                // ??? HOW TO SET PANE AS EXPANDED ??? 
                radSlidingZone.Items.Add(radPane); 
            } 
 
            radTabContainerPane.Controls.Add(radSlidingZone); 
 
            parentRadSplitter.Items.Add(radTabContainerPane); 

It seems that the "Expanded" property is the only thing missing from your API, I must be missing something.

Many thanks

Svetlina Anati
Telerik team
 answered on 23 Feb 2009
1 answer
160 views
I am trying to use the update command capability of the SqlDataSource control.  I only have two parameters to pass to the command.  When both parameters (@key_id, @value) are the default value of the controls used to get them the procedure works correctly.  The difficult comes when I want to use a multiselect list box to collect correct values for the @value parameter.  The approach I am trying to take is to use the updating event of the SqlDataSource to get the values for the listbox. The code I have is shown below.  

This approach works when I set the code in newcodeblock  to:   GetAllValues = "blue"      but obviously with the wrong value. 

What I need to know is which parameter (sender or e) can I pass to the function GetAllParmeters to extract a reference to the mutliselect listbox so that I can get the selected values and assemble them into their correct form (e.g. a concatonated string).

If a reference to the listbox cannot be obtained at this point, is there a way of getting the correct values another way?


 

Protected Sub SqlDataSource1_Updating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SqlDataSource1.Updating

 

    e.Command.Parameters(

"@value").Value = GetAllValues(sender)  
End
Sub

 

Private Function GetAllValues(ByVal sender As Object) As System.String  
    'do something to set a reference to the listbox so selected values can be concatonated
newcodeblock

End Function

 

 

 



Shinu
Top achievements
Rank 2
 answered on 23 Feb 2009
1 answer
119 views
Hello All,

We're trying to accomplish something fairly simple. We have a grid with 4 columns, the first being a name, the last three being checkbox columns. Via javascript, we want to automatically check additional column/rows in our grid. So, we hooked up to the onclick() event just fine, but because the entire row is selected, we're just getting the checkbox that was selected and having a difficult time determining exactly what checkbox that is. What we want to do, is for instance, if the check the checkbox in column 4, automatically check the boxes in 3 and 2 of the same row, but we're having a tough time after we capture the onclick().

Any examples or suggestions would be greatly appreciated,
Ryan
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?