EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: helgvor_stoll on July 02, 2024, 03:31:05 AM



Title: How to select a row which is not in the datagrid
Post by: helgvor_stoll on July 02, 2024, 03:31:05 AM
Hi everybody,
I'm getting gray hair on a problem. Can somebody help me.
I want to develop a master/detail view for a little project. On the left I have a datagrid and on the right the form corresponding to the selected record.
On the datagrid, I have a "add" button in the toolbar and when I click on it, a new blank form is available for filling the data. Until here, everything is ok. So, I save the new record and I would like that:
* if I'm on the first page, the record is the first one on the top and automatically selected. It's ok as I refresh the right panel on the "onSelect" events of the datagrid
* If I'm not on the first page, I would like that the new record can be selected and when i come on the first page, it is maked as selected as well. But this part doesn't work.

Can somebody help me,
Thank you in advance,
Kind Regards



Title: Re: How to select a row which is not in the datagrid
Post by: helgvor_stoll on July 02, 2024, 06:01:51 AM
Perhaps thé source code can help. This source IS unfortunately missing. Does somebody have it?