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

Rad grid behaviour

3 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Murthy
Top achievements
Rank 1
Murthy asked on 27 Sep 2013, 12:05 AM
I am working with radgrid pulling the data relating to groups and subgroups using MasterTableView and detailtable view.I am using edit on row click to update the text by clicking on another row. If I click on the MasterTableView rows and edit something and immediately click on the row belongs to mastertableview,It is woring fine.Means I am out of focus and my previous row is displaying normal way and the row clicked currently is in the edit mode.If I click on the row belongs to detailtableview,the previous row is still staying in edit mode and the current row clicked also in edit mode.It is happening in all the browsers as well as in all versions.i.e IE 8 or 9, Crome as well.

Also some times if I click on rows of  the detailedtableview,corresponding items in the mastergridview are becoming blank.


   var hasChanges,editedRow;

 function RowClick(sender, eventArgs) {
            if (!hasChanges) {
                if (eventArgs instanceof Object == true) {
                    editedRow = eventArgs.get_itemIndexHierarchical();
                }
                else {
                    editedRow = eventArgs;
                    if (parseInt(editedRow) >= 0)
                        editedRow = editedRow - 2;
                }

                 $find("<%= ClassGrid.ClientID %>").get_masterTableView().editItem(editedRow);

                document.getElementById('<%=hfEditRow.ClientID%>').value = editedRow;
            }

            CallAjaxManagerUpdate();
        }
           
  function CallAjaxManagerUpdate() {
            if (editedRow && hasChanges) {
                $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest(editedRow);
                hasChanges = false;
                document.getElementById('<%=hfEditRow.ClientID%>').value = "";
            }
        }


Any help can be appreciated.

Thanks
Murthy

3 Answers, 1 is accepted

Sort by
0
Murthy
Top achievements
Rank 1
answered on 27 Sep 2013, 02:03 PM
Meantime I gone the below link and run the project which is given as an example.This is behaving the same way what I explained before.Please,go through and suggest if you have any ideas to make it work.Advance Thanks for help.


http://www.telerik.com/community/code-library/aspnet-ajax/grid/edit-on-double-click-in-hierarchical-grid.aspx


Thanks 
Murthy
0
Murthy
Top achievements
Rank 1
answered on 27 Sep 2013, 05:52 PM
Still I am unable to find a solution for the above problem.It is working fine with the regular Grid,The problem is,if we use an Hierarchical grid.
Some the communication from MasterTableView and detailtableview is missing while using edit on rowclick. It is behaving weird.While searching I find the above link and ran the web.UI example,but it is also behaving the same way,which is not the right way.
Any help from any Telerik expert will be appreciated.


Thanks

Murthy
0
Konstantin Dikov
Telerik team
answered on 01 Oct 2013, 04:19 PM
Hello Murthy,

I was able to replicate the described behavior, using the mentioned code library project.

I have modified the above sample so it could overcome the issue in question. Please refer to the attached project and see if it works for your scenario as expected.

Hope that helps.

 

Regards,
Konstantin Dikov
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Murthy
Top achievements
Rank 1
Answers by
Murthy
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or