Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
98 views
hi,

i used the textbox inside the panelbar i used the following codes the find the controle but the value i'm getting from the textbox is null

foreach (RadPanelItem PanelItem in RadPanelBar1.GetAllItems())
{
RadTextBox txtAge = RadPanelBar1.FindControl("txtAge") as RadTextBox;
RadTextBox txtWeight = RadPanelBar1.FindControl("txtWeight") as RadTextBox;
health.Age = Convert.ToInt32(txtAge.Text);
health.weight = Convert.ToInt32(txtWeight.Text);
}

the value of txtAge and txtWeight is always null even if i gave different value in runtime
how to get the value of the textbox entred in run time.

Regards
Priya

 
Matthew
Top achievements
Rank 1
 answered on 21 Jul 2010
8 answers
187 views
I have 'program' radlistbox that I am populating dynamically. I also add a RadListBoxItem '[ ALL ]' to this listbox which is used to select all the items.

I populate the other radlistbox depending on the selection in the 'program' radlistbox.

The issue is: I selected '[ ALL ]' from 'program' listbox. This selected all the items in the listbox and populated the other listbox accordingly. But now when i select just one item from the 'program' listbox nothing happens, the 'SelectedIndexChanged' does not fire.
Please help???

-- Code to insert the RadListBoxItem

Me

 

.rlbProgram.Items.Insert(0, New RadListBoxItem("[ ALL ]", 0))

-- Code that I use to loop through the listbox to select them all when '[ ALL ]' is clicked.

 

Select

 

Case Me.rlbProgram.SelectedIndex

 

 

Case 0

 

 

For i As Integer = 1 To Me.rlbProgram.Items.Count - 1

 

 

Me.rlbProgram.Items(i).Selected = True

 

 

 

 

sPrograms.AppendFormat(

"<Program id='{0}'/>{1}", Me.rlbProgram.Items(i).Value, vbCrLf)

 

 

Next

 

 

 

 

 

End Select

 

Ajay Gandhi
Top achievements
Rank 1
 answered on 21 Jul 2010
3 answers
124 views
I just upgraded to the new Q2 2010 tools and the RadGrid's AutoGenerateHierarchy is gone!  Now all of my DataRelations that I set up in the datasets do not have any impact on the RadGrid and I only see the top level.  Has the functionality been removed or just moved to a different method?  How can I get this to work in the Q2 tools?
JD Plagianis
Top achievements
Rank 1
 answered on 21 Jul 2010
1 answer
109 views
I've noticed that with you set EnableAutomaticLoadOnDemand="true" and Filter="StartsWith", when you select one of the items and then start scrolling it starts filtering out all the other items and the message box shows incorrect counts and allows you to continue scrolling until you reach the count it mentions.

It's kind of hard to explain, but you can see it being done on your demo page:

http://demos.telerik.com/aspnet-ajax/combobox/examples/loadondemand/automaticloadondemand/defaultcs.aspx

If you open the drop-down, select one of the options and then open up the drop-down you'll see the issue I'm referring to. It starts clearing out the other items, but still allows you to scroll.

I have to assume this is a bug with the AutomaticLoadOnDemand feature.
Simon
Telerik team
 answered on 21 Jul 2010
2 answers
207 views
 
I Â´m not using DatasourceID, and I don´t know why happend this.  
This is a common error, some times happend. And I don´t know which is the problem.  
Thank´s. 



Server Error in '/' Application.


Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

 
[InvalidOperationException: Both DataSource and DataSourceID are defined on 'RadMenu1'.  Remove one definition.]
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +10834996
   System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +28
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

 

 

 

Fabian Raul Jofre
Top achievements
Rank 2
 answered on 21 Jul 2010
1 answer
43 views
Hi, I have the following code:

<%
    rcb.DataSource = new[]
    {
        new { ID = 1, Value = "Sony" },
        new { ID = 2, Value = "Samsung" },
    };
  
    this.Page.DataBind();
%>
<telerik:RadComboBox ID="rcb" runat="server" MarkFirstMatch="true" AllowCustomText="true" DataTextField="Value" DataValueField="ID" />
When I input character "S" to the RadComboBox, it select "Sony" and append "ony" to textbox. After that, if I input "a" he should select "Samsung". It works on IE or FF, but not on Chrome 5. On Chrome after I input "a" he insert it between "S" and "ony", so I have "Saony".
Simon
Telerik team
 answered on 21 Jul 2010
1 answer
137 views
I've run into an issue where if a combobox contains enough info to generate a scrollbar, when list is dropped down if the user quickly moves their cursor over the dropdown, the list is somehow auto-scrolled instead of being left at the top of the list. Any ideas on why this may occur and how I might go about fixing it?
Simon
Telerik team
 answered on 21 Jul 2010
3 answers
136 views
Hi there

I have recently started developing with the Rad Controls and have a question.....

We are experimenting with the RadMenu and have set it up to load the menu structure using the LoadContentFile method.

This is working very well and we are able to generate menus based on the current users profile/membership.

The issue is we can see no way to set the navigateURL property in the XML - How do we achieve this?

I am aware that it can be done in code but is there anyway this property can be set in the XML?

Ideally we want to manage the menu structure using numerous XML definitions as we need to customise the menu for each seperate client and would rather do this with simple updates to XML rather than editing code each time.

Any help greatly appreciated


Geoff
Top achievements
Rank 1
 answered on 21 Jul 2010
1 answer
185 views
All of my RadAjaxLoadingPanels are having the problem that they only are displayed the first time an event is fired. The second time I do a partial update on my page, they aren't visible, but the update itself works fine. Added my code below.

<telerik:RadScriptManager ID="sm" runat="server">
    </telerik:RadScriptManager>
    
    <telerik:RadAjaxManager ID="ram" runat="server">
    <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="ecoWrapper">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ecoWrapper" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
    </AjaxSettings>
    </telerik:RadAjaxManager>
    
    <telerik:RadAjaxLoadingPanel runat="server" Skin="Simple" ID="RadAjaxLoadingPanel1" BackgroundPosition="Top"  >
    </telerik:RadAjaxLoadingPanel>


 <asp:Panel runat="server" ID="ecoWrapper">
...
</asp:Panel>


What could be the issue here? My page is within a masterpage if that matters.


Pavlina
Telerik team
 answered on 21 Jul 2010
4 answers
113 views
I have been using your example to retain open TreeNodes after URL navigation (http://www.telerik.com/help/aspnet/treeview/tree_retain_nodes_after_urlnavigation.html).

This works fine, but just for nodes on the first level, not child nodes.
What do I have to do to search through ALL nodes and their children?

Thanks in advance for your help

Best regards

Thomas
Thomas
Top achievements
Rank 1
 answered on 21 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?