Title: combogrid, pagination + setValue Post by: sky-t on September 29, 2016, 04:50:10 AM I'm using the combogrid('setValue') Method to select a record from combogrid.
This works fine - even if the record is show in first page of combogrid. When i use pagination and select an record from a page is not first page it can't be shown when load my form again and show this record by setValue. What can i do? Can i scroll to the page with the searched row? Kind regards Thorsten Title: Re: combogrid, pagination + setValue Post by: jarry on September 29, 2016, 03:22:40 PM Please call 'gotoPage' method to navigate to your page.
Title: Re: combogrid, pagination + setValue Post by: sky-t on September 29, 2016, 09:03:06 PM and what should i do if i don't know on which page is the searched record?
Title: Re: combogrid, pagination + setValue Post by: jarry on September 30, 2016, 12:23:31 AM When calling the 'setValue' method, you can pass a key-value pair as parameter to set the 'idField' and 'textField' values. If the value does not exist in the loaded grid rows, the combogrid still can display the correct display value.
Code: $('#cc').combogrid('setValue', { Title: Re: combogrid, pagination + setValue Post by: sky-t on September 30, 2016, 12:51:28 AM Hi jarry,
your solution works for me. Another question: can i get access to the pager-object of the pagination in combogrid? I want to have additional buttons and texts in that pagination. Thank you very much!!! Title: Re: combogrid, pagination + setValue Post by: sky-t on October 12, 2016, 07:42:30 AM Hi jarry,
there is another problem.When i'm using $('#cc').combogrid('setValue', { id: '10, Matchcode: 'test' }); it works. Now when i am entering text for search another record in grid it will be overwritten by setted Text (test in this example). What can do to prevent this input? Title: Re: combogrid, pagination + setValue Post by: sky-t on October 15, 2016, 11:30:45 PM no idea?
Title: Re: combogrid, pagination + setValue Post by: jarry on October 16, 2016, 08:28:07 PM Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.5-patch.zip.
|