Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 将列转换为行后,在Kendo UI网格加载后更改标题和行标题_User Interface_Kendo Ui_Grid_Transpose - Fatal编程技术网

User interface 将列转换为行后,在Kendo UI网格加载后更改标题和行标题

User interface 将列转换为行后,在Kendo UI网格加载后更改标题和行标题,user-interface,kendo-ui,grid,transpose,User Interface,Kendo Ui,Grid,Transpose,我选择使用以下方法在KendoUIGrid中将列转换为行 但问题是我不能在行标题中使用空格和像%这样的特殊字符。我可以用FT_2003这样的标题和cost_of_good_Seld这样的行标题来显示它。我想删除下划线,并添加一些特殊字符,如%以及以数字开头的标题。2003年,而不是2003财年。多谢各位 **desired:** $'000 2015 2016 2017 2018 Sales 300

我选择使用以下方法在KendoUIGrid中将列转换为行 但问题是我不能在行标题中使用空格和像%这样的特殊字符。我可以用FT_2003这样的标题和cost_of_good_Seld这样的行标题来显示它。我想删除下划线,并添加一些特殊字符,如%以及以数字开头的标题。2003年,而不是2003财年。多谢各位

**desired:**
$'000                   2015    2016    2017    2018
Sales                   300     400     350      500 
Cost of goods sold      175      225     200     300 
Gross margin            125      175     150     200 
Gross margin %          41.7%   43.8%   42.9%   40.0%
            
**actual:**
mesure                 FY_2015  FY_2016 FY_2017 FY_2018
Sales                   300     400     350      500 
Cost_of_goods sold      175      225     200     300 
Gross_margin            125      175     150     200 
Gross_margin_percent   41.7     43.8    42.9    40.0

data[i][“Property”]=Property
行中,您可以将该值设置为所需的值、空格和所有内容。GaloisGirl,谢谢!它起作用了!很乐意帮忙!请随意发布一个完整的代码示例作为对未来人们的回应。GaloisGirl,有一件事似乎还没有完全解决,那就是列的标题。下划线仍存在于2015财年。