jQWidgets Forums

jQuery UI Widgets Forums Grid jqxgrid and listbox with rowselect

This topic contains 6 replies, has 2 voices, and was last updated by  dan123 7 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • jqxgrid and listbox with rowselect #94257

    dan123
    Participant

    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/

    jqxgrid and listbox with rowselect #94275

    dan123
    Participant

    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 Andrew

    Grid row 2 selected should show one item in the listbox as Janet

    Here is my jsfiddle:
    https://jsfiddle.net/vu833ebw/84/

    jqxgrid and listbox with rowselect #94288

    Hristo
    Participant

    Hello dan123,

    Could you clarify the issue?
    I noticed that you bind twice to the rowselect event (this is not correct).

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    jqxgrid and listbox with rowselect #94294

    dan123
    Participant

    Ok 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 Janet

    Also 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/

    jqxgrid and listbox with rowselect #94297

    dan123
    Participant

    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 Davolio

    Now 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 Representative

    Note: (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/

    jqxgrid and listbox with rowselect #94307

    Hristo
    Participant

    Hello dan123,

    I edit a little your code.
    Please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    jqxgrid and listbox with rowselect #94315

    dan123
    Participant

    Wow thank you so much.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.