DGS Grid List

From Multi Theft Auto: Wiki
Revision as of 04:32, 20 July 2018 by Thisdp (talk | contribs) (Created page with "{{Client}} Back To DGS ==Sotring== * DGS Grid List fixed sorting problem <syntaxhighlight lang="lua"> loadstring(exports.dgs:dgsImportFunction())() local gridlist = d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Client Back To DGS

Sotring

  • DGS Grid List fixed sorting problem
loadstring(exports.dgs:dgsImportFunction())()
local gridlist = dgsCreateGridList(100,100,400,400,false)
dgsGridListAddColumn(gridlist,"test1",0.4)
dgsGridListAddColumn(gridlist,"test2",0.4)

----------------Click the column to enable the built-in sorting.
addCommandHandler("addRow",function()
	for i=1,20 do
		local row = dgsGridListAddRow(gridlist)
		dgsGridListSetItemText(gridlist,row,1,i)
		dgsGridListSetItemText(gridlist,row,2,i-1)
	end
end)
----------------No Bugs