Grid Tag object

May 13, 2014 at 2:08 PM
Hi, I'm setting the tag object of the GridModel on the server side, can I access it using the clientside API?
I see it in the response of the GetItem, so I'm guessing it is saved somewhere.
Thanks,
Shachar
Coordinator
May 13, 2014 at 2:42 PM
you can see the gridmodel tag being used here: http://demo.aspnetawesome.com/GridChooseColumnsDemo
it's used to populate the checkboxlist

on the server it's being set and
on the client it's used like this:
        $('#GridChooseColumns').on('aweload', function (e, res) {
            $('#chkColumns').data('api').load({ params: res.Tag });
        });
May 14, 2014 at 6:57 AM
Thank you for your prompt reply,
I found a way to access the Tag:

$('#Grid').data('api').getResult().Tag;

Shachar