Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter_match_mode with bStateSave not working #42

Closed
angelsystem opened this issue Apr 11, 2014 · 4 comments
Closed

filter_match_mode with bStateSave not working #42

angelsystem opened this issue Apr 11, 2014 · 4 comments
Labels

Comments

@angelsystem
Copy link

Hi guys,

When put two options no work selected chosen:
{column_number : 0, filter_match_mode: 'exact', select_type: "chosen"}
but put:
{column_number : 0, select_type: "chosen"} work fine.

Thanks,
Angel.

@vedmack
Copy link
Owner

vedmack commented Apr 12, 2014

Hi,
Please post a test case because it does works for me, take a look : http://dl.dropboxusercontent.com/u/55621125/yadcf/war/DOM_source_chosen.html
this is the setup for the first column

{column_number : 0, select_type: 'chosen', filter_match_mode: 'exact'},

Try to select "Some Data 1" and "Some Data 11"

@angelsystem
Copy link
Author

@vedmack Thanks for your answer.
I tried that and work fine, but when add option to dataTable to reload the page not stay selected the option:

"bStateSave": true

and when use AJAX mData

oTable = $('#example').dataTable({
      "bJQueryUI": true,
      "bProcessing": true,
      "bStateSave": true,
      "iDisplayLength": 10,
      "sAjaxSource": "deep.txt",
      "aoColumns": [{
          "mData": "some"
      }]
    }).yadcf([
        {column_number : 0, select_type: 'chosen', filter_match_mode: 'exact'},
    ]);

filter fine but selected is incorrect.

The gist https://gist.github.com/angelsystem/10561924

Thanks.

@vedmack
Copy link
Owner

vedmack commented Apr 13, 2014

Yep , its a bug related to the filter_match_mode with bStateSave, will fix it... (not related to chosen mode)

@vedmack vedmack added the bug label Apr 13, 2014
@vedmack vedmack changed the title No work selected chosen with exact filter_match_mode with bStateSave not working Apr 13, 2014
@vedmack
Copy link
Owner

vedmack commented Apr 13, 2014

Fixed in 0.6.7 version , updated showcase with example http://yadcf-showcase.appspot.com/DOM_source_chosen.html

@vedmack vedmack reopened this Apr 13, 2014
@vedmack vedmack closed this as completed Apr 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants