Hi,
I have Rad Grid with batch updates. Edit template column has a custom user control with multiple buttons used to check if the user entered exists within Active directory and a cancel. These buttons cause a post back and causing the grid to reload. Is there a way to persist the edit mode of the grid ??
Please help
Thanks

public void editLink_Click(object sender, EventArgs e){ string script = "alert('hello');"; //This does not work RadScriptManager.RegisterStartupScript(this, GetType(), "test", script, true); //This does not work RadScriptManager.GetCurrent(this.Page).RegisterDataItem(this, "javascript:" + script); //This does not work RadWindow newWindow = new RadWindow(); newWindow.NavigateUrl = "http://www.telerik.com"; newWindow.VisibleOnPageLoad = true; ((AlarmLogMaster)this.Page.Master).WindowManager.Windows.Add(newWindow); }
From a hyperlink I need default values to appear when a RadGrid PopUp opens in "Add New" mode. It works fine when a RadButton is clicked (CommandName="InitInsert"). For that I set defaults in the RadGrid_ItemCommand:
if (e.CommandName == RadGrid.InitInsertCommandName){ e.Canceled = true; Hashtable values = GetDefaultValues(); e.Item.OwnerTableView.InsertItem(values); }
I have radgrid, with 3 command buttons(Edit, Save and Cancel)
On Edit click Save and cancel buttons should be visible. (By default they should be disabled)
after Save or Cancel click grid goes to read only mode and only Edit command button should be displayed.
i tried all the possibilities by finding the command button and disabling it. Though there is no exception or anything still couldn't achieve this functionality.
Please help me out..it is needed immediately.
CODE :
<telerik:RadGrid ID="gridMilitaryPension" runat="server" AutoGenerateColumns="false" AllowMultiRowEdit="true" RenderMode="lightweight"
Skin="Office2007" PagerStyle-Mode="NextPrevAndNumeric" AllowPaging="True" PageSize="30" OnNeedDataSource="gridMilitaryPension_NeedDataSource"
OnItemCommand="gridMilitaryPension_ItemCommand" >
<MasterTableView CommandItemDisplay="Top" EditMode="InPlace" Font-Size="10pt">
<Columns>
<telerik:GridBoundColumn UniqueName="ID" DataField="ID" HeaderText="ID" Display="true" ReadOnly="True"
ForceExtractValue="Always">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="slottype" DataField="slottype" HeaderText="Slot Type" SortExpression="slottype" ReadOnly="True"
ForceExtractValue="Always">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="total" UniqueName="total" HeaderText="Total Seats" SortExpression="total">
<ItemTemplate>
<asp:Label ID="lblTotalSeats" runat="server" Text='<%# Eval("total") %>' class="classLblTotal"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtTotalSeats" runat="server" Text='<%# Eval("total") %>' Width="100%" class='<%# Eval("slottype") %>' onblur="addition(this)" onchange="DataChanged(this)"></asp:TextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<CommandItemTemplate>
<table>
<tr>
<td> <asp:Button runat="server" ID="btnSaveAllChanges" Text="Save All Changes" CommandName="SaveAllChanges" /></td>
<td> <asp:Button runat="server" ID="btnCancel" Text="Cancel" CommandName="Cancel" /></td>
<td> <asp:Button runat="server" ID="btnEdit" Text="Edit Total Seats" CommandName="Edit" onclick="btnEdit_Click"/></td>
</tr>
</table>
</CommandItemTemplate>
</MasterTableView>
</telerik:RadGrid>
In code Behind:
protected void gridMilitaryPension_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == "Edit")
{
//Below i am capturing the controls and trying to hide/unhide. used visible property also but no luck
GridCommandItem cmditem = (GridCommandItem)e.Item;
Button btnSaveAllChanges = cmditem.FindControl("btnSaveAllChanges") as Button;
Button btnCancel = cmditem.FindControl("btnCancel") as Button;
Button btnEdit = cmditem.FindControl("btnEdit") as Button;
btnSaveAllChanges.Enabled = true;
btnCancel.Enabled = true;
btnEdit.Enabled = false;
}
}
if (e.CommandName == "SaveAllChanges")
{
//after logic, Edit button should be enabled.
}
return;
}
if (e.CommandName == "Cancel")
{
gridMilitaryPension.MasterTableView.ClearEditItems();
gridMilitaryPension.Rebind();
}
}


I am trying to only show 5 min intervals but no matter what I do in code its only showing ie 10:10 ,10:20
Here is what I have tried so far I am using the demo to evulate it for our company.
<telerik:RadScheduler runat="server" Skin="Bootstrap" ID="apertureAppointments" Width="100%" DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True" RowHeight="30px" RenderMode="Auto" EnableDescriptionField="True" EnableExactTimeRendering="True" DayStartTime="10:00:00" DayView-DayStartTime="10:00:00" FirstDayOfWeek="Monday" HoursPanelTimeFormat="H:mm:ss" LastDayOfWeek="Friday" MinutesPerRow="5" > <ExportSettings OpenInNewWindow="True"> <Pdf PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" PageTopMargin="1in" /> </ExportSettings> <AdvancedForm Modal="True" /> <TimeSlotContextMenus> <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server"> <Items> <telerik:RadMenuItem Text="New Appointment" Value="CommandAddAppointment" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="New Recurring Appointment" Value="CommandAddRecurringAppointment" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" /> <telerik:RadMenuItem Text="Show 24 hours..." Value="CommandShow24Hours" /> </Items> </telerik:RadSchedulerContextMenu> </TimeSlotContextMenus> <AppointmentContextMenus> <telerik:RadSchedulerContextMenu runat="server" ID="ContextMenu1"> <Items> <telerik:RadMenuItem Text="Open" Value="CommandEdit" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Categorize"> <Items> <telerik:RadMenuItem Text="Development" Value="1" /> <telerik:RadMenuItem Text="Marketing" Value="2" /> <telerik:RadMenuItem Text="Personal" Value="3" /> <telerik:RadMenuItem Text="Work" Value="4" /> </Items> </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Delete" Value="CommandDelete" /> </Items> </telerik:RadSchedulerContextMenu> </AppointmentContextMenus> <ResourceTypes> <telerik:ResourceType KeyField="ID" Name="Room" TextField="RoomName" ForeignKeyField="RoomID" DataSourceID="RoomsDataSource"></telerik:ResourceType> </ResourceTypes> <ResourceStyles> <telerik:ResourceStyleMapping Type="User" Text="Alex" ApplyCssClass="rsCategoryBlue"></telerik:ResourceStyleMapping> <telerik:ResourceStyleMapping Type="User" Text="Bob" ApplyCssClass="rsCategoryOrange"></telerik:ResourceStyleMapping> <telerik:ResourceStyleMapping Type="User" Text="Charlie" ApplyCssClass="rsCategoryGreen"></telerik:ResourceStyleMapping></ResourceStyles> </telerik:RadScheduler>
[MissingMethodException: Method not found: 'Int32 Telerik.Web.UI.UploadedFile.get_ContentLength()'.] DotNetNuke.Providers.RadEditorProvider.TelerikFileBrowserProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) +0 Telerik.Web.UI.RadFileExplorer.ProcessUploadedFiles() +1134 Telerik.Web.UI.RadFileExplorer.OnLoad(EventArgs e) +248 System.Web.UI.Control.LoadRecursive() +71 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Control.LoadRecursive() +190 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064The base class includes the field '<componentName>', but its type (Telerik.Web.UI.RadWindowManager) is not compatible with the type of control (Telerik.Web.UI.RadWindowManager).
Hi,
Please let me know how to add RadclientDatasource in toolbox
I refer the following link : http://docs.telerik.com/devtools/aspnet-ajax/controls/clientdatasource/connecting-to-web-service
But there is no RadClientDataSource in toolbox.
While copying the code from the sample application , I got the error " Unknown server tag 'telerik:RadClientDataSource'.
Kindly advise.
