Hi,
My requirement is to auto populate the textboxes(bound columns) in the insert form on selecting items from a radcombobox which is in the same insert form. My RadGrid is using Batch edit mode. I tried to attach the OnClientSelectedIndexChanged event for the RadCombobox. But after selecting the item and auto populating the TextBoxes(bound columns), the textboxes wont appear, it looks like labels.. The major issue is the OnClientSelectedIndexChanged is firing on the save button click. Please provide a solution for this.
ASPX:
Js:
Thanks
My requirement is to auto populate the textboxes(bound columns) in the insert form on selecting items from a radcombobox which is in the same insert form. My RadGrid is using Batch edit mode. I tried to attach the OnClientSelectedIndexChanged event for the RadCombobox. But after selecting the item and auto populating the TextBoxes(bound columns), the textboxes wont appear, it looks like labels.. The major issue is the OnClientSelectedIndexChanged is firing on the save button click. Please provide a solution for this.
ASPX:
01.<telerik:RadGrid ID="ad" runat="server" OnNeedDataSource="ad_NeedDataSource" AutoGenerateColumns="false">02. <MasterTableView EditMode="Batch" CommandItemDisplay="Top">03. <BatchEditingSettings EditType="Row" OpenEditingEvent="Click" />04. <Columns>05. <telerik:GridBoundColumn DataField="testProperty" UniqueName="testProperty" HeaderText="testProperty">06. </telerik:GridBoundColumn>07. <telerik:GridBoundColumn DataField="test" UniqueName="test" HeaderText="test">08. </telerik:GridBoundColumn>09. <telerik:GridBoundColumn DataField="description" UniqueName="description" HeaderText="description">10. </telerik:GridBoundColumn>11. <telerik:GridBoundColumn DataField="code" UniqueName="code" HeaderText="code">12. </telerik:GridBoundColumn>13. <telerik:GridTemplateColumn HeaderStyle-Width="300px" HeaderText="ShipCountry" UniqueName="ShipCountry"14. DataField="ShipCountry">15. <ItemTemplate>16. <asp:Label ID="lb" runat="server" Text="jklm"></asp:Label>17. </ItemTemplate>18. <EditItemTemplate>19. <telerik:RadComboBox runat="server" Skin="WebBlue" ID="RadComboBox1" Height="200px"20. Width="270px" DropDownWidth="800px" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged"21. ShowMoreResultsBox="true" EnableVirtualScrolling="true" ChangeTextOnKeyBoardNavigation="true">22. <Items>23. <telerik:RadComboBoxItem Text="gh1" Value="sdf1" />24. <telerik:RadComboBoxItem Text="gh2" Value="sdf2" />25. <telerik:RadComboBoxItem Text="gh3" Value="sdf34" />26. </Items>27. </telerik:RadComboBox>28. </EditItemTemplate>29. </telerik:GridTemplateColumn>30. </Columns>31. </MasterTableView>32.</telerik:RadGrid>Js:
1.<script type="text/javascript">2. function OnClientSelectedIndexChanged(sender, args) {3. alert("fired!!!!!!!!!");4. }5.</script>Thanks