Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
513 views

I am having trouble understanding and finding a good example of sorting a RadGrid with DataTable datasource with custom paging.

It seems to only sort the 1st page.  I have looked but have not found a good example or explaination on how to do this so it sorts the whole grid not just the page you are on.

 

Attila Antal
Telerik team
 answered on 03 Aug 2021
0 answers
193 views

edit: please close this task since I have created another one.

hi. I am using radEditor.get_html() function to load html into editor. this function has one argument(isFiltered) and here is what the documentation states:

isFilteredboolif set to true , the returned HTML content will be modified by the RadEditor client filters

what I do not understand what does the "client filters" mean.

I noticed when I set the argument to true the  &#8220 will be replaced with “

so what exactly would be the diference with this option set to true vs false?

“ is invalid character for xHTML and some of my files are xHTML files.

I need to change this argument to false (currently is true), but I need to understand the consequences of that change.

thank you

edit: please close this task since I have created another one.

 

 

hepek
Top achievements
Rank 1
Iron
 updated question on 02 Aug 2021
1 answer
1.1K+ views

Does Telerik have a screen capture control, component, or utility of some kind?

For our company-wide support ticket application we built, I want to create the ability for the user to click a button, draw (or select) a window to capture the screen contents, and automatically add the image to the RadUpload tools temp folder to be uploaded.

Before I design it myself, I figured I'd check to see if Telerik has a solution I can implement.

 

Vessy
Telerik team
 answered on 02 Aug 2021
1 answer
404 views

I am having an issue with RadDatePicker when trying to set the input date format to yyyyMMdd.  The desired outcome is allow the user to enter a date in yyyyMMdd format but display the date in the culture specific short date format.  I can achieve the desired functionality like this:


<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Test Page</title>
    </head>
    <body>
        <form id="Form1" runat="server">
            <telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
            <telerik:RadDatePicker runat="server" ID="RadDatePicker1" 
                RenderMode="Lightweight" Culture="English (United States)" 
                DateInput-DisplayDateFormat="d" DateInput-DateFormat="yyyyMMdd" >
            </telerik:RadDatePicker>
        </form>
    </body>
</html>

 

The issue is when using the en-US culture.  I can select a date from the popup and the date is displayed in MM/dd/yyyy format in the textbox.  When I click in the textbox to enter the date, it is automatically changed to yyyyMMdd format and updating it in that format way works correctly.  However, if I enter a date in MM/dd/yyyy format, the date is parsed in the dd/MM/YYYY format so 7/6/2021 becomes 6/7/2021.

When using the fr-FR culture, for example, it correctly parses entered dates entered as either yyyyMMdd or dd/MM/YYYY.

We are using Telerik UI for ASP.NET AJAX 2021.2.616

Any help would be greatly appreciated.

Greg

Attila Antal
Telerik team
 answered on 30 Jul 2021
1 answer
69 views

Hi,

 

Is it possible to set the FileExplorer's Grid Pagerstyle to NextPrevNumeric instead of the default slider?

 

Marc

Vessy
Telerik team
 answered on 29 Jul 2021
1 answer
125 views

Hi
    I have web application, in that i add rad grid dynamically  (from server side code), when debug and run no error , but when i try to publish from VS2015 i am getting lots of error like "is not member of rad grid"
Screenshot - http://prntscr.com/1gi4k9o.

Code

 Dim grid As New RadGrid
        grid.ID = "ReportGrid"
        ' grid.RenderMode = RenderMode.Lightweight
        grid.AutoGenerateColumns = False
        grid.EnableViewState = False

        'grid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top
        'grid.MasterTableView.CommandItemSettings.ShowPrintButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToPdfButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToCsvButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToExcelButton = True
        'grid.MasterTableView.CommandItemSettings.ShowExportToWordButton = True
        'grid.MasterTableView.CommandItemSettings.ShowRefreshButton = False
        'grid.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = False
        'grid.EnableEmbeddedSkins = False
        'grid.RenderMode = RenderMode.Lightweight
        'grid.Skin =


        grid.AllowSorting = True
        grid.ClientSettings.Scrolling.AllowScroll = True
        grid.ClientSettings.Scrolling.UseStaticHeaders = True
        grid.ClientSettings.Scrolling.SaveScrollPosition = True


        'paging and virtualizaton

        grid.ClientSettings.Virtualization.EnableVirtualization = True
        grid.ClientSettings.Virtualization.InitiallyCachedItemsCount = 2000
        grid.ClientSettings.Virtualization.ItemsPerView = 100
        grid.PagerStyle.Mode = GridPagerMode.NextPrevNumericAndAdvanced

        grid.AllowPaging = True
        grid.PageSize = 1000

        grid.MasterTableView.TableLayout = GridTableLayout.Fixed
        grid.MasterTableView.PagerStyle.Visible = False

        'paging ...



        AddHandler grid.NeedDataSource, AddressOf ListReportGrid_NeedDataSource
        AddHandler grid.PreRender, AddressOf ListReportGrid_PreRender
        CreateListReportColumns(grid, reportId, cabinet)
        reportContentPanel.Controls.Add(grid)



Pls reply asap

 

Thanks

Doncho
Telerik team
 answered on 29 Jul 2021
1 answer
651 views

Very simple but cant find a way to do it:

I have a rad wizard and want custon text in the "Next" button in the second step....

Vessy
Telerik team
 answered on 28 Jul 2021
1 answer
368 views

Hi all,

I'm currently working with a RadGrid that as an EditForm in order to insert/update some data.  This EditForm is a popup, and inside this EditForm there is a button that open a RadWindow.

In this RadWindow there is a list of items. What I want to do, is when I click on one of those items, an id is sent from the RadWindow to the EditForm. This id is then displayed in a textbox.

I'm able to open the RadWindow from the EditForm, and then I'm also able to send the id from the RadWindow to the EditForm, but I'm not able to refresh the textbox.

I've tried to use an UpdatePanel/RadAjaxPanel on my EditForm but I've got an error message that tell me : 

Script control 'ControlName' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().

Parameter name: scriptControl

I've also tried to follow this article (that did not help) :

https://stackoverflow.com/questions/8517136/script-control-is-not-a-registered-script-control

I've attached the code of the RadGrid and EditForm

Hope someone can help :)

1 answer
612 views

I have a RadAutoCompleteBox.  Many times I fill it dynamically with a SQL Query.

But on an occasion, I need to fill it with "N/A" and Select "N/A" Automatically.

Is there a way to do this?

 

Thanks,

Rog

Attila Antal
Telerik team
 answered on 27 Jul 2021
1 answer
304 views

Hello,

I have a setup like so:

<telerik:RadAjaxManager ID="RadAjaxManager1" RequestQueueSize="5" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlProductType">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnlProductSubType" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
</telerik:RadAjaxManager>

[...omitted...]

<asp:Panel ID="pnlProductType" runat="server">
<telerik:RadLabel runat="server" AssociatedControlID="rcbProductType" ID="lblProductType" Text="Product type"/> 
       <telerik:RadComboBox RenderMode="Lightweight" Filter="Contains" Width="100%" AllowCustomText="true" ID="rcbProductType" ClientIDMode="Static" runat="server"  DataTextField="Value" DataValueField="Id" AutoPostBack="True" ></telerik:RadComboBox>
</asp:Panel>

[...omitted...]

<telerik:RadLabel runat="server" AssociatedControlID="rcbProductSubType" ID="lblProductSubType" Text="Product subtype" />
<asp:Panel ID="pnlProductSubType" runat="server">
    <telerik:RadComboBox RenderMode="Lightweight" Filter="Contains" Width="100%" AllowCustomText="true" ID="rcbProductSubType" ClientIDMode="Static" runat="server"  DataTextField="Value" DataValueField="Id"></telerik:RadComboBox>
</asp:Panel>

Basically the idea is to populate the Product Subtype combobox with items depending on the Product Type selected, asynchronously. However, this does not occur and the form is reloaded with a hard postback, seemingly ignoring the RadAjaxManager setting.

What could be the most likely reason for this?

Thank you.

PS.: please ignore any discrepancies in control IDs, they have been altered for better readability.

Doncho
Telerik team
 answered on 23 Jul 2021
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?