Custom Add Button Caption

QuestionsCustom Add Button Caption
Michael Sheppard asked 2 years ago

I am trying to add a Custom Add Caption and I cannot get either method to work – all I get is a standard Plus sign, no text.

I have tried this method:

$grid[“beforeGrid”] = “function(){ $.jgrid.nav.addtext = ‘Add Detail Record’; }”;
$g->set_options($grid);

And I have tried this method:

<script>
$(document).ready(function(){
$.jgrid.nav.addtext = “Add Detail Record”;
});
</script>

Please let me know if maybe I’m doing something wrong.

Thanks

 

Mike

2 Answers
Abu Ghufran Staff answered 2 years ago

Hi,

Apologues for the delay. I’ve verified this case on v2.8 and it’s working as expected.

Demo online: https://www.gridphp.com/demo/demos/master-detail/master-detail.php

Looks like you are using 2.63, I’ll be updating you back after testing on that version.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Michael answered 2 years ago

No problem – it looks like it’s time to upgrade! I’ll place an order now.

 

Thanks

 

Mike

Your Answer

2 + 18 =

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?