Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Hi sir,

In master page I use RadToolBar 
RadToolBarButton i use item template to display radtextbox we use the event onkeyup in that event i call child page radbutton  the whole  page cannot refresh only grid refresh 
but i use another RadToolBarButton  in that we use the event "OnClientButtonClicking" in that event i call child page radbutton the the whole  page refresh
i use update control also. both radbutton in child page.

please reply ASPA
M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Sep 2020
1 answer
64 views

Hi all - Is there a way to reset the my configuration wizard? It renders as a completely unreadable modal of a static size (see attached). It renders this way regardless of the control used. 

Vessy
Telerik team
 answered on 09 Sep 2020
3 answers
193 views

If an object such as a button has an existing cssclass defined, will RadFormDecorator override the definition? Is there a way to force it to override any existing definition? Also, are LinkButtons covered?

Vessy
Telerik team
 answered on 08 Sep 2020
6 answers
312 views
I'm developing sharepoint web parts using Telerik controls as a base. I have a web part that drops a Telerik RadGrid onto a page with data in it, and automatically sets all rows to be in edit mode server side before the web part is rendered. There is a button on the web part that the user clicks to save their data.

When the data comes back, server-side, I need to determine if the user has actually made any changes, and if they have, which rows they have changed. My current method is to get all rows and compare their values to their "SavedOldValues." Is there a simpler, or more important, a more performant way to do this?
Vessy
Telerik team
 answered on 08 Sep 2020
1 answer
129 views

Hi,

 

I am facing an issue with RadAjaxManager when I do 2 back-to-back Ajax calls. Attached is the image of what is shown in place of the update panel.

 

Following is how my project is setup.

1. Master Page has RadAjaxManager and LoadingPanel. Let's call this page 1

2. Page 2 uses Page 1 as it's MasterPage. Page 2 also has Dynamic Viewer loader which loads multiple .ascx extension pages.

3. Page 3 and Page 4 are those .ascx pages with the controls we need to apply RadAjaxManager on.

 

Now I am not able to access RadAjaxManager of Page1 from page 3 and 4. So I add the individual RadAjaxManagers to page 3 and 4.

They work fine for the first Ajax call.

If I do another Ajax call without a postback in between, it gives me a blank screen with the message as in the image in place of the UpdateControl.

 

Can someone please guide me how to fix the issue?

 

Thanks in advanced,

Swanand Nalawade

Vessy
Telerik team
 answered on 08 Sep 2020
3 answers
751 views

Hi

We have Batch editable grid with GridBoundColumns and GridTemplateColumns because of need checkbox / combobox. Some columns are editable and some read only by default or set read only by user rights to do changes (on page loading events set column to readonly). All possible changeable columns are set to ForceExtractValue="true" that those are available on ObjectDataSource updating event parameters. But when GridTemplateColumn is changed to readonly, value is not there anymore. What we do wrong?

 

Here is aspx file columns both normal (and always readonly column) and template column (changed code behind to read only):

 

01.<telerik:GridBoundColumn DataField="PrintHeader" HeaderText="Print Header" SortExpression="PrintHeader" UniqueName="PrintHeader" FilterControlAltText="Filter PrintHeader column" ReadOnly="True" HeaderStyle-Width="200px" ItemStyle-Width="200px" ForceExtractValue="Always"></telerik:GridBoundColumn>
02. 
03.<telerik:GridTemplateColumn UniqueName="ApprovalInspectionPoint" DataField="ApprovalInspectionPoint" HeaderText="Insp. point" FilterControlAltText="Filter ApprovalInspectionPoint column" SortExpression="ApprovalInspectionPoint" ColumnGroupName="Record" ForceExtractValue="Always">
04.    <HeaderStyle Width="50px"></HeaderStyle>
05.    <ItemStyle Width="40px"></ItemStyle>
06.    <ItemTemplate>
07.        <telerik:RadLabel ID="lblApprovalInspectionPoint" runat="server" Text='<%# Eval("ApprovalInspectionPoint") %>' Width="40px"></telerik:RadLabel>
08.    </ItemTemplate>
09.    <EditItemTemplate>
10.        <telerik:RadComboBox ID="cmbApprovalInspectionPoint" runat="server" DataSourceID="odsInspectionPoint" DataTextField="COD" DataValueField="COD" Width="40px"></telerik:RadComboBox>
11.    </EditItemTemplate>
12.</telerik:GridTemplateColumn>

 

Here are couple different users run situation for same row from ObjectDataSource OnUpdating event.

Event code from where debug watch compare lists:

1.protected void odsITP_Updating(object sender, ObjectDataSourceMethodEventArgs e)
2.{
3.    ITP rowToUpdate = e.InputParameters[0] as ITP;
4.    ITP rowToCompare = ....  //Data from DB
5....

 

Result from debug watch (some formatting to show properly) with user where all are enabled:

1.rowToUpdate.ID      43579       int?
2.rowToCompare.ID     43579       int?
3.rowToUpdate.PrintHeader     "Production Welding Monitoring"     string
4.rowToCompare.PrintHeader        "Production Welding Monitoring"     string
5.rowToUpdate.ApprovalInspectionPoint     "H"     string
6.rowToCompare.ApprovalInspectionPoint    "H"     string
7.(grITPS.Columns.FindByUniqueName("PrintHeader") as GridBoundColumn).ReadOnly        true        bool
8.(grITPS.Columns.FindByUniqueName("ApprovalInspectionPoint") as GridTemplateColumn).ReadOnly     false       bool

 

 

And result with user where that approvalcheckpoint column is read only (compare rows 5 and 8 to above):

1.rowToUpdate.ID      43579       int?
2.rowToCompare.ID     43579       int?
3.rowToUpdate.PrintHeader     "Production Welding Monitoring"     string
4.rowToCompare.PrintHeader        "Production Welding Monitoring"     string
5.rowToUpdate.ApprovalInspectionPoint     null        string
6.rowToCompare.ApprovalInspectionPoint        "H"     string
7.(grITPS.Columns.FindByUniqueName("PrintHeader") as GridBoundColumn).ReadOnly        true        bool
8.(grITPS.Columns.FindByUniqueName("ApprovalInspectionPoint") as GridTemplateColumn).ReadOnly     true        bool

 

Regards

Harri

Attila Antal
Telerik team
 answered on 08 Sep 2020
2 answers
175 views

Hi

I have a inherited class of RadTreeView with TreeNodeExpandMode set on ServerSideCallBack.

I will save the RadTreeView's expanded nodes using RadPersistenceManager. 

01.<telerik:RadPersistenceManager ID="RadPersistenceManager" runat="server">
02.</telerik:RadPersistenceManager>
03. 
04.<mwc:RadTreeView ID="rtvStruttura" runat="server" BorderColor="Gray" Skin="WebBlue"
05.                OnClientNodeExpanded="metTreeClientNodeExpanded" OnClientNodeCollapsed="metTreeClientNodeExpanded" OnNodeExpand="metPopulateNodeOnDemandWrapper"
06.                OnClientContextMenuShowing="rtvContextMenu_OnClientContextMenuShowing" OnClientContextMenuItemClicked="rtvContextMenu_OnClientContextMenuItemClicking">
07.                <ContextMenus>
08.                    <mwc:RadTreeViewContextMenu ID="rtvContextMenu" runat="server" ExpandAnimation-Type="None" CollapseAnimation-Type="None">
09.                        <Items>
10.                            <mwc:RadMenuItem Value="1" LabelResources="VaiAllaScheda_si" />
11.                            <mwc:RadMenuItem IsSeparator="true" />
12.                            <mwc:RadMenuItem Value="2" LabelResources="TitoloNuovaRichiestaIntervento_si" />
13.                        </Items>
14.                    </mwc:RadTreeViewContextMenu>
15.                </ContextMenus>
16.            </mwc:RadTreeView>

 

I set ControlID on RadPersistenceManager at server side

RadPersistenceManager.StorageProvider = new CookieStorageProvider(GetPersistenceManagerKey());
PersistenceSetting vPersistenceTree = new PersistenceSetting();
vPersistenceTree.ControlInstance = (System.Web.UI.Control)((Telerik.Web.UI.RadTreeView)FindControl("rtvStruttura"));
 vPersistenceTree.ControlType = typeof(Telerik.Web.UI.RadTreeView);
RadPersistenceManager.PersistenceSettings.Add(vPersistenceTree);

CookieStorageProvider is the class of this example: https://demos.telerik.com/aspnet-ajax/persistence-framework/examples/custom-storage-provider/defaultcs.aspx

I use two button to save/load state

protected void btnSaveState_Click(object sender, EventArgs e)
   {
           RadPersistenceManager.SaveState();
   }
 
   protected void btnLoadState_Click(object sender, EventArgs e)
   {
           string key = GetPersistenceManagerKey();
           if (Request.Cookies[key] != null)
           {
               RadPersistenceManager.LoadState();
           }
   }

 

When I save a state I receive only this code

<?xml version="1.0"?>
<ArrayOfRadControlState xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <RadControlState>
    <ControlSettings />
    <UniqueId>Telerik.Web.UI_PersistanceManager_CustomSettings</UniqueId>
  </RadControlState>
</ArrayOfRadControlState>

 

Where am I doing wrong? Why am I not getting the status of the RadTreeView?

I use Telerik Ajax Q2 2012.

Thanks

Vessy
Telerik team
 answered on 08 Sep 2020
10 answers
419 views

I am using 2015.3.1111.40.

I just find out that my server is attacked with CVE-2019-18935.  There are many applications that are running the v 2015.  I used both the old upload and the async upload, the editors etc.

 

I read this:

https://www.telerik.com/forums/security-vulnerabilities-cve-2017-11357-cve-2017-11317-cve-2014-2217-safe-if-we-don't-use-radasyncupload-control

https://www.telerik.com/support/kb/aspnet-ajax/upload-(async)/details/insecure-direct-object-reference

 

https://redcanary.com/blog/blue-mockingbird-cryptominer/

https://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/security?&_ga=2.2268086.741100053.1589553385-928490997.1573185609#recommended-settings

Is this CVE-2019-18935 the same vulnerability ?I  want to fix it and will like to know

1. I need to download the patch from my account. Just replace the Telerik.web.UI.dll ?

2. Do I need to add those keys as mentioned in the last link?

<add key="Telerik.AsyncUpload.ConfigurationEncryptionKey" value="YOUR-FIRST-UNIQUE-STRONG-RANDOM-VALUE-UNIQUE-TO-YOUR-APP&" />

<add key="Telerik.Upload.ConfigurationHashKey" value="YOUR-SECOND-UNIQUE-STRONG-RANDOM-VALUE-UNIQUE-TO-YOUR-APP&" />

<add key="Telerik.Upload.AllowedCustomMetaDataTypes" value="Telerik.Web.UI.AsyncUploadConfiguration" />

3. As there are quite many web sites.  Is there a way to globally apply the keys? eg. in the IIS root folder?  Actually the server can be only accessed by me.

Thanks.

Alfred

Rumen
Telerik team
 answered on 08 Sep 2020
1 answer
208 views

Hi,

I have setup an application like the example shown to replace the edit form of the appointment.

In AdvancedForm user can enter data and save by clicking a button.

While that doesn't clos the AdvancedForm I set the OnClientClicked property of that button to call a js.

The AdvancedForm will be closed and for a short time there is a busy sign. But the scheduler doesn't update the display (new appointments doesn't appear).

When refreshing the scheduler (F5) the appointment will be displayed.

Before I had set the OnClientClicked methode and closing the AdvancedForm manually scheduler update was ok.

My script in AdvancedForm.ASPX is like that:

function btnSpeichern_Clicked(sender,args)
    {
        window.close();
}

The script from the scheduler is

            function refreshScheduler() {
                var ajaxManager = $find("RadAjaxManager1");
                ajaxManager.ajaxRequest('RebindScheduler');
            }

These function will be executed when closing the AdvancedForm. But the display is not correct (new appointment is missing or updated appointment shown as before).

Any idea?

Regards

Hardy

Peter Milchev
Telerik team
 answered on 08 Sep 2020
3 answers
255 views

Hello,

I am using a Telerik radGrid with batch editing functionality. I have a one grid inside of this grid have a one RadComboBox with multiselect option.

I want to save all multiple selected values of combobox on BatchEditCommand event.

When i try to get selected items but every time i got a 0 count in CheckedItems properties of RadComboBox.

Please find attached demo project.

It would be great if you can help me to solved this issue.

Note: I am using a Telerik.Web.Ui.dll version  2013.2.702.40

Please find attached screenshots which is show you complete scenario. 

Thanks,

Nilesh Patel 

 

Peter Milchev
Telerik team
 answered on 07 Sep 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?