When specific condition met i am giving datasource to combobox and for the first time it binds and item are showing in the combox.. but the problem is when i am trying to bind again with different datasource it get stuck. Item are not showing in combobox.
asp code:
<asp:Label ID="Label1" runat="server" Text="" Visible="false"><img src="../../../Resources/images/dependent16x16(2).png" alt="dependent" /></asp:Label> <telerik:RadToolTip RenderMode="Lightweight" ID="RadToolTip1" runat="server" TargetControlID="Label1" Width="320px" RelativeTo="Element" Position="MiddleRight" HideEvent="ManualClose" EnableRoundedCorners="true" OffsetX="2" EnableShadow="true" ShowEvent="OnMouseOver" > <asp:Literal ID="Literal36" runat="server" Text="Dependents"></asp:Literal> <telerik:RadComboBox ID="cmbDependent" runat="server" MarkFirstMatch="true" RenderMode="Lightweight" AllowCustomText="false" Width="220px" EmptyMessage="Select Dependent" OnSelectedIndexChanged="cmbDependent_SelectedIndexChanged" AutoPostBack="true" ZIndex="50001" > </telerik:RadComboBox> </telerik:RadToolTip>
C# binding function
private void BindDependents() { cmbDependent.ClearSelection(); cmbDependent.DataSource = objMedicalInsuranceRepository.GetDependent(txtStaffNo.Text.Trim()); cmbDependent.DataValueField = "VALUE"; cmbDependent.DataTextField = "NAME"; cmbDependent.DataBind(); }
my query:
public DataTable GetDependent(string pBadgeNo) { query = "SELECT S_S_N VALUE,INITCAP(FIRST_NAME||' '||IFSAPP.COMPANY_PERSON_API.GET_NAME('990',PERSON_ID))||' - '||RELATIONSHIP_TYPE NAME FROM "+ "IFSAPP.EMPLOYEE_DEPENDENT_TAB WHERE PERSON_ID ='" + pBadgeNo + "'"; return objDBHelper.ExecuteDataTable(query); }
please help..

Hello,
I'd like to implement a jQuery "DateRangePicker with Times" found here in a RadGrid EditFormTemplate.
When the following code is outside of the RadGrid, all works as expected:
<div class="col-md-4 col-md-offset-2 demo"> <center> <input type="text" id="config-demo" class="form-control"> </center></div><script type="text/javascript"> $('#config-demo').daterangepicker({ "timePicker": true, "linkedCalendars": false, "startDate": "01/11/2020", "endDate": "01/17/2020" }, function (start, end, label) { console.log("New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') + ' (predefined range: ' + label + ')"); });</script>
However, when the code is inserted into the <FormTemplate> blocks, it does not work. Can anyone help with what I might be missing? All the required references (.js, .css) are available to be downloaded as a ZIP on the page linked above.
Alternatively, I'm open to listen to any recommendations on how to achieve a similar result as linked above via Telerik controls.
Thanks!

I have a Visual Studio 2015 web project that uses RadScheduler and RadEditor.
I just downloaded the latest Telerik version (2016.3.1027) and updated the project.
Now when I build the solution, I get the following errors:
Unknown server tag 'dc:TableDesign'.....file: TableWizard.ascx.....Line: 844
Unknown server tag 'Telerik:TableBorder'.....file: TableProperties.ascx.....Line: 362

Hello,
I'm really hoping somebody can shed light onto why code that was working in an earlier version of RadGrid no longer works after updating to the latest version of Grid. This code was working fine before the update. Now, although it sets the Enables property as expected (and I see this in the console) the change is not rendered on the grid. Am I doing something wrong? Or did this functionality actually get broken? It was a very easy way to disable a row. I understand there are other ways to do this, but they require more code. Seems silly that this would be taken away and I'm hoping I am wrong. Thanks!
Public Sub rgbt_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgbt.ItemDataBound
Dim item As GridDataItem = CType(e.Item, GridDataItem)
Dim lblEmpMsg As Label = CType(e.Item.FindControl("lblEmpMsg"), Label)
Dim empMsgVal As String = lblEmpMsg.Text
If (empMsgVal = "" Or IsDBNull(empMsgVal)) Then
item.Enabled = True
Else
item.Enabled = False
End If
End sub
Thanks!
Hi Support team,
May I know how to access the LastModifiedDate for the file uploaded through RadAsyncUpload before saveas?
I need to check whether the file modified before or not.
As I can see from the tutorial:-
- The property is available only in RadAsyncUpload control when FileApi module is used
I not able to have this LastModifiedDate with my below code. Please advise. Thanks
foreach (UploadedFile f in RadAsyncUpload1.UploadedFiles)
{
//f.LastModifiedDate - this is not available
}
I have a RadioButtonList on an ASP.Net page with VB.net as the code-behind.
The RadioButtonList has 4 items with 2 columns. Originally I had it set up where RepeatDirection is Horizontal and Direction is Horizontal.
The problem I am having is that the 2 rows of the items are too close together. That especially is a problem when displaying the page on a 10.1" tablet in portrait position because it makes it really hard to select an item in the second row.
Changing the RepeatDirection and Direction to Vertical helped to give more space which looks on a PC and a 10.1" tablet in landscape position. But it is still too close on a 10.1" tablet in portrait position.
I have tried using "padding" in CSS for the RadioButtonList but that only changes the spacing around the RadioButtonList.
Please help me with this.
Here is my RadioButtonList:
<telerik:RadRadioButtonList runat="server" ID="rrblSortBy" RepeatDirection="Vertical" RenderMode="Lightweight" AutoPostBack="False" Direction="Vertical" Skin="Glow" Columns="2" SelectedIndex="0" SelectedValue="Supplier"> <Items> <telerik:ButtonListItem Selected="True" Text="Supplier" Value="Supplier" /> <telerik:ButtonListItem Text="Serial No." Value="Serial No." /> <telerik:ButtonListItem Text="RSDC Part No." Value="RSDC Part No." /> <telerik:ButtonListItem Text="Customer" Value="Customer" /> </Items></telerik:RadRadioButtonList>
Sincerely,
Keith Jackson
Press 'Backspace' or 'Delete' key in textbox (Username or Password), it made character deleting which file is opened.
Good afternoon, I tried to export a radgrid to Excel with success using
Telerik.Web.UI.GridExcelExportFormat.ExcelML with ExportOnlyData/IgnorePaging/OpenInNewWindow all set to true. I have search for a couple of days a way to add content to the Excel sheet before adding the radgrid. I mean, I need to add some text to the Excel file and execute some macro on the Excel sheet. How can I do this? The radgrid is using Ajax.
Any help would be most appreciated. Shoud a use an Excel template and feed the datagrid into it? By the way, I am using Excel 2007 but hope everything work's also in Excel 2003.
I use the function ExcelMLExportRowCreated and ExcelMLExportStylesCreated to format the loook and feel of the columns with success.
Thank's for your precious time :)
Mario

Hi,
I am using RadCombobox with EnableLoadOnDemand="true" Option , its working fine.I have Clear Button in the same page ,After clicking on Clear Button i need to display default item in combobox.
I saw solution for the same requirement , but thats not working .
Following is Aspx Code :
<telerik:RadComboBox ID="RadComboBox1" runat="server"
EmptyMessage="Select" EnableLoadOnDemand="true"
>
</telerik:RadComboBox>
<asp:Button ID="btnSubmit" runat ="server" Text ="Clear" OnClick ="btnSubmit_click"/>
Following is Csharp Code :
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataTable dataTable = CreateDataSource();
foreach (DataRow dataRow in dataTable.Rows)
{
RadComboBoxItem item = new RadComboBoxItem();
item.Text = (string)dataRow["Name"];
item.Value = dataRow["ID"].ToString();
RadComboBox1.Items.Add(item);
item.DataBind();
}
// preselect the second item
//RadComboBox1.SelectedValue = "0";
RadComboBox1.Items[0].Selected = true;
}
}
protected DataTable CreateDataSource()
{
DataTable dataTable = new DataTable();
dataTable.Columns.Add(new DataColumn("ID", typeof(string)));
dataTable.Columns.Add(new DataColumn("Name", typeof(string)));
DataRow dr = dataTable.NewRow();
dr["ID"] = "0";
dr["Name"] = "SELECT NAME";
dataTable.Rows.Add(dr);
DataRow dr1 = dataTable.NewRow();
dr1["ID"] = "1";
dr1["Name"] = "Name1";
dataTable.Rows.Add(dr1);
DataRow dr2 = dataTable.NewRow();
dr2["ID"] = "2";
dr2["Name"] = "Name2";
dataTable.Rows.Add(dr2);
DataRow dr3 = dataTable.NewRow();
dr3["ID"] = "3";
dr3["Name"] = "Name3";
dataTable.Rows.Add(dr3);
return dataTable;
}
protected void btnSubmit_click(object sender, EventArgs e)
{
RadComboBox1.Items[0].Selected = true;
}
}
Thanks,