jQWidgets Forums

jQuery UI Widgets Forums Grid Refresh rowDetails

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Refresh rowDetails #122216

    Loko
    Participant

    Hello

    I would like to show in my rowDetails a button that would refresh them, and only them, not the entire grid.

    I have set up an initRowDetails(index, parentElement, gridElement, datarecord) function but can’t figure out how to call it when the button is clicked.
    I’ve set a workaround by
    – storing the received parameters into global vars when my function is called by the grid itself when the user click on the arrow
    – pass thoses global vars as parameters to my own calls with my button.

    But that’s not very clean and maybe there are betters ways to achieve this (?)

    Refresh rowDetails #122221

    Hi,

    How do you change the data when you click the button?
    Can you explain further how are you updating the data and what exactly are you trying to do?

    Best regards,
    Svetoslav Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

    Refresh rowDetails #122222

    Hi,

    An example of expanding the first row, changing the data and binding the data to the grid using the updatebounddata method.
    http://jsfiddle.net/4gs3972w/2/

    Best regards,
    Svetoslav Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

    Refresh rowDetails #122236

    Loko
    Participant

    Hello Svetoslav
    I’m refreshing data with en ajax call, but it’s the same than your example and it works for me , many thanks !

    Arnaud

    Refresh rowDetails #122237

    Hi,

    I am so happy to hear that!
    Let us know if you need any further help!

    Best regards,
    Svetoslav Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

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

You must be logged in to reply to this topic.