Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
hi,
my code has been attached to the following website
http://www.prabirshrestha.com/telerikproblem3.zip
i use telerik radcontrols for asp.net ajax q1 2008. (I have not included the bin folder).

I want to set the initial value to of the combobox which containts a treeview inside. the treeview is populated on demand.
if u look at the code, suppose i click a treeview at the left . for example categories>electronics>mobile. and click the update button in the formview, the parentId is always reseted to 0. so how do set the initial value and text of the combobox to the parentId.

i would also want the treeview inside the combobox to automatically expand to the specified parentId node, when the combobox is opened for the first time.

thanks
Veselin Vasilev
Telerik team
 answered on 10 May 2008
2 answers
112 views
I have a templated radcombobox, which contains radtreeview inside. My treeview is loaded on demand using serversidecallback.
This Combobox is inside a formview and uses objectdatasource, and is supposed to contain the value "ParentId" which is retrieved from objectdatasource.
By using ajax javascript, i have managed to set the value of combobox using set_value() in treeview, onclientnodeclick. so when i click update after click a tree node it works.
but, since treeview is populated on demand, i would like to set the inital value of combobox to be retrieved from object datasource but don't populate the treenodes. if i dont set the intial value, that means i have not selected the node, so the parentnode is always 0 or null.
when the combobox is dropped down for the first time, i would like it to auto load the treenodes to the specified node.
i cannot use selectedvalue of the combobox because the treeview is populated on demand? any ideas?
Veselin Vasilev
Telerik team
 answered on 10 May 2008
1 answer
239 views
I have a RadTreeView that is using LoadOnDemand.  My ExpandMode is set to ServerSide, but the Loading Message never displays.

If I change the ExpandMode to ServerSideCallback, then the Loading message is displayed in the tree node being expanded, but the OnNodeExpand function is not called and the loading message is left in the tree.

If I disable Ajax, then the loading and callback function all seem to work, but I want to keep Ajax enable to update other parts of the screen.

How can I implement a Loading Message in a RadTreeView when when using server side load on demand and Ajax?

I am using .NET 3.5, c# and the most recent ASP.NET AJAX controls.

Tim
Veselin Vasilev
Telerik team
 answered on 10 May 2008
2 answers
242 views
In response to user selection I want to add tabs dynamically and corresponding pageview.

I have this working, but the tab doesn't seem to be linked to the PageView (ie: I click on the tab and the pageview doesn't change).  How do I link the two of them.

The tabs and pagview are created through an ajax call.
Marty
Top achievements
Rank 1
 answered on 10 May 2008
2 answers
140 views
Hello,

I kinda combined this sample http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/DataEditing/UserControlEditForm/DefaultCS.aspx with a 2 level hierarchy.

Both levels have a usercontrol for display and edit information( and inserting). All works lovely. The only trouble is with retrieving the parentid while inserting in a client usercontrol.

Is there a sample around how to make this work ?

thanks!

--jw

jan willem fransen
Top achievements
Rank 1
 answered on 10 May 2008
1 answer
245 views
I have not been able to find a decent solution for this issue:

I am allowing the user to upload files from my application.  If the user attempts to upload a file that exists, I want to prompt them with the opportunity to overwrite the file or cancel the operation.

Any suggestions?

Thanks,

- Adam
Sophy
Telerik team
 answered on 10 May 2008
1 answer
176 views
Hi, I am using RadTreeView for ASP.NET AJAX. I want to change the HoveredCssClass for the tree nodes which are created using Customerized Template while applying the "Default" skin for the rest tree nodes. What I did is: I created a css class and put it in my main .css file and in my program, I assigned the css to the tree nodes created from template. However, the HoveredCssClass doesn't see to use my stylesheet. So I tried change CssClass and SelectedCssClass as well and fount out the CssClass works, but SelectedCssClass doesn't work either. Can you help here? The following is my code snipet:

node5.NodeTemplate =

new CustomizedTemplates.MyTemplate(dr);
node5.CssClass = "MyNodeCss";
node5.HoveredCssClass = "MyNodeHoveredCss";
node5.SelectedCssClass = "MyNodeSelectedCss";

Thanks.
Ming
Veselin Vasilev
Telerik team
 answered on 10 May 2008
1 answer
144 views
Hi everybody!

I´ve added a tool for inserting a certain type of flash-tags i my radeditor. These require a certain set of parameters. The problem is that when I switch to html-mode or save the html the values in the embed or object tag gets manipulated or lost. Why is this? Is there a certain way the editor needs the embed tag to look?

Thanx!
George
Telerik team
 answered on 10 May 2008
2 answers
166 views

Dear all,

I use Panelbar on one of my user-controls which I placed in a pane of radsplitter on a master-page.

This panelbar is Ajaxified with other panel on the master-page.

I have a method (loadusercontrol) on the master-page that is called by this panelbar via (OnItemClicked) server side method, everything was fine until I notice that the method is called whenever I clicked on panelbar root-item or item, and I wanted to change this that the method is called on clicking the items only.

So, I think of doing this via client-side script, so I created a javascript method OnClientItemClicking="panelclicked" to handle this situation as follows:

<telerik:RadCodeBlock ID="CB1" runat="server">  
    <script type="text/jscript" language="javascript">  
        function panelclicked(sender, e)  
        {  
            var panelBar = $find("<%= navpanelBar.ClientID %>");  
            var item = panelBar.findItemByText(e.get_item().get_text());  
            if (item)  
            {  
                if item.get_text() == "AVT data"  
                {  
                    "<% MasterP.LoadUserControl("MainDataEntry.ascx", MasterP.MainPanel); %>"  
                }  
                else  
                {  
                }  
            }  
        }  
    </script> 
</telerik:RadCodeBlock> 
when I run the application I got this error:
"Script controls may not be registered after PreRender"

This error appear on the loadusercontrol method of the master-page:
public void LoadUserControl(string controlName, Control parent)  
    {  
        parent.Controls.Clear();  
        UserControl MyControl = (UserControl)LoadControl(controlName);  
        string userControlID = controlName.Split('.')[0];  
        MyControl.ID = userControlID.Replace("/", "").Replace("~", "");  
        parent.Controls.Add(MyControl);  
        CurrentControl = controlName;  
    } 

at that line : parent.Controls.Add(MyControl); 

any advice in this situation ...

Thanks and best regards
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 10 May 2008
3 answers
212 views
I am new to RADPanelBar and a bit puzzled about interactions on the server.

In the case where there is no data for the panel item, I want to force it closed and disable it, and this is done on the server:

Me.Next_PanelBar.Enabled = False

Me.Next_PanelBar.Items(0).Items(0).Expanded = False

Me.Next_PanelBar.Items(0).Items(0).Text = "yadda"


The panel is disabled, the text changes to "yadda', but it does not collapse.

I'm guessing that there is a distinction between "properties" that can be modified, vs. "methods" that need to be invoked. If so, how?

Note: panel behaves properly when enabled, end-user can expand/collapse with no problem.

Rosi
Telerik team
 answered on 10 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?