// Something like this but on the Schedularprotected void RadGrid1_ItemUpdated(object source, GridUpdatedEventArgs e) { if (e.Exception != null) { e.ExceptionHandled = true; ShowErrorMessage(); } }foreach (GridDataItem dataItem in rgTaskDevice.Items)
{
Device device = new Device();
device.Id =
Convert.ToInt64(dataItem["Id"].Text); // this causes Exception because .Text = " "
//same for all other columns
...
}
a custom skin called GuSkin that i build using a different project.<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" EnableStyleSheetCombine="false"> <StyleSheets> <telerik:StyleSheetReference Name="GuTelerikSkins.FormDecorator.css" Assembly="GuTelerikSkins" /> <telerik:StyleSheetReference Name="GuTelerikSkins.Menu.css" Assembly="GuTelerikSkins" /> <telerik:StyleSheetReference Name="GuTelerikSkins.Grid.css" Assembly="GuTelerikSkins" /> <telerik:StyleSheetReference Name="GuTelerikSkins.Window.css" Assembly="GuTelerikSkins" /> <telerik:StyleSheetReference Name="GuTelerikSkins.ComboBox.css" Assembly="GuTelerikSkins" /> </StyleSheets></telerik:RadStyleSheetManager>Helvetica, Arial, sans-serifBut the base css of Telerik send a css property that override my font family (which must be common through all the website):
RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(fShiftQty , fBalance , Progress1); RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(fShiftQty , fHours , Progress1); RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(fHours , fShiftQty , Progress1); RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(fHours , fBalance , Progress1); RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(fCrewSize , fCrewTotal , Progress1); RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(fCrewSize , fCrewTemps , Progress1); RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(fCrewSize , fCrewPeople , Progress1); RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(btnSave2 , btnSave2 , Progress1);SetAjaxUpdates( new Control[ , ] { {fShiftQty, fBalance}, {fShiftQty, fHours}, {fHours , fShiftQty}, {fHours , fBalance} ,
{fCrewSize , fCrewTotal} , {fCrewSize , fCrewTemps} , {fCrewSize , fCrewPeople }, {btnSave2 , btnSave2} } );void SetAjaxUpdates( Control[ , ] controls ) { for ( int i = 0 ; i <= controls.GetUpperBound(0) ; i++ ) RAMPUCScheduleEdit.AjaxSettings.AddAjaxSetting(
controls[ i , 0 ] , controls[ i , 1 ] , Progress1); }
<telerik:RadGrid runat="server" ID="grdDetails"
Skin="Vista" EnableAJAX="true" Height="100%" BorderWidth="0"
AllowSorting="true" Style="outline: none" ShowGroupPanel="true"
Width="100%" oncancelcommand="cancleGrdetails" oneditcommand="bindGrdetails1"
onupdatecommand="updategrdetails">
<MasterTableView AutoGenerateColumns="false" EditMode="PopUp">
<Columns>
<telerik:GridBoundColumn UniqueName="Name" HeaderText="Name"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="EntityId" HeaderText="EntityId"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="Jurisdiction" HeaderText="Jurisdiction"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="EventType" HeaderText="EventType"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="StartDate" HeaderText="StartDate"></telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="EndDate" HeaderText="EndDate"></telerik:GridBoundColumn>
<telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="Editrow"></telerik:GridEditCommandColumn>
</Columns>
</MasterTableView>
<clientsettings>
<Selecting AllowRowSelect="true" />
</clientsettings>
</telerik:RadGrid>
protected void bindGrdetails(object sender, EventArgs e)
{
//grdDetails.DataSource = null;
grdDetails.DataSource =
"edit".Split();
grdDetails.DataBind();
grdDetails.Visible =
true;
}
protected void bindGrdetails1(object source, GridCommandEventArgs e)
{
grdDetails.Visible =
true;
bindGrdetails(source, e);
}
protected void updategrdetails(object source, EventArgs e)
{
bindGrdetails(source, e);
}
protected void cancleGrdetails(object source, EventArgs e)
{
bindGrdetails(source, e);
}