Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
189 views
I am trying to set the selected value of the combobox/treeview from a database value. The online example of a treeview in a combobox works great for insert and select operations but if i try to use it in an edit form i can't seem to properly find the treeview in the combobox and set the selected item to the database field. Any examples out there that explain how to do this?

<telerik:RadComboBox ID="comboParent" runat="server">  
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    <ItemTemplate> 
                        <div id="divParentProducts">  
                            <telerik:RadTreeView ID="treeParentProducts" runat="server" DataFieldID="ProductID" DataFieldParentID="ParentProductID" 
                                DataSourceID="sqlProducts" DataTextField="ProductName" DataValueField="ProductID" OnClientNodeClicking="productClicking" 
                                Skin="WebBlue">  
                                <CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation> 
                                <ExpandAnimation Duration="100"></ExpandAnimation> 
                            </telerik:RadTreeView> 
                        </div> 
                    </ItemTemplate> 
                    <Items> 
                        <telerik:RadComboBoxItem Text="" Value="" /> 
                    </Items> 
                </telerik:RadComboBox> 
 


//Found this in another forum answer what would the "THE _ITEM_VALUE" Be in my scenario  
RadComboBoxItem comboBoxItem = comboParent.FindItemByValue("THE_ITEM_VALUE");  
RadTreeView treeView = (RadTreeView)comboBoxItem.FindControl("treeProductHierarchy");  
TreeNode nodetoSelect = parentProducts.FindNode(selected.ParentProductID.ToString());  
nodetoSelect.Selected = true; 
Veselin Vasilev
Telerik team
 answered on 15 Jul 2008
3 answers
141 views
Hi,

I recently installed the RadEditor into DNN.   The editor loads fine and seems to work, until you click an item on the toolbar. 

I get this error when click say the Image / Flash / Media buttons.

Invalid length for a Base-64 char array. 

[FormatException: Invalid length for a Base-64 char array.]
   System.Convert.FromBase64String(String s) +0
   Telerik.Web.Dialogs.DialogParametersSerializer.Deserialize(String serialized) +169
   Telerik.Web.UI.DialogParameters.Deserialize(String source) +6
   Telerik.Web.UI.DialogHandler.GetDialogParameters() +566
   Telerik.Web.UI.DialogHandler.LoadDialogControl() +22
   Telerik.Web.UI.DialogHandler.OnInit(EventArgs e) +214
   System.Web.UI.Control.InitRecursive(Control namingContainer) +321
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834
c




DLL Version 2008.1.515.20 , I Know there is a newer version, wasnt sure if it fixed this error or not and dont want to install if its not compatible.


I have checked to make sure the Dialog Handler was installed correctly also.  At first it wasnt and I had to correct it.  I tested by visiting the "Telerik.Web.UI.DialogHandler.aspx" page.  I got this response: "Loading the dialog...", I'm not sure if that is the correct response or not, but thats what I got.

In DNN I also added the following to the SitUrls.config file.
  <RewriterRule> 
       <LookFor>.*Telerik.Web.UI.DialogHandler.aspx(.*)</LookFor> 
       <SendTo>~/Telerik.Web.UI.DialogHandler.aspx$1</SendTo> 
    </RewriterRule> 


I have also read this KB article: http://www.telerik.com/support/kb/article/b454K-babc-b454T-a-b454c-a.aspx  , although my problem is similar, it does not apply to me because I am using the DNN Provider.  I get this error on all instances of the editor. 

I'm at a loss on what the problem is and have spent alot of time trying to figure this out with no luck.
Lini
Telerik team
 answered on 15 Jul 2008
0 answers
105 views
Hi

I m using trial version of telerik schedular, facing the problem while updating the appointment.
If  I check the all day event check box then my UI gets distorted at the appointment  screen & if i again want to uncheck this checkbox it is not getting update.

Secondly If i check the recurrence rule check box then tis change does not happen.At code behind i still get the status as Non Recurring.

I have also used DataRecurrenceField  & DataRecurrenceParentKeyField in my control.

Thanks & Regards
Sheetal
sheetal
Top achievements
Rank 1
 asked on 15 Jul 2008
1 answer
166 views
Good day. Please suggest a way to add horizontal line between nodes. I'm using the latest version of RadTreeView for ASP.NET AJAX. Thanks in advance.
Yana
Telerik team
 answered on 15 Jul 2008
1 answer
132 views
Hello,

I have a dynamic list of tabs coming from a datasource.  When the page first loads it could be set to any of the tabs in the list (depends on value in query string).

What I want to do is make sure that the scroll position is set so the active tab is visible.

Any help is apprectiated.

Thanks.
Atanas Korchev
Telerik team
 answered on 15 Jul 2008
1 answer
101 views
Hi

I know we can use the following to set the button state:

editor.getToolByName(

"myButton").setState(-1);

But is there a way to GET it's state? I've tried a couple of things but no luck.

Thanks
David

Rumen
Telerik team
 answered on 15 Jul 2008
1 answer
100 views
The OnClientNodeChecked seems to not being called when using Form Decorators on the tree view. If I take the decoration off, everything seems to work ok.

Is this fixed in the future build?

Thanks

-Matt
Georgi Tunev
Telerik team
 answered on 15 Jul 2008
1 answer
83 views
Before I dig into God knows what and waste days of time, I thought I would ask this question.  I have pages that I converted from the older version to the ajax version.  It works perfectly in IE, but looks aweful in Mozilla.  If anybody has had this issue and found some stupid little tweak, please post.

Thanks.
Yana
Telerik team
 answered on 15 Jul 2008
1 answer
140 views

Hi,
This is not a technical question but I need a suggestion

My target is to develop a customizable web-site.
A registered user can build his home page with many widget and he can drop from a list.
The position of these widgets will be save in a database.

I think to use the RadDock object for the container of widget and the functionalities of
RadDockManager for save the position of these widgets.

I think to save the information not in a cookie but in a record of the database.

I wanto to know if this scenario is possible with yours control and if there's example,site
or documentaion tha can help me with my project.

Thanks
Marco Bianchi

Sophy
Telerik team
 answered on 15 Jul 2008
1 answer
372 views
Hi there,

I want to modify the functionality of the EditCommand to redirect to another page, passing the key value in the URL.  Something like this...

protected void RadGrid1_EditCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {

            string sPrimaryKey = ??; // Primary key of selected item

            Response.Redirect("CompanyEdit.aspx?Key=" + sPrimaryKey);

            Response.End();

        }

What's the best way to do that?

Thx!
Justin
Princy
Top achievements
Rank 2
 answered on 15 Jul 2008
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?