I have several RadGrids nested within their own ASP.NET UpdatePanels which are within an ASP.NET MultiView. I'm experiencing issues when it comes to exporting the RadGrid to Excel.
I know that the control needs to be registered to allow a PostBack, but I want to specifically register the in-built ExportToExcel button. In the ItemCreated event, I was able to identify GridCommandItems and register them as PostBackControls, but this is also registering the "Add New Record" button, causing a PostBack to occur if they click the "Add New Record" button.
Is there any way to programmatically identify JUST the "Export to Excel" Command Item?
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