Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
66 views

hi friends, 

I'm adding a radmenu to a aspx Report Viewer Form, it overlaps the control  bar ot he report, 


   <form runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadMenu ID="RadMenu1" runat="server">
            <Items>
                <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">
                    <Items>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 1">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
		<br />
        <div>
            <p>what is this shir??</p>
        <telerik:ReportViewer
            ID="reportViewer1" ServiceUrl="api/reports" ScaleMode="Specific"
			Width="100%"
			Height="50%"
			EnableAccessibility="false"
            runat="server">
            <ReportSource IdentifierType="UriReportSource" Identifier="VentasPorCliente.trdp">
            </ReportSource>
			<%-- If set to true shows the Send Mail Message toolbar button --%>
            <SendEmail Enabled = "false" />
        </telerik:ReportViewer>
          </div>
    </form>

do you have any idea how to Fix  this?

Thanks

Rapitoloco
Top achievements
Rank 1
 asked on 30 Nov 2023
2 answers
119 views

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

Vasko
Telerik team
 answered on 30 Nov 2023
0 answers
110 views

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:

  • No data cells assigned to table header
  • Table cell missing context

Is there a solution to this issue?

Sheng
Top achievements
Rank 1
Iron
Iron
 asked on 28 Nov 2023
0 answers
96 views

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

 

Uwe
Top achievements
Rank 1
 asked on 28 Nov 2023
3 answers
101 views

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

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 27 Nov 2023
1 answer
207 views

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

Vasko
Telerik team
 answered on 24 Nov 2023
1 answer
89 views

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.

 

 

Vasko
Telerik team
 answered on 24 Nov 2023
1 answer
187 views

 

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">
                    <Tools>
                        <telerik:ImageEditorToolGroup>
                            <telerik:ImageEditorTool Text="ZoomIn" CommandName="ZoomIn" /> 
                            <telerik:ImageEditorTool Text="ZoomOut" CommandName="ZoomOut" />
                            <telerik:ImageEditorTool Text="ZoomOut" CommandName="Zoom" />
                            <telerik:ImageEditorTool Text="Rotate Right" CommandName="RotateRight" /> 
                            <telerik:ImageEditorTool Text="Rotate Left" CommandName="RotateLeft" />
                            <telerik:ImageEditorTool Text="Flip Vertical" CommandName="FlipVertical" />
                        </telerik:ImageEditorToolGroup>                

                    </Tools>
                </telerik:RadImageEditor>

 

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)? 

 

Vasko
Telerik team
 answered on 24 Nov 2023
1 answer
240 views

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());
Please advise.
Vasko
Telerik team
 answered on 22 Nov 2023
1 answer
227 views

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?

Vasko
Telerik team
 answered on 16 Nov 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?