select the newly inserted row

Questionsselect the newly inserted row
Tomasz Wozny asked 11 years ago

Hello, I would like that my just inserted row in the grid was automatically selected after refreshing the grid. How to make this?

4 Answers
Abu Ghufran answered 11 years ago

Hi,

It's not supported now. I'll check if we can highlight the newly inserted row so as to show the change in listing.

kim answered 9 years ago

is this supported as of current? November 3, 2014.
if yes, what is code?

Abu Ghufran answered 9 years ago

If you wish to show highlight effect, you can include jquery ui script,

<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>

And have highlight code in afterComplete:

$opt["add_options"]["afterComplete"] = "function (response, postdata) { r = JSON.parse(response.responseText); jQuery('#'+r.id,'#list1').effect('highlight', {color:'yellow'}, 2000); }";
$grid->set_options($opt);

A condition that new record should come in grid list, You can sort grid to decending id, to show newly added record on top of grid.

Your Answer

8 + 10 =

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?