Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Belmiris

Pages: [1]
1
I figured something out:
Just add a timer to the button click event.

        $("button#open_popup").button().click(function (evt) {
            $("#popup")
            .dialog({
                height: 400,
                width: 700,
                modal: true,
                open: function (evt, ui) {
                    $("#grid_popup").pqGrid(obj);
                },
                close: function () {
                    $("#grid_popup").pqGrid('destroy');
                },
                show: {
                    effect: "blind",
                    duration: 500
                }
            });

            setTimeout(function () { $("#grid_popup").pqGrid("setSelection", { rowIndx: 0 }); }, 500);
        });         // put .click(); at the end to show the list on page open.

2
I am using the code from the popup demo:

https://paramquery.com/demos/fluid_popup

with row selection.
    selectionModel: { type: 'row' },

I would like for the first row have focus when the grid is popped up. Is that possible?

Pages: [1]