Hi
I need to use in-line editing for the RadGrid and there is a GridDropcolumn involved also.My Grid Data source has four columns
1.CompProductId
2.ProductName
3.CompProdKeywordId
4.CompProdKeywordName
My issue is the Product Name column is not updated at all. Neither it is getting values in drop down also while doing in-line editing.
And also the Drop down is also not showing even if I bring the data somehow in the Column.
Also if I am clicking on save, I can see that the Datasource of the Grid has value in ProductName column but while refreshing the data from the column goes away.
I have seen all the examplles of inline editing. But nothing is helping.
Could you please help me out.
Regards
Harsh
I need to use in-line editing for the RadGrid and there is a GridDropcolumn involved also.My Grid Data source has four columns
1.CompProductId
2.ProductName
3.CompProdKeywordId
4.CompProdKeywordName
<telerik:RadGrid ID=
"radGridCompProdKeywords"
GridLines=
"None"
runat=
"server"
AllowAutomaticDeletes=
"True"
AllowAutomaticInserts=
"True"
PageSize=
"10"
AllowAutomaticUpdates=
"True"
AllowPaging=
"false"
AutoGenerateColumns=
"False"
OnUpdateCommand=
"radGridCompProdKeywords_ItemUpdated"
OnNeedDataSource=
"radGridCompProdKeywords_NeedDataSource"
OnDeleteCommand=
"radGridCompProdKeywords_ItemDeleted"
OnInsertCommand=
"radGridCompProdKeywords_ItemInserted"
Width=
"650px"
OnItemDataBound=
"radGridCompProdKeywords_ItemDataBound"
>
<MasterTableView EditMode=
"InPlace"
Width=
"100%"
CommandItemDisplay=
"Top"
DataKeyNames=
""
HorizontalAlign=
"NotSet"
AutoGenerateColumns=
"False"
>
<Columns>
<telerik:GridEditCommandColumn ButtonType=
"ImageButton"
UniqueName=
"EditCommandColumn"
> <ItemStyle CssClass=
"MyImageButton"
/>
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn DataField=
"CompProdKeywordId"
HeaderText=
"CompProdKeywordId"
SortExpression=
"CompProdKeywordId"
UniqueName=
"columnCompProdKeywordId"
ColumnEditorID=
"GridTextBoxCompProdKeywordId"
Visible=
"false"
>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField=
"CompProductId"
HeaderText=
"ProductId"
SortExpression=
"ProductId"
UniqueName=
"CompProductId"
ColumnEditorID=
"GridTextBoxCompProductId"
Visible=
"false"
>
</telerik:GridBoundColumn>
<telerik:GridDropDownColumn DataField=
"ProductName"
HeaderText=
"Company Product Name"
ListTextField=
"ProductName"
ListValueField=
"CompProductId"
UniqueName=
"columnCompProductName"
ColumnEditorID=
"GridDropDownColumnCompProdName"
ListDataMember=
"ProductName"
>
</telerik:GridDropDownColumn>
<telerik:GridBoundColumn DataField=
"CompProdKeywordName"
HeaderText=
"Keyword"
SortExpression=
"CompProdKeywordName"
UniqueName=
"columnCompProdKeywordName"
ColumnEditorID=
"GridTextBoxCompProdKeywordName"
>
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ConfirmText=
"Delete this product?"
ConfirmDialogType=
"RadWindow"
ConfirmTitle=
"Delete"
ButtonType=
"ImageButton"
CommandName=
"Delete"
Text=
"Delete"
UniqueName=
"DeleteColumn"
>
<ItemStyle HorizontalAlign=
"Center"
CssClass=
"MyImageButton"
/>
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowDblClick=
"RowDblClick"
/> </ClientSettings>
</telerik:RadGrid>
My issue is the Product Name column is not updated at all. Neither it is getting values in drop down also while doing in-line editing.
And also the Drop down is also not showing even if I bring the data somehow in the Column.
Also if I am clicking on save, I can see that the Datasource of the Grid has value in ProductName column but while refreshing the data from the column goes away.
I have seen all the examplles of inline editing. But nothing is helping.
Could you please help me out.
Regards
Harsh