Issue :Date Range filter not showing on sub grid filter

QuestionsIssue :Date Range filter not showing on sub grid filter
Saurabh Arora asked 2 months ago

When we expend multiple master grid then sub grid not showing date range filter of all master grid instead of first master grid, if we expend one at time , then date range filter showing on sub grid.

7 Answers
Abu Ghufran Staff answered 2 months ago

Always share screenshot and related code explaining your question. I don’t completely understand your question.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Saurabh Arora answered 2 months ago

i am sharing two screenshot first -when first one showing -master grid expended , then date range filter showing on fsub grid filter but when i expend other master grid then corresponding sun grid not showing on date range filter, mean it\’s working for first one for multiple grid expanded case.

Saurabh Arora answered 2 months ago

i am sharing two screenshot first -when first one showing -master grid expended , then date range filter showing on fsub grid filter but when i expend other master grid then corresponding sun grid not showing on date range filter, mean it\\\\’s working for first one for multiple grid expanded case. https://imgur.com/a/0trHeF6

Abu Ghufran Staff answered 2 months ago

Hi,

I understand the issue now. I’ll be updating back after some working.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 2 months ago

I tested this scenario and it’s working fine when you include the css/js files of daterange picker on master grid code and not in subgrid php code.

Sample code of both files: Subgrid with daterange picker (github.com)

Refer Line 81 of parent grid, Line 53 of Detail grid code.

You can also test by overriding code in demos/master-detail/ files.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Saurabh Arora answered 2 months ago

we have already included  those css/js  but problem occurs whenever multiple grid expanded then  only first master grid showing date range filter on  corresponding sub grid column while  others subgrids of rest master grid are not showing daterange filter. But whenever we expanded single master grid then it\\\\\\\’s working .

Abu Ghufran Staff answered 1 month ago

I’ve made some progress while working on this case.

Can you try editing lib/inc/jqgrid_dist.php and replace:

jQuery(‘#’+ el.id).daterangepicker(jQuery.extend({

with

jQuery(el).daterangepicker(jQuery.extend({

I’ve checked it and works as expected after that. Let me know the results.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

3 + 16 =

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?