Mar 23, 2012, 5:01 PM
[CLOSED] Remote ListFilter (gridFilter)
Hi,
I'm trying to have my grid remotely filter using a simple listFilter.. this works fine in getting to the server-side with a gridfilter string. The problem is that rather than using the ID value of the item chosen from the list, it's using the LabelField value.. which isn't going to map up correctly in my code.
eg:
eg, this is what the gridfilter string looks like:
Thanks.
I'm trying to have my grid remotely filter using a simple listFilter.. this works fine in getting to the server-side with a gridfilter string. The problem is that rather than using the ID value of the item chosen from the list, it's using the LabelField value.. which isn't going to map up correctly in my code.
eg:
<ext:ListFilter DataIndex="AdviceTypeId" StoreID="storeAdviceTypes" LabelField="Title" />
.. will give me a nice list of values on the filter, but the value it's passing back is not the Id column. I guess it doesn't know about this (like a combo-box would with DisplayField/ValueField).eg, this is what the gridfilter string looks like:
"{\"f_0_field\":\"AdviceTypeId\",\"f_0_data_type\":\"list\",\"f_0_data_value\":[\"Pension\"]}"
Notice that the value, is text rather than the Id integer I would like associated with that value. Is there a way to change this behavior?Thanks.
Last edited by Daniil; Mar 29, 2012 at 10:45 PM.
Reason: [CLOSED]