jQWidgets Forums
jQuery UI Widgets › Forums › Grid › jqxgrid and listbox with rowselect
Tagged: #jqwidgets-grid, grid, javascript grid, jquery grid
This topic contains 6 replies, has 2 voices, and was last updated by dan123 7 years, 11 months ago.
-
Author
-
Hi I created a scenario where there is a jqxgrid and listbox, the main data source is binded to the grid and the child data source is binded to the listbox. But some reason my values of listbox shows as undefined. Dont use the random array method.
Here is my jsfiddle:
https://jsfiddle.net/vu833ebw/39/Hi I figured the rowselect but now its retrieving based on index. So for instance:
Based on the selection:
Grid row 1 selected show two items in the listbox as Nancy and AndrewGrid row 2 selected should show one item in the listbox as Janet
Here is my jsfiddle:
https://jsfiddle.net/vu833ebw/84/Hello dan123,
Could you clarify the issue?
I noticed that you bind twice to therowselect
event (this is not correct).Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comOk basically when I do rowselect, i want to update my datasource for the listbox. Like I mentioned before
Grid row 1 selected show two items in the listbox as Nancy and Andrew
Grid row 2 selected should show one item in the listbox as JanetAlso for the renderer property in the listbox, I want each item to show as First and last name and underneath their title. And not using the dataAdapter.records[index]; because it shows only by index.
Here is my jsfiddle:
https://jsfiddle.net/vu833ebw/149/Nevermind the post above I figured that one out.
Now one small problem that I really need to be solved.
So i have a listbox, contentpanel, and a grid. The problem i am trying to solve is that whenever I select an item in the listbox, pushs certain data to the content panel which contains firstname, lastname, and title.
For example:
Selected Item 1: Nancy DavolioNow the content panel div it will update and show records based on label or id. Please not index because then the grid selection messes up.
First Name: Nancy
Last Name: Davolio
Title: Sales RepresentativeNote: (This is done) Also note my grid also has a select event,
For example suppose i clicked on row 2 it will update the listbox and show the item as Janet
But still see if the content panel div also changes or not while performing grid selection.Here is my jsfiddle:
https://jsfiddle.net/hw4s9ryh/11/Hello dan123,
I edit a little your code.
Please, take a look at this example.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comWow thank you so much.
-
AuthorPosts
You must be logged in to reply to this topic.