<asp:ScriptManager ID="ScMain" runat="server" LoadScriptsBeforeUI="false" ScriptMode="Release">
/asp:ScriptManager>
<asp:UpdatePanel ID="upSchedular" runat="server">
ContentTemplate>
telerik:RadScheduler ID="rsAppointments" runat="server" ShowFooter="false"
AllowEdit="true" AllowDelete="true" ShowAllDayRow="false" AllowInsert="true"
SelectedView="MonthView" DataMember="schd_description" DisplayRecurrenceActionDialogOnMove="true"
DisplayDeleteConfirmation="true" DataKeyField="schd_id" DataSubjectField="schd_description"
DataStartField="schd_start_time" DataEndField="schd_end_time" ValidationGroup="rsAppointments"
OnClientAppointmentInserting="OnClientAppointmentInserting" OnAppointmentInsert="rsAppointments_AppointmentInsert"
OnAppointmentDelete="rsAppointments_AppointmentDelete" OnAppointmentUpdate="rsAppointments_AppointmentUpdate"
OnTimeSlotCreated="rsAppointments_TimeSlotCreated">
</telerik:RadScheduler>
</ContentTemplate>
</asp:UpdatePanel>
public void GetData()
{
wsSchedular = new WSSchedular();
string strLabLocation = string.Empty;
try
{
objTable = wsSchedular.GetScheduling(
);
rsAppointments.Enabled = true;
rsAppointments.DataSource = objTable;
rsAppointments.DataBind();
}
catch (Exception ex)
{
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "errMsg", "javascript:alert(\"Error:- Page -> ph_scheduler.aspx -> Method -> 'GetPhlebotmistSchedule' \\n Description:- \\n" + ex.Message + "\");", true);
return;
}
| schd_id | schd_hc_transaction_id | schd_phlebotomist_id | schd_customer_id | schd_location_id | schd_start_time | schd_end_time | schd_description | created_date | status |
| 2 | HMC2009/9/0001 | 9899899999 | 2009/9/0001 | Dwarka | 9/23/2009 4:30 | 9/23/2009 5:30 | Collect samples | 9/22/2009 13:23 | O |
| 4 | HMC2009/9/0002 | 9999999999 | 2009/9/0002 | IIT Area | 9/23/2009 4:30 | 9/23/2009 5:30 | Collect samples | 9/22/2009 16:56 | O |
| 5 | HMC2009/9/0003 | 9899899999 | 2009/9/0001 | Dwarka | 9/23/2009 4:30 | 9/23/2009 5:30 | Collect samples | 9/23/2009 12:54 | O |
| 10 | HMC2009/9/0004 | 9999999999 | 2009/9/0002 | IIT Area | 9/23/2009 5:30 | 9/23/2009 6:30 | Collect samples | 9/23/2009 15:34 | O |
| Args: [GridCommandEventArgs e] |
| Code: object eeditFormUserControl = e.Item.FindControl(GridEditFormItem.EditFormUserControlID); |
Hi, is there a property to hide Editor Tool during preview?
Is it possible also to replace it with custom text?
Thanks,
RJ
Folks,
I have Two level hierarchy Rad Grid. Allow filtering is enabled in both Master/DetailTables. Below codes (which I am using from Telerik Demos) works for Master Table.
I would like to know is it possible 1) when Filters are cleared in Master Table, Detail Tables Filters are also Cleared; 2) When Filter Show/Hide is checked in Master Table it applies to Detail Table also (i.e. Show/Hide Filters in Detail Table)
I am using RadControls for ASP.NET AJAX Q2 2009 with VS 2008 (Service pack 1)
Thanks a lot.
gc_0620
_________________
1) How to Clear the Filters in Detail Table when Clearing Filters in Master Table.
<asp:Button ID="Button_Clear_Filters" CssClass="form-button" Text="Clear all Filters" OnClick="Button_Clear_Filters_Click"
runat="server"></asp:Button>
protected void Button_Clear_Filters_Click(object sender, EventArgs e)
{
foreach (GridColumn column in RadGrid1.MasterTableView.Columns)
{
column.CurrentFilterFunction = GridKnownFunction.NoFilter;
column.CurrentFilterValue = string.Empty;
}
RadGrid1.MasterTableView.FilterExpression = string.Empty;
RadGrid1.MasterTableView.Rebind();
}
2) How to Show/Hide Filters in Detail Table when Show/Hide Filters in Master Table.
<td class="style3" >
Show filtering item? <input id="Radio3" type="radio" runat="server" name="showHideGroup" checked="true" onclick="showFilterItem()" /><label for="Radio1">Yes</label>
<input id="Radio4" type="radio" runat="server" name="showHideGroup" onclick="hideFilterItem()"/><label for="Radio2" >No</label>
</td>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function showFilterItem() {
$find('<%=RadGrid1.ClientID %>').get_masterTableView().showFilterItem();
}
function hideFilterItem() {
$find('<%=RadGrid1.ClientID %>').get_masterTableView().hideFilterItem();
}
</script>
</telerik:RadCodeBlock>
Chart display in asp.net with three series
<div style="margin:10px 10px 10px 10px;">
<telerik:RadChart ID="RadChart1" runat="server" Height="333px" Skin="Hay" UseSession="true" Legend-Visible="true"
Width="700px" AutoLayout="True"
AutoTextWrap="True" SeriesOrientation="Vertical">
<Series>
<telerik:ChartSeries Name="QUALIFIED_COUNT" Type="Bar" DataYColumn="QUALIFIED_COUNT" Appearance-BarWidthPercent="30">
</telerik:ChartSeries>
<telerik:ChartSeries Name="NONQUALIFIED_COUNT" Type="Bar" DataYColumn="NONQUALIFIED_COUNT" Appearance-BarWidthPercent="30" >
</telerik:ChartSeries>
<telerik:ChartSeries Name="ABANDONED_COUNT" Type="Bar" DataYColumn="ABANDON_COUNT" Appearance-BarWidthPercent="30" >
</telerik:ChartSeries>
</Series>
<PlotArea>
<XAxis DataLabelsColumn="creation_month">
</XAxis>
<YAxis Appearance-ValueFormat="General" LabelStep="10"></YAxis>
</PlotArea>
</telerik:RadChart>
</div>
C# code to make its visibility false:
if (IncludeQualified == "N") //when the check box is unchecked
{
RadChart1.Series[0].Visible = false; --the bar suppresses but the legend still there
divQualifiedReport.Visible = false;
}
else
{
gvQualifiedReport.DataSource = dsReport.Tables[1]; --data binding in else
gvQualifiedReport.DataBind();
}
if (IncludeNonQualified == "N")
this IncludeQualified will set as ‘N’ if I uncheck the relevant check box.
thanks
saran