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

After take update on telerik RadGrid ExpandCollapse functionality not working itemcommand fires twice after click on ExpandCollapse arrow -Urgent Help

2 Answers 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 2
Manish asked on 12 Apr 2019, 01:22 PM

I have code to ExpandCollapse functionality in my grid upto 4 level detail table view, previously i was working fine but now it is redirecting me to another page because  I have applied code to redirect inside RowClick event. means when I tried to click on ExpandCollapse it fires same command but on same time it comes again in Itemcommand and e.command shows = RowClick and due to that it executing functionality of RowClick.

Please check image for aspx page radgrid code and .cs code is here.

I think it is happening after took update of 2019.1.215.45 (I am not sure).

 
        protected void rgNegolytes_ItemCommand(object sender, GridCommandEventArgs e)
        {

if (e.CommandName == "RowClick")
           {

//redirect to another page.

}               

 else if (e.CommandName == "ExpandCollapse")
            {

// expand grid and collapse grid.....

 

}
               

}

2 Answers, 1 is accepted

Sort by
0
Manish
Top achievements
Rank 2
answered on 12 Apr 2019, 01:24 PM
It is happening on Mozilla only ...
0
Attila Antal
Telerik team
answered on 17 Apr 2019, 07:50 AM
Hi Manish,

I've re-used all the relevant settings from the Grid you've shared in a screenshot then I added the Telerik Assemblies version 2019.1.215.45, created a Hierarchical RadGrid then ran the application in Firefox and I was unable to replicate the issue. See this demo video of my test results: RadGrid Commands Fired on ExpandCollapse

Perhaps there are some more settings that I am missing and could be the root cause for the problem. Nevertheless, I have shared the Sample I've used for testing this scenario and it would be very helpful if you could modify it to make it produce the error and send it back to us so that we can debug the problem locally and find a solution/workaround for it.

I look forward to hearing from you.

Kind regards,
Attila Antal
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Manish
Top achievements
Rank 2
Answers by
Manish
Top achievements
Rank 2
Attila Antal
Telerik team
Share this question
or