Hi Will,
Thank you for your attention to my query. I fixed this one.
It was due to my poor code in dialog box closure.
I wasn’t destroying dialog box upon click of – close, confirm, and close-tick symbol. 🙂
Best,
–pG
Hi Will,
Thanks much for your support, and guidance!
Best,
–pG
Hi Will,
Thank you for your reply.
After posting the code
|
1 2 |
em class="d4pbbc-italic"> |
is being added automatically here on forum 🙁 It’s not in my code.
Posting it again:
|
1 2 3 |
select_option=select_option+'<option data-pipe-id="'+pipeline_names<em class="d4pbbc-italic"></em>.id+'"'+'>'+ pipeline_names<em class="d4pbbc-italic"></em>.pipeline_name+'</option>'; |
The issue is – the list doesn’t get populated all the times upon opening of dialog box; intermittently list is populated.
Don’t know why the code is not shown properly here. If you could edit my reply, then you’d be able to see what I’ve posted.
For some reason in my code above class is being show in select and console.log which is not present in my code apparently.
They look like:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
for(var i=0;i<pipeline_names.length;i++){ console.log(pipeline_names<em class="d4pbbc-italic"></em>.pipeline_name); console.log(select_option); select_option=select_option+''+ pipeline_names<em class="d4pbbc-italic"></em>.pipeline_name+''; /* * append this to the dialog box of pipeline drop down */ } |
Update:
Looks like I cannot get rid of class em something. Its present in this as well.
Dear Will,
Thanks much for the lightening fast reply.
It works after adding local in datatype, indeed. It makes sense to me.
I’ve follow up query on jsonReader. How do I know/understand what to set in it?
Don’t know if should put a follow up question, or create a new thread? Let me whichever works well with you. 🙂
Right now, I’ve jsonReader as:
1)
|
1 2 3 4 5 6 7 8 9 |
jsonReader: { repeatitems: false, id: "", }, //json reader ends |
In my another grid, I’ve it as:
2)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
jsonReader: { repeatitems: false, id: "", root: function (obj) { return obj; }, records: function (obj) { return obj.length; }, page: function () { return 1; }, total: function () { return 1; } }, //json reader ends |
These are copy paste from solutions on stackoverflow. I’m clueless when to use what, and tweak as and when need dictates.
My apologies for putting a broad question. I’d be thankful to you if you could share pertinent blog/URL which can help me explain jsonReader. That would help me gain knowledge, and I’d not have to put naive questions on it, if stuck due to this. (for that I should know the problem is due to jsonReader :-/ )
Thanks again for your tremendous help, and your time. 🙂
You rock!
Regards,
–pG
Hi Will,
Sorry for the wrong forum.
Update with on load row-count
I fixed the row count on load with:
|
1 2 3 4 |
page: 1, rowNum: 3, |
However, again the pagination button won’t get enabled.
Hi Will,
It works!
Thanks much fr your help and support.
Hi There,
Thanks for your reply. Both URLs were pretty useful. I was able to get the pop-up, finally.
It was due to poor calling of JS/Jquery files in the header.
I’d like to add/change caption of the dialog box. My code looks like:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$('#grid_illume').jqGrid('navGrid', "#pager_illume", //grid_illume is my grid name { search: true, edit: false, add: false, del: false, refresh: true, searchtext:'Search' //to show on the footer search }, {}, {}, {}, {recreateFilter: true, overlay: true, multipleSearch: true, multipleGroup: false, searchCaption:'Search Me!' //change caption... }); |
Sadly, I’m unable to get the new caption in search dialog box. How do I fix it?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top