HierarchyDefaultExpanded
="false"
on the MasterTableView, but it had no effect.
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
|
[FormatException: The string was not recognized as a valid DateTime.] |
Protected Function ExceedsLimit(ByVal apt As Appointment) As Boolean
Dim appointmentsCount As Integer = RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End).Count
Return (appointmentsCount > (AppointmentsLimit - 1))
End Function
Protected Sub RadScheduler1_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs)
If ExceedsLimit(e.Appointment) Then
Label1.Text = "Another appointment exists in this time slot." <- radalert windows?
e.Cancel = True
End If
End Sub
All the content in my slidingplane is not how it should be ... font-size = small, css class defined structures handled different then in a normal RadPane ...
How come ? Below my splitter
| <telerik:RadSplitter id="splitter1" runat="server" height="470" width="100%"> | |
| <telerik:RadPane ID="paneleft" runat="server" Width="200" Scrolling="Both" MinWidth="200" MaxWidth="300"> | |
| </telerik:RadPane> | |
| <telerik:RadSplitBar id="split1" runat="server"></telerik:RadSplitBar> | |
| <telerik:RadPane id="panemain" MinWidth="500" runat="server"> | |
| <div style="padding: 10px;"> | |
| <asp:UpdatePanel ID="updatePanel" runat="server"> | |
| <ContentTemplate> | |
| </ContentTemplate> | |
| </asp:UpdatePanel> | |
| </div> | |
| </telerik:RadPane> | |
| <telerik:RadPane id="paneright" Width="22" runat="server"> | |
| <telerik:RadSlidingZone id="zoneright" runat="server" Width="22" DockedPaneId="slidingpane1" ClickToOpen="True" slidedirection="Left"> | |
| <telerik:RadSlidingPane id="slidingpane1" Scrolling="Y" Height="400" title="SlindingPane 1" runat="server" Width="210"> | |
| </telerik:RadSlidingPane> | |
| </telerik:RadSlidingZone> | |
| </telerik:RadPane> | |
| </telerik:RadSplitter> |
<telerik:GridBoundColumn DataField="TRANS_AMOUNT" HeaderText="Amount" UniqueName="TRANS_AMOUNT"
ReadOnly="True">
<HeaderStyle HorizontalAlign="Left" Width="100px" Wrap="False" />
<ItemStyle HorizontalAlign="Right" Width="100px" Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="USE_TAX_AMT" HeaderText="Use Tax" UniqueName="USE_TAX_AMT"
AllowFiltering="False">
<HeaderStyle HorizontalAlign="Left" Width="45px" Wrap="False" />
<ItemStyle HorizontalAlign="Right" Width="45px" Wrap="False" />
<ItemTemplate>
<asp:LinkButton ID="lbUseTax" runat="server" CommandName="Taxes" Width="45px" CssClass="Normal"
ToolTip="Click to edit use Tax" Text='<%#DataBinder.Eval(Container, "DataItem.USE_TAX_AMT") %>'
OnClick="useTaxClick"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
'-----------------------------------------------------------------------------------------------
Public Sub useTaxClick(ByVal sender As Object, ByVal e As System.EventArgs)
'need to get the value from the grid column TRANS_AMOUNT to pass as parameter to the window
Dim taxable As Double = 0
Dim newWindow As New Telerik.Web.UI.RadWindow
Master.Page.Form.Controls.Add(newWindow)
End Sub
But how do I access the TRANS_AMOUNT column value for the row where the link button was clicked? Neither sender nor e is capable of representing the row.
Thanks