Hi everyone,
I’ve to load a large amount of data in a RadGrid and in order to improve performance I would like to disable the RadGrid ViewState.
My RadGrid just show data and let the user to click in some image buttons to do some actions with the selected row.
When I set the EnableViewState to false, I’ve found the RadGrid1_ItemCommand event doesn’t fire when you click on the Image button but it does when you click on a link button.
<telerik:GridTemplateColumn FilterControlAltText="" UniqueName="TemplateColumn6">
<ItemTemplate>
<!--ImageButton doesn't fire the RadGrid1_ItemCommand event -->
<asp:ImageButton ID="ImageButton1" runat="server" CommandName="Imprimir2" ImageUrl="printer3.png"
CausesValidation="false" />
<!--LinkButton fires the RadGrid1_ItemCommand event-->
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" CommandName="Imprimir"
Text="Print" CssClass="myCssStyle"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
<script type="text/javascript"> function OnClientClicking(sender, args) { var callBackFunction = Function.createDelegate(sender, function (argument) { if (argument) { this.click(); } }); var text = "Are you sure you want to archive this application?"; radconfirm(text, callBackFunction, 300, 100, null, "Archive?"); args.set_cancel(true); } </script><telerik:RadButton ID="imgArchive" runat="server" CommandName="Refs" OnClientClicking="OnClientClicking"></telerik:RadButton><telerik:RadGrid ID="radgridLukkheUsers" runat="server" DataSourceID="lukkheusers" GridLines="None" AutoGenerateColumns="False"> <MasterTableView DataSourceID="lukkheusers"> <Columns> <telerik:GridBoundColumn DataField="displayname" HeaderText="User" SortExpression="displayname" UniqueName="displayname"> </telerik:GridBoundColumn> <telerik:GridButtonColumn ButtonType="PushButton" Text="Add" CommandName="Add"> </telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid>Consider the following example:
The scheduler has a recurring appointment over three days with the following duration:
09.00-10.00 wednesday
09.00-10.00 thursday
09.00-10.00 friday
How do I deny the creation of an earlier second recurring appointment? Like the one below:
09.00-10.00 monday
09.00-10.00 tuesday
09.00-10.00 wednesday (conflict not trapped)
The example provided by Telerik, "ConflictsWithOccurrences", doesn't seem to handle this particular situation.
However, the following recurring appointment is trapped as expected:
09.00-10.00 friday (conflict trapped)
09.00-10.00 saturday
09.00-10.00 sunday
Has anyone done this?