Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
12 views
I inherited a .NET website using RadAjax.Net2.dlls. Currently only supported in IE compatibility mode from my understanding.  I would like to upgrade to a version that works in current browsers.  The website is using .NET 2.0 but we are upgrading the framework to 2.8 if possible.   I appreciate any recommendations on upgrade path.  
Rumen
Telerik team
 answered on 15 Jan 2024
0 answers
13 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
0 answers
21 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
1 answer
28 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
22 views

I am using RadScheduler with TimeLineView Only, GroupBy Resource with GroupDirection set Vertical.

I set the object height to 585px, but when rendered, it only shows 360px, as you can see in the image.

What can I do to work around this situation without changing the rowHeight property?

I am using server-side binding but if I change to client-side binding, can I solve this problem modifying Client Rendering?

Attila Antal
Telerik team
 answered on 01 Nov 2023
1 answer
46 views

Hello.  I have a modal popup RadWindow being used as an edit form. This RadWindow is launched from a row in a RadGrid. Everything works great, except when the user finishes with the RadWindow and it closes, the calling RadGrid successfully does a rebind, but it doesn't visually update on the screen. The auto-refreshing the RadGrid works great for other uses such as deleting a record, or updating a record, but not when the rebind code runs upon returning from the modal RadWindow.  When the radwindow closes, it triggers the RadAjaxManager1_AjaxRequest which does the rebind operation. That runs just fine. The only thing not happening is the rendering of the screen so the user sees the updated data in the radgrid.  

Anyone have any ideas why this would be happening or way to force the re-rendering of the screen/radgrid?

This is the script on the source page:

        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function refreshGrid(arg) {
                    if (!arg) {
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                    }
                    else {
                        $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
                    }
                }
            </script>
        </telerik:RadCodeBlock>

This gets calls when the popup closes:

    Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
        If e.Argument = "Rebind" Then
            rgVehicleConfig.DataSource = Nothing
            rgVehicleConfig.Rebind()
        End If
    End Sub

This is the script on the popup aspx page:

    <script type="text/javascript">
        function CloseAndRebind(args)
        {
            GetRadWindow().BrowserWindow.refreshGrid(args);
            GetRadWindow().close();
            document.getElementById("frmSequencingAreas").submit();
        }

        function Close(args)
        {
            GetRadWindow().close();
        }

        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)

            return oWindow;
        }
    </script>

Finally, this is the code for the final import of the data that closes the RadWindow and returns to the calling page:

    Private Sub rgVehicleConfiguration_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles rgVehicleConfiguration.ItemCommand
        If e.CommandName = "Export" Then
            If ErrorsFound Then
                lblMessage.Text = "Highlighted values are invalid. Please correct and try importing file again.</br>Data cannot be imported until all errors are corrected."
            Else
                ExportData()
                ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", True)
                ShowPopup = False
            End If
        End If
    End Sub

Most of this code was lifted from Telerik's own demo and that seems to work just fine here on the Telerik demo site.

Any help would be wonderful.

Thank you.

 

Sean
Top achievements
Rank 1
 updated question on 24 Oct 2023
1 answer
53 views

Greetings,

 

I am using the RadGrid control with advanced data binding, virtualization and infinite scrolling and everything is going well. However, I need to perform some actions on the rows that are data-dependent. For this, I am using the ItemDataBound server-side event and OnRowDataBound client-side event. However, this seems to come with an implementation and maintenance overhead, since I have to basically implement the same behavior twice, in two diferent places and two different languages. Reading through the documentation and other posts, this seems to be a virtualization limitation, and the consequence of the fact that the initial dataset is bound server-side, while subsequently fetched rows are bound client-side? (like this answer would suggest: https://www.telerik.com/forums/radgrid-not-upating-columns-with-virtualization-enabled#4166877 )

I am curious if there would be a way to avoid this duplication - either by somehow manually evaluating OnRowDataBound function for the initial dataset, or perhaps by returning 0 rows in the NeedsDataSource method for initial load, and then triggering a client-side fetch after the "empty" grid is rendered? Even if this would cause an extra http request, it seems like a preferable alternative in my case.

Best regards,

Marko

Doncho
Telerik team
 answered on 29 Sep 2023
0 answers
36 views

I am creating a mobile website using radcomboboxes inside of update controls that are set to autopostback = true.  All of the controls work except on the page's initial load the UI elements are enlarged and look more like buttons.  They are still able to be selected and after the controls postback the elements still do not go back to a normal size. Only after a postback from another control do the UI elements shrink down to a normal size.  

I have tested the radcombobox with checkboxes enabled outside of the update panel and this behavior does not change.  I have a master page that contains jQuery files located in the header, and when I remove one of the js files, the problem disappears with the UI elements disappearing.  Can anyone help me figure out what is preventing the UI elements from rendering properly?

On Load:

   

After postback:

 

 

1 answer
43 views

Hi,

Long time Webforms developer here, but just starting out with Telerik Rad controls.

I can't for the life of me figure out how to get the "Insert Record" button to show up on my Grid that has a Master-Detail relationship.

I looked at the code sample and can't figure out what I am missing.

Any help you could provide would be appreciated.


<telerik:RadGrid ID="gvCurrentSalaries" runat="server" AllowPaging="True" DataSourceID="sqlCurrentSalaries" PageSize="50" Visible="False" RenderMode="Lightweight" AllowSorting="True" AllowAutomaticInserts="True" AutoGenerateColumns="False" OnInsertCommand="gvCurrentSalaries_InsertCommand">
<GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>

            <ExportSettings ExportOnlyData="True" FileName="Workforce-Salary" IgnorePaging="True">
                <Excel FileExtension="xlsx" Format="Xlsx" />
            </ExportSettings>
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>

<MasterTableView CommandItemDisplay="Top" DataSourceID="sqlCurrentSalaries" DataKeyNames="PersonID">
    <DetailTables>
        <telerik:GridTableView runat="server" DataKeyNames="PersonID" DataSourceID="sqlSalaryHistory">
            <ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField="PersonID" MasterKeyField="PersonID" />
            </ParentTableRelation>
            <RowIndicatorColumn ShowNoSortIcon="False" Visible="False">
            </RowIndicatorColumn>
            <ExpandCollapseColumn Created="True" ShowNoSortIcon="False">
            </ExpandCollapseColumn>
            <EditFormSettings>
                <EditColumn ShowNoSortIcon="False">
                </EditColumn>
            </EditFormSettings>
            <Columns>
                <telerik:GridBoundColumn DataField="Salary" FilterControlAltText="Filter FullName column" HeaderText="Current Salary" ShowNoSortIcon="False" UniqueName="Salary" DataFormatString="{0:c}">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="StartDate" FilterControlAltText="Filter FullName column" HeaderText="Start Date" ShowNoSortIcon="False" UniqueName="StartDate" DataFormatString="{0:d}">
                </telerik:GridBoundColumn>
    </Columns>
        </telerik:GridTableView>
    </DetailTables>
    
    <CommandItemSettings ShowExportToExcelButton="True" ShowExportToPdfButton="True" ShowAddNewRecordButton="False" />
<RowIndicatorColumn ShowNoSortIcon="False" Visible="False"></RowIndicatorColumn>

<ExpandCollapseColumn ShowNoSortIcon="False" Created="True"></ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="FullName" FilterControlAltText="Filter FullName column" HeaderText="Full Name" ShowNoSortIcon="False" UniqueName="FullName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="PersonType" FilterControlAltText="Filter FullName column" HeaderText="Person Type" ShowNoSortIcon="False" UniqueName="PersonType">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Salary" FilterControlAltText="Filter FullName column" HeaderText="Current Salary" ShowNoSortIcon="False" UniqueName="Salary" DataFormatString="{0:c}">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="StartDate" FilterControlAltText="Filter FullName column" HeaderText="Start Date" ShowNoSortIcon="False" UniqueName="StartDate" DataFormatString="{0:d}">
        </telerik:GridBoundColumn>
    </Columns>

<EditFormSettings>
<EditColumn ShowNoSortIcon="False"></EditColumn>
</EditFormSettings>
</MasterTableView>
            <HeaderStyle Font-Bold="True" HorizontalAlign="Left" />

<FilterMenu RenderMode="Lightweight"></FilterMenu>

<HeaderContextMenu RenderMode="Lightweight"></HeaderContextMenu>
        </telerik:RadGrid>

Scott
Top achievements
Rank 1
Iron
 answered on 21 Sep 2023
0 answers
38 views

I am able to bind pie chart data from code behind but I am not sure how to bind my Javascript object to Pie chart.

I am using ASP.NET Web Form and using AJAX to call Handler. I need to bind data after handler returns data. 

Anuj
Top achievements
Rank 1
 asked on 15 Sep 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Arnaud
Top achievements
Rank 1
Iron
Jeremy
Top achievements
Rank 2
Iron
Djordje
Top achievements
Rank 1
Iron
Iron
Omar
Top achievements
Rank 2
Iron
Iron
Iron
Siriwat
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Arnaud
Top achievements
Rank 1
Iron
Jeremy
Top achievements
Rank 2
Iron
Djordje
Top achievements
Rank 1
Iron
Iron
Omar
Top achievements
Rank 2
Iron
Iron
Iron
Siriwat
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?