Hi,
How to implement multi select dropdown with checkbox filter in rad grid column with server side binding same as shown in below demo with client side binding.
http://demos.telerik.com/aspnet-ajax/examples/functionality/filtering/basic-filtering/defaultcs.aspx
Column [Contact Title] under FILTERING WITH CLIENT-SIDE BINDING
Thank you.
Hello.
I have the Radgrid using a template edit form. How to cancel the on-going update, if the certain control doesn't have the appropriate value? I can reference the certain control in the template edit form and read it's new value (from within the "OnItemUpdated" event), but I don't know how to cancel the on-going update? On the update button I'am using CommandName="Update" Please advise.
Regards, E.
Until recently I was exporting to Excel using ExcelML format. The GridEditCommandColumn was not exported (ExportOnlyData is set to true).
I am now exporting using XLSX format. Since then, the GridEditCommandColumn is exported along with data.
I would expect the same behaviour (no edit column).
Is it a bug ?
Is there an option to hide GridEditCommandColumn when exporting to xlsx ?
<
telerik:RadButton
ID
=
"ButtonExportExcelML"
runat
=
"server"
Text
=
"Export to ExcelML"
OnClick
=
"ButtonExportExcelML_Click"
/>
<
telerik:RadButton
ID
=
"ButtonExportXLSX"
runat
=
"server"
Text
=
"Export to XLSX"
OnClick
=
"ButtonExportXLSX_Click"
/>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AutoGenerateColumns
=
"true"
ExportSettings-ExportOnlyData
=
"true"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
protected
void
RadGrid1_NeedDataSource(
object
sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
RadGrid1.DataSource =
new
List<
int
> { 1,2,3,4,5,6};
}
protected
void
ButtonExportExcelML_Click(
object
sender, EventArgs e)
{
RadGrid1.ExportSettings.FileName =
"TestExcelML"
;
RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
RadGrid1.ExportToExcel();
}
protected
void
ButtonExportXLSX_Click(
object
sender, EventArgs e)
{
RadGrid1.ExportSettings.FileName =
"TestXlsx"
;
RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Xlsx;
RadGrid1.ExportToExcel();
}
Hi,
I have to customise File Explorer to save and read files from a UNC path (eg.\\ComputerName\SharedFolder\Resource) that resides on a shared folder. I am saving the file definitions on database except the content which is being saved on the above path.
I am able to achieve file save functionality with simple c# code. Selecting the file from gridview is reading the file from above path and creating a preview successfully (making use of a generic handler here). However, I can't delete this file, as the delete icon is disabled.
I can make sure that user has got full permissions on this path.
Another issue is that, when the control is loaded for the first time and there is no content in it, all the control buttons i.e upload, delete etc.. are disabled.
Can you please suggest any solution to this issue?
Thanks.
I am using the exact example as shown here -http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/hierarchical-grid-types-and-load-modes/several-tables-at-a-level
I am using SeverOnDemand on Master and DetailTables.
Using below line in RadGrid1_DetailTableDataBind(), all the rows in the masterTable gets expanded on click of the Expand toggle button.
RadGrid1.MasterTableView.HierarchyDefaultExpanded = True
e.DetailTableView.HierarchyDefaultExpanded = True
How to make the row expand or collapse on toggle sever side?
Any help is appreciated. Thanks.
Hi,
We're using your radhtmlchart to display subscriptions data by month, and this data is dynamically. Sometimes, there is a huge white gap at beginning and ending of the chart which i can't remove (see the attachment).
For the X axis, i have set the MaxDate and MinDate values with the first and last possible dates and tried to set Step config but it don't works. The MinValue and MaxValue for Y axis works as expected.
Is there something i can try to minimalize this white gaps?
Kind regards,
Jelle
I have an odd problem on the zooming on Stock Chart, the X Axis becomes corrupt.
When I zoom it sorts itself out.
If just plot the points with a default Layout it is OK unzoomed.
I am doing this for both types:
var xAxis = chart.PlotArea.XAxis;
xAxis.Step = Convert.ToDecimal(xAxis.Items.Count * 0.10);
xAxis.BaseUnitStep = Convert.ToInt32(xAxis.Step);
xAxis.BaseUnit = DateTimeBaseUnit.Minutes;
xAxis.EnableBaseUnitStepAuto = false;
Please see attached images.
Hi,
I need to click on some link in my rad grid.
I have 2 like per row.
on each link im using the following code till i get an answer:
<
telerik:GridHyperLinkColumn
UniqueName
=
"LinkRpt"
DataTextFormatString
=
"S/N {0} "
DataTextField
=
"UsrSN"
DataNavigateUrlFields
=
"CaseID"
DataNavigateUrlFormatString
=
"~/Site/mypage.aspx?var={0}"
HeaderText
=
"Repport link"
>
</
telerik:GridHyperLinkColumn
>
As you can see im using " Request.QueryString["var"] ".
But i want the var to be in Session. Because this 'var' is a sensitive data.
I know how to put things in session. Session["field1"] = "value1";
But i can't do that with a GridHyperLinkColum because there is no OnClick event.
Its the same for the GridButtonColumn.
So i guess i have to use GridTemplateColumn with a RadButtonin it.
<
telerik:GridTemplateColumn
>
<
ItemTemplate
>
<
telerik:RadButton
ID
=
"RadButton1"
runat
=
"server"
Text
=
"See Repport."
OnClick
=
"RadButton1_Click"
>
</
telerik:RadButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
In this RadButton1_Click, what should i do to get the CaseID of the row clicked.
How do i navigate to my "~/Site/mypage.aspx" ?
if i use Javascript:
function
OnClientClicking(button, args) {
window.location = button.get_navigateUrl();
args.set_cancel(
true
);
}
with the OnClientClicking how do i set things in session ?
Any suggestion will be appreciated.
Regards,
Pierre.
I have a RadGrid up and running, and have added GridImageColumn. It works well. However, not all rows have an associated image. How would I setup a default image that would display in those instances?
<
telerik:GridImageColumn
DataType
=
"System.String"
DataImageUrlFields
=
"PartFamily"
DataImageUrlFormatString
=
"images/family-images/{0}.png"
AlternateText
=
"Family Image"
DataAlternateTextField
=
"PartFamily"
ImageAlign
=
"Middle"
ImageHeight
=
"75px"
ImageWidth
=
"75px"
HeaderText
=
"Image Column"
</telerik:GridImageColumn>