Hi, I'm trying to filter my dynatable based on a button. In my table, I have a column that displays the number of unread messages. What I would like my button to do is to show only the rows where the number of messages >= 1.
As a starting point, I am trying to recreate the querying example provided in the documentation, but I'm having difficulty with that: https://jsfiddle.net/L4marhn5/ - in the jsfiddle, nothing happens as you change the input. Am I missing something in how the table is set up?
Here is how I am reworking for my use case (I am also using jQuery and knockout), I have a button:
I think if I could just understand the documented example, I could probably get somewhere, but if anyone has any insight based on what they see above, I would truly appreciate a point in the right direction.
Hi, I'm trying to filter my dynatable based on a button. In my table, I have a column that displays the number of unread messages. What I would like my button to do is to show only the rows where the number of messages >= 1.
As a starting point, I am trying to recreate the querying example provided in the documentation, but I'm having difficulty with that: https://jsfiddle.net/L4marhn5/ - in the jsfiddle, nothing happens as you change the input. Am I missing something in how the table is set up?
Here is how I am reworking for my use case (I am also using jQuery and knockout), I have a button:
And I set up my table like below (note, I am using json for my data and I have a delegate so I can click on each row):
I have tried changing the
dynatable:init
todynatable:afterUpdate
, but I just end up with an infinite load...Finally, my table looks like:
I think if I could just understand the documented example, I could probably get somewhere, but if anyone has any insight based on what they see above, I would truly appreciate a point in the right direction.