This is a migrated thread and some comments may be shown as answers.

Abnormal Behavior in Combobox onselectedindexchanged

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 01 Jun 2011, 01:35 PM
Hi 

In my application i got two RadComboBox as  ItemTemplate in grid , both has onselectedindexchanged event. But when i select cmbcolItemNo
- it fires cmbcolItemNo_SelectedIndexChanged as expected and but when i select cmbcolItemDescription this also fires cmbcolItemNo_SelectedIndexChanged
not cmbcolItemDescription_SelectedIndexChanged. I'm using radpanel and radloadingpanel.Initially both combobox's are workin fine.now this the problem.

And even radloading image dnt work on crome sometime but works fine on IE.

I want urgent help in this.....

<telerik:RadGrid ID="gvItems" runat="server" AutoGenerateColumns="False"  Width="100%"
                                EnableHeaderContextMenu="True" HorizontalAlign="Left" BorderWidth="0px"
                                CellSpacing="-1" Skin="Default" Height="230" EnableViewState = "true">
                                 <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">
                                    </ClientSettings>
                                <MasterTableView CellPadding="-1" CellSpacing="-1">
                                    <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                                  <Columns>                                               
                                        <telerik:GridTemplateColumn HeaderStyle-Width="5px"></telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderText="Item No" UniqueName="colItemNo" HeaderStyle-Width="160px">
                                            <ItemTemplate>
                                                <telerik:RadComboBox ID="cmbcolItemNo" runat="server" AutoPostBack="true" EnableEmbeddedSkins="false"
                                                    onselectedindexchanged="cmbcolItemNo_SelectedIndexChanged1" width="160px"
                                                    EmptyMessage="Select a ItemCode" AllowCustomText="true" Filter="StartsWith" >
                                                </telerik:RadComboBox>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderStyle-Width="18px" UniqueName="ColOpenItemCode">
                                            <ItemTemplate>
                                                  <asp:HyperLink NavigateUrl="javascript:OpenItemCode();" runat="server" ID="hl1OpenItemCode"
                                                                 ImageUrl="../Images/link2.png" >
                                                  </asp:HyperLink>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderText="Item Description" UniqueName="colItemDescription" HeaderStyle-Width="300px">
                                            <ItemTemplate>
                                                <telerik:RadComboBox ID="cmbcolItemDescription" runat="server" Width="300px" 
                                                     AutoPostBack="true" OnSelectedIndexChanged ="cmbcolItemDescription_SelectedIndexChanged"
                                                     EmptyMessage="Select a Item Description" AllowCustomText="true" Filter="StartsWith">
                                                </telerik:RadComboBox>                                              
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                         <telerik:GridTemplateColumn HeaderStyle-Width="18px" UniqueName="btnColOpenItemDesc">
                                            <ItemTemplate>
                                                  <asp:HyperLink NavigateUrl="javascript:OpenItemCode();" runat="server" ID="hl2OpenItemCode"
                                                                 ImageUrl="../Images/link2.png" >
                                                  </asp:HyperLink>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
</Columns>
 
                                </MasterTableView>
                                <ClientSettings>
 
                                    <ClientEvents OnRowContextMenu="RowContextMenuItems" />
                                    <Scrolling AllowScroll="True" UseStaticHeaders="true" EnableVirtualScrollPaging="true"  />
                                    <Selecting AllowRowSelect="true"   />
                                     
                                </ClientSettings>
                                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" EnableImageSprites="True">
                                </HeaderContextMenu>
                            </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 06 Jun 2011, 02:02 PM
Hi Sunil,

I tested your markup in an empty project and could not replicate the problem that you describe. If you are using VB.NET for writing your site, make sure that you are not also attaching the event handlers in the code behind.

If this is not the case, try providing us with a set of steps to follow in order to reproduce the issue in a standalone web site. Also, confirm that you have a setting in your AjaxSettings where the grid updates itself.

All the best,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Sunil
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or