SelectedIndexChanged event not firing if the Radgrid in Insert mode

6 posts, 1 answers
  1. Ananth
    Ananth avatar
    10 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    Hi,

    I do have one RadCombobox and one Radgrid in my page separately. Depends upon the combo box selection the radgrid record will change. It is working fine now. But if I click the Insert option in radgrid, it show the input text fields and all other control, in that time I changed the combo box, the event is not get firing. May I know why? But the selection changed event firing, when I am in the editable mode in the radgrid.

    Thanks
  2. Answer
    Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 14 Aug 2012 Link to this post

    Hello,

    Please try with below code snippet.

    <telerik:RadComboBox CausesValidation="false"></telerik:RadComboBox>


    If above code is not working for you then please provide error detail or code.

    Thanks,
    Jayesh Goyani
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ananth
    Ananth avatar
    10 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    Hi,

    Thanks it's working
  5. Rohan
    Rohan avatar
    94 posts
    Member since:
    Jul 2012

    Posted 21 Nov 2012 Link to this post

    Hi all ,
    I have following scenario - i have one user control with  radwndow and  radgrid. i want to get the selected value of rad grid on selected index changed event of rad grid and close the rad window , and selected value updated form user control to page control using the event delegate .... this scenario working with me but problem is after the firing the selected index event other operation of rad grid is not working such as grouping .....

    this is my event
    protected void grdDataListView_SelectedIndexChanged(object sender, EventArgs e)
            {
                try
                {
                    ResultSet = new ArrayList();
                    GridDataItem item = (GridDataItem)_grdDataListView.SelectedItems[0];

                    SearchedValueField = item.GetDataKeyValue(SearchDataValue).ToString();
                    string name = item[SearchDataText].Text;
                    ResultSet.Add(name);
                    SearchedDataTextField = name;
                    
                    ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "key", "CloseWindow('" + radwindow.ClientID + "');", true);
                    GrdDataListResultSet();// this is my delegate ..
                }
                catch (Exception _error)
                {
                    Exceptions.ProcessModuleLoadException(this, _error);
                }
            }

    after removing the delegate it works... then how can i retrieve user control values to page ...... 
  6. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 26 Nov 2012 Link to this post

    Hello Rohan,

    Is the problem happens without closing the window? Is there any difference in the grid's events if you remove the following line:
    ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "key", "CloseWindow('" + radwindow.ClientID + "');", true);

    In case there is JavaScript error on your page, the grid's grouping buttons will not work. Handling the SelectedIndexChanged event itself could not cause such issue, and I do not see any problematic part of your code, so check your custom JavaScript for any potential error.

    Also make sure the script debugging in your browser is enabled and that you see if any error appears.


    All the best,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  7. Madhu
    Madhu avatar
    2 posts
    Member since:
    Oct 2012

    Posted 17 Aug in reply to Jayesh Goyani Link to this post

    Thanks. Helped me too even after 6 years of your answer!

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017