The grid identifier is not in the object passed to JS function

QuestionsThe grid identifier is not in the object passed to JS function
Bo Knuth asked 9 years ago

I have a dozen grids on one page. I'd like to use one JS function for 'load complete'. Is there a way to configure the object being passed into the function to include the grid identifier?

$e["js_on_load_complete"] = "grid_load";
$g->set_events($e);

function grid_load(id)
{
//the id object does not contain a grid identifier
}

1 Answers
Abu Ghufran answered 9 years ago

Current api does not have grid id param.
If you are connecting grid_load function handler with $g grid, then you can use $g->id.

function grid_load(id)
{
var grid = '<?php echo $g->id?>';
}

Your Answer

10 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?