Hi,
Is it possible to upload directly to the TargetFolder when the file is dropped on a dropzone?
I mean, without hitting a submit button first?
Thanks,
Marc
When using RadGrid, if setting UseStaticHeaders="True", in rendered HTML, the table header will be rendered into a separate table, and we will get the following complaints from Siteimprove Accessibility Checker:
Is there a solution to this issue?
Hello,
I made an update to the newest Telerik.Web.UI Version 2023.3.1010.45 and now I cannot collapse my RadGrid-Items anymore after expanding. Instead I can see a statusbar which is loading infinite long on the left side when the ViewState is enabled in the Sitefinity Backend. When I disable the ViewState I have the same problem, just without statusbar. There is a screenshot of the grid and my HTML-Code in the attachment. Could anybody help me?
Regards
Hi,
I would like to change the height and width of the button in the alert windows.
See the attached image, the button is too small.
Regards,
Omar
I am not able to set opacity for the background of HTML Chart.
I tried to setup in page
<PlotArea>
<Appearance>
<FillStyle BackgroundColor="#32FFFFFF" />
</Appearance>
or in code
PlotArea.Appearance.FillStyle.BackgroundColor = Color.FromArgb(50, 255, 255, 255);
But the alpha component is always ignored and I see only white background. Is it possible to define some other way?
Thank you,
Petr
Hello,
How do I check if row is selected from the snippet below?
function BatchEditOpening(sender, args) {
var row = args.get_row();
var cell = args.get_cell();
var tableView = args.get_tableView();
var column = args.get_column();
var columnUniqueName = args.get_columnUniqueName();
var isCanceled = args.get_cancel();
}I tried
row.get_selected() but it throws an exception. Please advise.
I'm using AJAX RadImageEditor in an aspx page:
<telerik:RadImageEditor ID="RadImageEditorFront" CssClass="ImageCtrl" runat="server" Skin="Telerik" Width="545px" Height="300px" RenderMode ="Lightweight" StatusBarMode="Hidden" style="top: 0px; left: 0px">
I need to change the percentage that the AJAX RadImageEditor zooms in or out on the loaded image when I call the client side methods zoomIn() or zoomOut().
When I use the client side methods zoomIn() or zoomOut(), the image is zoomed in at 50%.
var radImageEditor = $telerik.findControl(document.documentElement, $(this).attr("id"));
radImageEditor.zoomIn(); or radImageEditor.zoomOut();
(note: jQuery code above)
I have tried zoomImage(zoomLevel, shouldUpdateUI), but that did not appear to be the solution (the image became a small dot on the screen).
How can I change the zoom in and zoom out percentage (scale) to 10% for the AJAX RadImageEditor - or asked another way - how can I get the image to scale 10% (instead of 50%) each time I call zoomIn() or zoomOut (or another zooming method)?
Hello,
I have a grid with
EditMode='Batch'
<BatchEditingSettings EditType="Cell" OpenEditingEvent="DblClick"/>When I double-click on the cell it (the cell) goes into edit mode which is expected behavior, however I need to achieve the same result by pressing another button located on the same page as grid.
Following code puts entire row into edit mode, but I wonder is there a method to invoke for editing single cell only.
masterTable.editItem(masterTable.get_selectedItems()[0].get_element());
I have a Weight column in my RadGrid, which I'm using a CustomValidationFunction, which is working fine. It disallows invalid values.
But I want blank, 0 (or below) to be set automatically to the minimum value allowed, rather than making the user put it in manually. How can I accomplish this?
Here is the column I'm validating:
<telerik:GridTemplateColumn UniqueName="Weight" HeaderText="Weight" DataField="Weight" AllowFiltering="false">
<ItemTemplate><%# Eval("Weight") %></ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="WeightAmt" runat="server" />
<asp:CustomValidator runat="server" ID="WeightValidator" EnableClientScript="true" ControlToValidate="WeightAmt"
ClientValidationFunction="WeightValidator" />
</EditItemTemplate>
</telerik:GridTemplateColumn>
And here is the validation function as it currently stands:
function WeightValidator(sender, args) {
var thisWeight = parseInt(args.Value);
if (thisWeight > maxWeight) {
sender.textContent = "Weight may not be larger than " + maxWeight;
args.IsValid = false;
return;
}
if (thisWeight < 1) {
thisWeight = minWeight;
arguments[0].parentElement.parentElement.getElementsByTagName("input")[0].textContent = minWeight.toString();
}
if (thisWeight < minWeight) {
sender.textContent = "Weight may not be smaller than " + minWeight;
args.IsValid = false;
return;
}
args.IsValid = true;
}
Debug indicates the `arguments` statement sets the value, but this isn't actually tied to anything on the page, so it gets lost. The only place I see the cell value is in a hidden `div` (`style="display: none")` and I don't see any way of changing that.
In searching for a solution, I see it is recommended to edit the `innerHTML`, but that doesn't even contain the value I'm wanting to edit.
Is there a good way for validation to correct data errors that it can instead of just calling it invalid?
Hi
I have an application that had a telerik Rad Grid, with filtering enabled.
The application can be opened via another application, passing filters to the first 2 columns like below. However when passing the filters like this the rows are not reflecting what is in the filter. If I was to manually enter the value in the filter it will work.
I have this in my code for ItemDatabound
protected void rg_CallDetails_ItemDataBound(object sender, GridItemEventArgs e)
{
if (!Page.IsPostBack)
{
if (!string.IsNullOrEmpty(department))
{
rg_CallDetails.MasterTableView.FilterExpression = "([Department] " + "LIKE " + "\'%" + department + "%\' AND [CallNumber] " + "LIKE " + "\'" + callTypePre + "%\' ) ";
GridColumn column = rg_CallDetails.MasterTableView.GetColumnSafe("Department");
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue = department;
//rg_CallDetails.MasterTableView.FilterExpression = "([CallNumber] " + "LIKE " + "\'" + callTypePre + "%\') ";
GridColumn columnCallType = rg_CallDetails.MasterTableView.GetColumnSafe("CallNumber");
columnCallType.CurrentFilterFunction = GridKnownFunction.Contains;
columnCallType.CurrentFilterValue = callTypePre;
rg_CallDetails.MasterTableView.Rebind();
}
}
}
But the application errors with stackoverflow exception error on the rebind.
I have tried rg_CallDetails.Rebind()
But also gives the same error.
Any advise please?
Thanks