RadGrid1_ItemUpdated
event i'm calling that function. But control is not going inside RadGrid1_ItemUpdated event. I'm binding the grid dynamically from oracle database. Any help would be appreciated.
Aspx:
<
asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" PageSize="5"
Width="612px" AutoGenerateEditColumn="True"
oniteminserted="RadGrid1_ItemInserted" onitemupdated="RadGrid1_ItemUpdated"
onneeddatasource="RadGrid1_NeedDataSource">
<PagerStyle AlwaysVisible="True" />
<
MasterTableView>
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<
ExpandCollapseColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
<PagerStyle AlwaysVisible="True" />
</
MasterTableView>
<EditItemStyle BackColor="#FFFF66" BorderColor="Black" BorderStyle="Solid" />
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
protected
void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
{
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
{
BAL.
BAL balobj = newBAL.BAL(); //Business layer object
int flag = 0;
GridEditableItem item = (GridEditableItem)e.Item;
string cty = item.GetDataKeyValue("city_name").ToString();
string id = item.GetDataKeyValue("city_id").ToString();
//calling validation function
flag = balobj.validate_cityName(cty);
if (flag == 0)
{
balobj.New_City_Name = cty;
balobj.City_Id = int.Parse(id);
balobj.city_modify();
}
else
{
Label1.Visible =
true;
Label1.Text =
"<script>alert('City name already exists')</script>";
}
}
}
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(RadComboBox_Make, RadComboBox_Model, RadAjaxLoadingPanel1)
The entire visual studio 2010 project so far can be downloaded here http://www.ignitioncarparts.co.uk/cpc.zip.
I would be very grateful for any help.
Thanks,
Lee


However, both row 1 and row 2 popups are rendered
We repeat and find that every popup that we open and close, is redisplayed, so soon we have dozen of popups when we go to open just one.| RadWindow wnd = new RadWindow(); |
| wnd.NavigateUrl = viewDetails; |
| wnd.Width = 900; |
| wnd.Height = 620; |
| wnd.Top = 120; |
| wnd.VisibleOnPageLoad = true; |
| wnd.OnClientShow = "OnClientShow"; |
| Master.RadWindowManager.Windows.Add(wnd); |