EasyUI Forum
September 14, 2025, 06:15:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / General Discussion / Re: is refresh button in pagination doesn't work in ie11? on: July 28, 2014, 06:27:13 AM
thanks, and i found that's because my web page has cache that causing refresh button dont work
2  General Category / General Discussion / is refresh button in pagination doesn't work in ie11? on: July 14, 2014, 08:33:58 AM
i'm working on treegrid with pagination, it seems refresh doesn't work in ie11 and works in chrome.
i've test demos in homepage. and only datagrid's serverside pagination works, and datagrid's clientside pagination doesn't work.
3  General Category / EasyUI for jQuery / Re: how to get original value after formatter? on: July 08, 2014, 04:46:30 AM
The 'getRows' method of propertygrid is inherited from datagrid. It do return the original rows bound to the propertygrid. Please check your propertygrid data carefully.

yes, that's because i've override getValue function. but what can i do if i wanna add formatter to one of my propertygrid row?
here is my json:
Code:
string json = "{\"total\":6,\"rows\":[";
            json += "{\"name\":\"ID \",\"value\":\"" + ID + "\"}";
            json += ",{\"name\":\"Name \",\"value\":\"" + Name + "\",\"editor\":{\"type\":\"validatebox\", \"options\":{\"required\":\"true\"}}}";
            json += ",{\"name\":\"Url \",\"value\":\"" + Url + "\",\"editor\":\"text\"}";
            json += ",{\"name\":\"Icon \",\"value\":\"" + Icon + "\",\"editor\":{\"type\":\"cbcIcon\",\"options\":{\"valueField\":\"id\",\"textField\":\"name\",\"url\":\"/Icon.aspx\",\"groupField\":\"group\"}}}";
and my javacript code in page:
Code:
$(document).ready(function () {
            $('#pg').propertygrid({
                url: '/Admin/MenuAdd.aspx?action=sg&id=<%=oldId%>',
                method: 'get',
                columns: [[{ field: "name", title: "名称", width: 100 }, { field: "value", title: "值", width: 150 }]]
            });
        });
i've tried some code like below:
Code:
$(document).ready(function () {
            $('#pg').propertygrid({
                url: '/Admin/MenuAdd.aspx?action=sg&id=<%=oldId%>',
                method: 'get',
                columns: [[{ field: "name", title: "名称", width: 100 }, { field: "value", title: "值", width: 150 }]],
                onLoadSuccess: function(data) {
                    $('#pg').propertygrid('getRows')[3].formatter = function(value) {
                              return '<span class="'+value+'">&nbsp;</span>';
                     }
                }
            });

        });
but it doesn't work~~~ Cry Cry Cry
4  General Category / EasyUI for jQuery / how to get original value after formatter? on: July 07, 2014, 09:00:16 PM
 Smiley
if i use $('#pg').propertygrid('getRows')[1].Value it will get value of <span class=' value' ></span> instead of  value.
how to fix the problem?

 Huh Huh Huh Huh
5  General Category / EasyUI for jQuery / Re: Combobox with pagination on: July 07, 2014, 07:40:27 PM
hi, i've tried to add " pagination: true " to combobox, but it doesn't seem work~~`
first i add it in json:
Code:
\"editor\":{\"type\":\"cbcIcon\",\"options\":{\"valueField\":\"id\",\"textField\":\"name\", \"pagination\":\"true\", \"pageSize\":\"5\"}
it doesn't work, so i add it in options:
Code:
options.pagination = true;
                    options.pageSize = 10;
                    options.pageList = [2, 5, 10, 20];
bad luck, it doesn't work either.

can anyone help?
6  General Category / EasyUI for jQuery / Re: how to add "formatter" using json? on: July 07, 2014, 07:30:21 AM
thanks for the reply.
as i'm using propertygrid, and i just need one of my property's editor using formatter. so i extends the editor and add formatter to it's options then, fix the problem.
7  General Category / EasyUI for jQuery / how to add "formatter" using json? on: July 06, 2014, 03:53:27 AM
hi, i'm now using properygrid for editing entity,  here is my property json like below:
Code:
string json = "{\"total\":6,\"rows\":[";
            json += "{\"name\":\"id\",\"value\":\""+ID+"\"}";
            json += ",{\"name\":\"name\",\"value\":\"" + Name + "\",\"editor\":\"text\"}";
            json += ",{\"name\":\"path\",\"value\":\"" + Url + "\",\"editor\":\"text\"}";
            json += ",{\"name\":\"icon\",\"value\":\"<span class='icon " + Icon +
                "'>&nbsp;</span>\",\"editor\":{\"type\":\"combobox\",\"options\":{\"valueField\":\"id\",\"textField\":\"name\",\"url\":\"/Icon.aspx\",\"groupField\":\"group\"}}}";
            json += "]}";
and i wanna my icon's editor display icon image. instead of text, so i change editors to :
Code:
\"editor\":{\"type\":\"combobox\",\"options\":{\"valueField\":\"id\",\"textField\":\"name\",\"url\":\"/Icon.aspx\",\"groupField\":\"group\",\"formatter\":\"function(row){brbr}\"}}}";
but it seems javascript take "function(row){brbr}" as string instead of function.
how can i add formatter to the editor ?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!