<table> <tr> <td valign="top" align="right"> <asp:Label ID="lblSchedule" runat="server" CssClass="labelText" Text="Schedule: "></asp:Label> </td> <td valign="top" align="left" colspan="3"> <telerik:RadButton ID="rdEmployer1" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="Radio" AutoPostBack="false" Text="Mon" Value="1"></telerik:RadButton> <telerik:RadButton ID="rdEmployer2" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="Radio" AutoPostBack="false" Text="Tue" Value="2"></telerik:RadButton> <telerik:RadButton ID="rdEmployer3" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="Radio" AutoPostBack="false" Text="Wed" Value="3"></telerik:RadButton> <telerik:RadButton ID="rdEmployer4" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="Radio" AutoPostBack="false" Text="Thr" Value="4"></telerik:RadButton> <telerik:RadButton ID="rdEmployer5" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="Radio" AutoPostBack="false" Text="Fri" Value="5"></telerik:RadButton> <telerik:RadButton ID="rdEmployer6" runat="server" ButtonType="ToggleButton" GroupName="Schedule" ToggleType="Radio" AutoPostBack="false" Text="Sat" Value="6"></telerik:RadButton> </td> </tr> </table> protected void btnEmployerEdit_Click(object sender, EventArgs e) { DataSet dsEmploerList = General.General.objService.GetEmployerBYID(Convert.ToInt32(EmployerPK); if (dsEmploerList != null && dsEmploerList.Tables.Count > 0 && dsEmploerList.Tables[0].Rows.Count > 0) { if (Convert.ToString(dsEmploerList.Tables[0].Rows[0]["Schedule"]) == "1") rdEmployer1.Checked = true; if (Convert.ToString(dsEmploerList.Tables[0].Rows[0]["Schedule"]) == "2") rdEmployer2.Checked = true; if (Convert.ToString(dsEmploerList.Tables[0].Rows[0]["Schedule"]) == "3") rdEmployer3.Checked = true; if (Convert.ToString(dsEmploerList.Tables[0].Rows[0]["Schedule"]) == "4") rdEmployer4.Checked = true; if (Convert.ToString(dsEmploerList.Tables[0].Rows[0]["Schedule"]) == "5") rdEmployer5.Checked = true; if (Convert.ToString(dsEmploerList.Tables[0].Rows[0]["Schedule"]) == "6") rdEmployer6.Checked = true; if (Convert.ToString(dsEmploerList.Tables[0].Rows[0]["Schedule"]) == "") rdEmployer1.Checked = rdEmployer2.Checked = rdEmployer3.Checked = rdEmployer4.Checked = rdEmployer5.Checked = rdEmployer6.Checked = false; } } protected void btnEmployerSave_Click(object sender, EventArgs e) { string Scheduler = string.Empty; if (rdEmployer1.Checked == true) Scheduler = "1"; if (rdEmployer2.Checked == true) Scheduler = "2"; if (rdEmployer3.Checked == true) Scheduler = "3"; if (rdEmployer4.Checked == true) Scheduler = "4"; if (rdEmployer5.Checked == true) Scheduler = "5"; if (rdEmployer6.Checked == true) Scheduler = "6"; if (EmployerPK > 0) { EmployerPK = General.General.objService.UpdateEmployer(EmployerPK, Scheduler); } else { EmployerPK = General.General.objService.InsertEmployer(Scheduler); } }
I have radajaxpanel and inside of that I have a radscriptblock. In the block I am writing dynamic javascript code. It has to be updated on postback with the changes made on the page by the user. Now, this process was working well for a while.
However, when I went to review the page. After postback, the javascript did not work. I noticed in firebug that when the page initially loaded I saw the script tag and the dynamic code. When I did a postback, I no longer saw the script tag, and no javascript was loaded. The only thing I recall was that I updated telerik on the site to 2017.1.118.45. Did something change in the newer version or could it be something else?
Hi,
I'm using a RadTreeList with data bound using a DataTable in NeedDataSource.
I set AllowRecursiveSelection to true so that all child nodes are selected too, even if they are not expanded.
Unfortunately, it doesn't work as expected. If I check SelectedItems on the server, I only get a list containing the currently VISIBLE selected items. The child items are not included. If I expand this selected node, the children are selected as expected and appear in the SelectedItems. If I collapse the node again, they don't appear in SelectedItems anymore.
Also, the Items property only contains the currently VISIBLE items, I expected it to contain all items.
The SelectedIndexes property is always correct, but I don't know how I could use this information to find the according data in the DataTable.
What do I have to do to get SelectedItems to return the invisble selected items too?
Thanks!

I have a page with some search criteria. When the page comes up the first time, I would like to present the page with no data in the grid. And once the user clicks the search button, I would populate the grid with data using the search criteria selected.
'Search Button Click Event
Private Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click
RadGrid2.DataSource = Data.SubmissionTracking.GetSubmissionDetails()
End Sub
'Rad Grid NeedDataSource Event
Hi,
I have a RadDatePicker with AutoPostBack="true". I need this post back to perform some logic and fetch some value for other controls.
I have having issue with date validation of this control. I have RequiredFieldValidator which check this date field. Now if I make date textbox as empty it fires the validation but also performs a post back which causes issues. How can I check for blank and invalid date in my RadDatePicker on client side and post back only when it has valid values?
<telerik:RadDatePicker ID="rdpStartDate" runat="server" EnableEmbeddedSkins="true" Skin="Bootstrap" RenderMode="Lightweight" OnSelectedDateChanged="rdpStartDate_SelectedDateChanged" AutoPostBack="true"
Calendar-Font-Size="Small" Calendar-CalendarTableStyle-Font-Size="Small" Calendar-DayStyle-Font-Size="Small" Calendar-TitleStyle-Font-Size="Small" />
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidatorStartDate" ControlToValidate="rdpStartDate" Display="Dynamic" ErrorMessage="Start Date is invalid." CssClass ="controlValidationLabels"> </asp:RequiredFieldValidator>
hi,
I am looking for ways to hide parent tabs/levels in my page as I dig down a hierarchical tabstrip(Telerik.Web.UI.RadTabStrip) that can go upto 4-5 levels deep and is not looking good on the UI. For exampIe, if I have 5 levels of tabs, I only want to display the fifth level. I am using a sitemap for the page. (I am also building a clickable breadcrumb that will allow the user to navigate back and I do not need the parent tabs when I go beyond 2 levels or so)
When I try to hide the tabs by using the tab.Visible property or the tabstrip.Remove it removes all the children including the one that I actually want to display.
I would appreciate any help you can provide.
Thanks,
Pratheesh
After upgrading my .net Framework from 4.0 to 4.6.1 my async upload control seems to have stopped working.
This is the version of the async control I'm using.
<add assembly="Telerik.Web.Design, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
Could this be the cause of the problem?