jQWidgets Forums

jQuery UI Widgets Forums React jqxGrid datasource rebind after select row

This topic contains 3 replies, has 3 voices, and was last updated by  svetoslav_borislavov 2 years, 12 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Hello,

    I use jqxGrid with dynamic data source. I do bind the data source by axios and redux.

        const sourceUserData: any =
            {
                datafields: [...],
                datatype: 'array',
                localdata: userData.Items
            };
    

    and

      <JqxGrid
                                    ref={userGrid}
                                    width='100%'
                                    height='500px'
                                    source={new jqx.dataAdapter(sourceUserData)}  <---
                                    columns={

    If I filter on any column for example on the name column and select any row on displayed rows so will rerendered the grid and my filter value is empty and row selection is lost.

    What can I do, my grid do not rerender and rebind.

    Thank you for your support.

    Rene


    ivanpeevski
    Participant

    Hello Rene,

    Unfortunately, I was not able to reproduce your issue.
    Could you please share more details on the problem you are facing and what functionality you are trying to achieve?
    Sharing a code example will also help us give you a more detailed solution to your problem.

    You can also see if some of our React filtering demo examples or selection examples will be useful for you.

    Best regards,
    Ivan Peevski
    jQWidgets Team
    https://www.jqwidgets.com

    Hello,

    I was able to further narrow down the problem.
    The question is how can I solve the problem?
    I bound the JqxGrid to a data source as normal.
    The whole page re-rendering occurs when I select a row in the grid and use the data to update the redux state so that a form can display the selected row’s data for editing.
    My expectation would have been that the grid would be better at managing its own state, as re-rendering when redux state changes is a core concept in the React framework.
    I would be happy if you could suggest a solution for me here.

    Many Thanks

    René

    Hello Rene,

    Please give us a code example so that we can be familiar with the details.

    Best regards,
    Svetoslav Borislavov
    jQWidgets Team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.