Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
426 views
Hi
I am making use of a Radcombobox inside a Radgrid during Edit mode. I get this problem when I have different values for the
DataValueField and DataTextField. When I make use of the same valeus for both, I don't get the error and the Radcombobox is geting populated.

 

<telerik:RadComboBox ID="CbAircraftModelType" runat="server" Skin="Black"   
                            SelectedValue='<%# Bind("modelTypeName") %>' EmptyMessage=" Select Aircraft Type"                             
                            HighlightTemplatedItems="True" DataTextField="modelTypeName" DataValueField="modelTypeId" 
                            EnableTextSelection="False" DataSourceID="SqlDataSource_AircraftType"   
                            OnClientSelectedIndexChanged="cb_OnClientSelectedIndexChanged" /> 

I am making use of a SqlDataSource to populate the Radcombobox.
<asp:SqlDataSource ID="SqlDataSource_AircraftType" runat="server"   
                    ConnectionString="<%$ ConnectionStrings:AvengeConnectionString %>"   
                 SelectCommand="select modelTypeName,modelTypeId from Avenge.dbo.AircraftModelType ">  
            </asp:SqlDataSource> 
I don't have any code for working with this in the code-behind.

This is the error that I am getting:
Selection out of range  
Parameter name: value   
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.ArgumentOutOfRangeException: Selection out of range  
Parameter name: value  
 
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:   
 
 
[ArgumentOutOfRangeException: Selection out of range  
Parameter name: value]  
   Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +172  
   Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +39  
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31  
   Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +102  
   Telerik.Web.UI.RadComboBox.PerformSelect() +37  
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   System.Web.UI.Control.DataBindChildren() +211  
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102  
   System.Web.UI.Control.DataBind() +15  
   Telerik.Web.UI.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +387  
   Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +979  
   Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) +187  
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1573  
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +782  
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57  
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114  
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31  
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142  
   Telerik.Web.UI.GridTableView.PerformSelect() +28  
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73  
   Telerik.Web.UI.GridTableView.DataBind() +351  
   Telerik.Web.UI.GridTableView.Rebind() +98  
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +395  
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191  
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37  
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165  
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37  
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118  
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135  
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10  
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13  
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175  
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565  
 
   
 
Hope someone will be able to help me with this.

Thanks.
Amirtha S
Top achievements
Rank 1
 answered on 16 Feb 2010
6 answers
99 views
how to enable the drag facility for an appointment in server side with out making the allowedit is false
Andy
Top achievements
Rank 1
 answered on 16 Feb 2010
4 answers
147 views
Hi,
    I have a webpage with a RadGrid control (with 5 columns) and a button.
column2, column3 and column4 are combo boxes tied up with data. I want to populate the column1 with a value only when I click the button.

I inserted the following piece of code in the button click event to populate the value into the column1 of the radgrid, but did not work.

Private Sub btnAssignAccessionNumbers_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAssignAccessionNumbers.Click

 

 

 

 

    RadGrid1.Items(0).Cells(0).Text =

"M123"

 

 

 

 

 

End Sub

 

Please let me know the correct syntax/procedure to update column cells when I click the button. Also how to modify the radgrid cells programatically.

Thank you,
Mahita

 

 

 

Mahita Ande
Top achievements
Rank 1
 answered on 16 Feb 2010
7 answers
234 views
Hi,

We have problems with the appearance of the RadColorPicker Colorpalette
The Pagelayout is a 3 Row Layout with a 2 Column Layout in the Center. In the Laft Pane we have a RadDockLZone (width ~250 height ~500) with several RadDocks. So the Left side loocks a little bit like acdordion Panes made by movable RadDocks. In one RadDock we have two Icons to let the User choose a color. But when I click the Icon, the ColorPalette will appear just below the Icon. This results in Scrollbars and in hidden Overflows. What we like to do is that the Colorpicker Palette opens in a DIV above the others div. so that it will not scale the div where the ColorPicker Icon is located.

Do you have any idea ?

thank you Alex.
Tsvetie
Telerik team
 answered on 16 Feb 2010
2 answers
137 views

<telerik:RadEditor ID="RadEditor1" runat="server" OnClientLoad="ClientLoad"  ContentFilters="MakeUrlsAbsolute" >
        <Content></Content>
        </telerik:RadEditor>

C#:
protected void sendbtn_Click(object sender, EventArgs e)
 {   
       RadEditor1.Focus();
}

radeditor doesn't set focus on button click.. function.
i tried client side also. but $find("<%=RadEditor1.ClientID%>") is null.. not an object error is occur...
anyone please help me..
thx.
robertw102
Top achievements
Rank 1
 answered on 16 Feb 2010
1 answer
93 views
<AdvancedForm Modal="true" />
If I use this in Scheduler Control then there is no response when i click option in contextmenu.
just refreshes the page and display the scheduler
Peter
Telerik team
 answered on 16 Feb 2010
1 answer
122 views
Hi,

I have a string representation of a recurrence rule and need a way to determine the type (hourly, daily, monthly, yearly).  Are there any pre-built methods for accomplishing this.  I'm trying to avoid having to parse the rule to determine its type.

Thanks,

Ryan

Peter
Telerik team
 answered on 16 Feb 2010
2 answers
89 views
Dear Sir,
    i am using two custom skins for two master pages, the main master page and the details master page.
i created two custom skins (master, detail), and added the master skin to the main master page, and details skin to the details master page.
but the problem that only one skin is applied which is the details, how i can solve that?
Note: the details page is being called using rad window from the master page.
Mohamed Salah Al-Din
Top achievements
Rank 1
 answered on 16 Feb 2010
2 answers
135 views

Hi,

 

I am using RadScheduler in my website to display user events. When user opens the date picker using down arrow on Scheduler header and clicks on double arrow on date picker, he navigates to 3 months behind or ahead.
As per my requirement, the user should navigate to 12 month behind or ahead when he clicks on date picker double arrow. 
I tried but the date picker control properties are not viewable or it may not be exposed. Is there any way to change the default setting?
Please help me. 

Thanking you.

 

 

 

Amit Vaidya
Top achievements
Rank 1
 answered on 16 Feb 2010
1 answer
130 views
The subject says it all really :)

I have a main data table, joined to a titles table via a lookup, which means rows in the main data table can have multiple titles assigned.

I want to filter my grid showing rows from the main data table (plus the relevant title from the titles table pulled in via an inner join). But I want to filter my grid by makinging MULTIPLE selections in the title dropdown list.

I've come unstuck in my attempts, so here I am looking for expert help :)

Regards,
Richard
Veli
Telerik team
 answered on 16 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?