Bootstrap-table: Custom field data input .

Created on 4 Jan 2018  路  16Comments  路  Source: wenzhixin/bootstrap-table

untitled
Hi! I want custom field data ,because I have many array in one array.
I try using "field: 'LeftNavigation.Title'" but don't work.
Thanks

help-wanted

Most helpful comment

What is your arrayAllValue data?
http://jsfiddle.net/wenyi/e3nk137y/13/

All 16 comments

Please provide a jsFiddle to show your problem, thanks!

$('#table').bootstrapTable('destroy');
$('#table').bootstrapTable({
data: data.LeftNavigation,
fixedColumns: true,
fixedNumber: 1,
undefinedText: "",
rowStyle: function (row, index) {
return {
classes: 'rowNavigation rowNavigation' + index,
css: { "font-size": "13px", "border": "1px solid #d9d9d9" }
};
},
columns: [
[
{
field: 'LeftNavigation.Title',
rowspan: 4,
align: 'center',
.............
I'M sorry ,because I using sharepoint online should data not get,i working on production.

This is my table!

I have many array in one array ,and I bind data for field

I think your fiddle can not show your problem.

You can try to update:

data: arrayAllValue.LeftNavigation

and:

field: 'Title'

don't work with me!!
https://github.com/wenzhixin/bootstrap-table/issues/353
I want select field in array " field: "flatArray2.id" , "
Please help me!

What is your arrayAllValue data?
http://jsfiddle.net/wenyi/e3nk137y/13/

new(http://jsfiddle.net/e3nk137y/18180/)
I can choose other array for field

Please guide me using responseHandler! not work with me!

http://jsfiddle.net/e3nk137y/18181/ responseHandler NOT WORK!

Try http://jsfiddle.net/jimkennelly/pn548r61/1/ - use the data
property

image

This example can solve your problem: http://jsfiddle.net/wenyi/e3nk137y/18196/

Thanks so much!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marccollin picture marccollin  路  15Comments

gadget00 picture gadget00  路  16Comments

sxahmed picture sxahmed  路  19Comments

hello-code picture hello-code  路  29Comments

startovernow picture startovernow  路  13Comments