Yup!
Coding has no language barriers 🙂 Thank you for the quick help! Will try this and get back to you 🙂
Regards,
Krishna.
Thanks a lot Rumen!
Actually, I thought of writing custom pagination to avoid count(*)..logic is to just fetch one extra record on “next” click and disable “next” button when there are no more records. This doesn't require count, but needs lot of tweaking in grid.base.js. The demo which you showed is very convincing and clean. Will follow the same way as in the demo. Thank you once again for the quick reply! 🙂
Hey turya!
thanks a lot for the reply. I've built my custom tooltip and integrated, but yeah., cluetip gives better features.
That's cool Renso!
This will surely help me in fulfilling one of our requirements.
I'm looking for displaying additional content on hover of a cell. Any inputs on this?
I've tried this but it's not working. Any inputs on this will be appreciated.
Hehe..got the solution for fetching additional information for each row.
I used the below code for jsonReader:
|
1 |
$<span class="br0">(</span><span class="st0">"#testGrid"</span><span class="br0">)</span>.<span class="me1">jqGrid</span><span class="br0">(</span><span class="br0">{</span><br /> <span class="me1">jsonReader</span> <span class="sy0">:</span> <span class="br0">{</span><br /> root<span class="sy0">:</span><span class="st0">"invdata"</span><span class="sy0">,</span><br /> page<span class="sy0">:</span> <span class="st0">"currpage"</span><span class="sy0">,</span><br /> total<span class="sy0">:</span> <span class="st0">"totalpages"</span><span class="sy0">,</span><br /> records<span class="sy0">:</span> <span class="st0">"totalrecords"</span><span class="sy0">,</span><br /> repeatitems<span class="sy0">:</span> <span class="kw2">false</span><span class="sy0">,</span><br /> id<span class="sy0">:</span> <span class="st0">""</span><br /> <span class="br0">}</span><br /><span class="br0">}</span><span class="br0">)</span>;<br /><br />When id is set to empty, it is taking row index as id. So row specific user data can be easily fetched using:<br />$<span class="br0">(</span><span class="st0">"</span><span class="st0">#testGrid</span><span class="st0">"</span><span class="br0">)</span>.<span class="me1">getUserDataItem</span><span class="br0">(</span> key <span class="br0">)</span>.<br />Hope what I was doing is correct...<br /> |
Thank you for the reply Tony.
For (1), custom formatter is working. That is what I am looking for.
For (3), I'm not able to get multi select option in dropdown
.. I think I should place a custom button in a new toolbar and enhance the excel filtering functionality.
For(2), I have not gone till creation of tool tip as I'm facing problems while fetching additional data for each row. This is my problem:
I am storing additional data related to each row in an array and returning that array through “userdata” JSON object. When I click on a row in the grid, I need to access the userdata of that row. For this, I'm writing the below code:
onSelectRow: function(id) {
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top