function
GetWarehouseReleationByWarehouseId() {<br> $.AjaxData.push({ key:
'WarehouseId'
, value: selectedWarehouse_OnWarehouseManagement.Id });<br> AjaxTransactions(<br>
'../Warehouse/GetAllWarehouseRelationList/'
,<br> $.AjaxData,<br>
function
(result) {<br> selectedWarehouseReleationData = result.Objects;<br><br> KendoData(
'grdWarehouse_OnWarehouseRelation'
).dataSource.data([]);<br> $.each(selectedWarehouseReleationData,
function
(index, data) {<br> <br> debugger;<br> KendoData(
'grdWarehouse_OnWarehouseRelation'
).dataSource.add({<br> Id: data.Id,<br> Warehouse: { Id:1,WarehouseName:
'test'
},<br> ProcessType: { Value: data.WarehouseRelationProcessTypeId }<br> <br> }); <br> });<br><br> },
'post'
,
'json'
,
false
,
false
);<br>};
This My JavaScript fonks I set Value ınline Grid Combobox Here!!
grid._schemaMethod = {<
br
> model: {<
br
> id: 'Id',<
br
> fields: {<
br
> Warehouse: { defaultValue: { Id: '', WarehouseName: '' } },<
br
> ProcessType: { defaultValue: { Value: '', Text: '' } },<
br
> }<
br
> }<
br
> };<
br
> grid._columns.push(grid.GridColumn('Id', null, '200px', null, null, null, null, null, null, null, true));<
br
> grid._columns.push(grid.GridColumn('Warehouse', Field_RelatedWarehouse, '200px', null, "#=Warehouse.WarehouseName#", null, null, null, null, null, null, null, null, null, RelatedWarehouseEditor));<
br
> grid._columns.push(grid.GridColumn('ProcessType',Field_ProcessType, '200px', null, "#=ProcessType.Text#", null, null, null, null, null, null, null, null, null, ProcessTypeEditor));<
br
> grid._columns.push(grid.GridColumn(null, ' ', '200px', { style: 'text-align:right' }, null, null, null, null, null, null, null, null, null, ['edit', 'destroy']));
This Part my Inlıne grid !!
1.
function
ProcessTypeEditor(container, options) {<br><br>
var
processType = [<br> {
"Text"
:
"Transfer"
,
'Value'
: 1 },<br> {
"Text"
:
"Talep"
,
'Value'
: 2 }<br> ];<br> $(
'<input name="'
+ options.field +
'"/>'
)<br> .appendTo(container)<br> .kendoComboBox({<br> autoBind:
false
,<br> dataTextField:
"Text"
,<br> dataValueField:
"Value"
,<br> dataSource: { data: processType },<br> });<br>};<br>
function
RelatedWarehouseEditor(container, options) {<br><br> GetWarehouseListByFacilityId();<br><br> $(
'<input name="'
+ options.field +
'"/>'
)<br> .appendTo(container)<br> .kendoDropDownList({<br> autoBind:
true
,<br> dataTextField:
"WarehouseName"
,<br> dataValueField:
"Id"
,<br> dataSource: { data: warehouseList_OnContactInfo },<br> });<br>};
And I this Combobox Value
What Can I now I cant set my result to combobox Can you Help Me ? ! !!