问题描述
我有带有 GridBoundColumn 的 Telerik RadGrid
<telerik:GridBoundColumn DataField="DbJsonColumn" HeaderText="SimpleText" FilterControlWidth="200px" AutoPostBackOnFilter="true">
在 ItemDataBound 事件中,我将 JSON 转换为显示格式
protected void Grid_ItemDataBound(object sender,GridItemEventArgs e)
{
var item = e.Item as GridDataItem;
var json = item["DbJsonColumn"].Text;
var displayFormat = // some code to convert json to string
item["DbJsonColumn"].Text = displayFormat;
}
但是,当我尝试在网格上使用过滤器时,它不是基于 displayFormat 进行过滤(搜索/排序),而是基于 JSON(DB 值)进行过滤。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)