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

Hello,

I'm working with a RadGrid that has AllowMultiRowSelection set to "true":

<telerik:RadGrid ID="sampleRgId" runat="server" AllowPaging="True" AllowCustomPaging="True" SkinID="Default" 
PageSize="20" AllowAutomaticDeletes="false" AllowAutomaticUpdates="false" AllowMultiRowSelection="true" OnDetailTableDataBind="sampleRgDetailTableDataBind"  RetainExpandStateOnRebind="True" HierarchyLoadMode="ServerOnDemand" EnableViewState="true">
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowSelected="sampleRgRowSelected"
        OnRowDeselected="sampleRgRowDeselected"/>
    </ClientSettings>
    <MasterTableView Name="sample" 
    runat="server" Width="100%" 
    HierarchyLoadMode="ServerOnDemand" ShowHeader="True" 
    ShowFooter="True" AllowPaging="True" 
    AllowCustomPaging="True" PageSize="20" 
    AllowFilteringByColumn="True" DataMember="sampleRgTable"
    EnableHierarchyExpandAll="True" EnableGroupsExpandAll="True" 
    RetainExpandStateOnRebind="True" DataKeyNames="dataKeyOne, dataKeyTwo">
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="uniqueNameOne" Display="True" HeaderStyle-Width="35px" 
            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
            <telerik:GridBoundColumn HeaderText="Header Text" DataField="dataFieldOne" UniqueName="UniqueNameTwo" 
            SortExpression="UniqueNameTwo" HeaderStyle-Width="50%" FilterControlWidth="70%" />
...


The "sampleRgRowSelected" function looks like this:

asyncfunctionsampleRgRowSelected(sender, args){ let masterTable = $find("<%= sampleRgId.ClientID %>").get_masterTableView();
let itemIndex = args.get_itemIndexHierarchical(); masterTable.fireCommand("SelectRow", itemIndex); }


The "SelectRow" function in the code-behind looks like this:

PrivateSub SelectParentGroup(e As GridCommandEventArgs)
Dim itemIndex as Integer = e.CommandArgument Dim item As GridDataItem = e.Item.OwnerTableView.Items(itemIndex) processData(item) item.Selected = trueEndSub

I'm having two problems with the above when I click the "multi row selection" / "select all" checkbox in the RadGrid:

1- Selected rows aren't staying selected. When I click "Select All," every row is selected at first. After a minute, though, only the last row shows as selected. I'm guessing that is because of the ItemCommand taking some time to fire for each row. Then the final state is only having the last row selected.

2- When I have > 6 rows, not every row is selected. When I click "Select All," the sampleRgRowSelected() JavaScript function runs for every row in the RadGrid, starting with the last row. However, the ItemCommand is not fired for every row in the RadGrid. Only the first 6 rows as well as the last one have had "SelectRow" called on them.

Is there a way to know when "select all" has been selected in a RadGrid? If I knew that, I could just manually call processData and select each item. That would work better because I could also select paginated items when "select all" has been clicked.

Thanks for your time.

Attila Antal
Telerik team
 answered on 15 Apr 2024
1 answer
17 views

I have a RadNumericTextbox where the visible field is set to false. Depending on another variables value, the  RadNumericTextbox visible may change to true. This is not working. The field is in a panel.

I stepped through the code and the visible property will not change.

I even directly changed the value to true and the value remained false in the watch list.

 

Vasko
Telerik team
 answered on 11 Apr 2024
0 answers
22 views
Hello,

When I tried to filter my other columns it seems working, but for the payment type column, im getting error: At least one object must implement IComparable

Client model:
public Guid Id { get; set; }

[Display(Name = "Client Code")]
public string Ref { get; set; }

[Display(Name = "Company Name")]
public string CompanyName { get; set; }

[Display(Name = "Payment Options")]
public List<PaymentTypeViewModel> PaymentTypes { get; set; }


payment type model:
using System;

namespace Act2.Certificate.Api.Models.Client
{
    public class PaymentTypeViewModel
    {
        public Guid Id { get; set; }

        public string Name { get; set; }

        public bool Selected { get; set; }
    }
}


Controller file:
    public async Task<IActionResult> GetClientList([DataSourceRequest] DataSourceRequest request
       )
    {
        try
        {
            var list = await _mediator.Send(new ClientsQuery());
            
            DataSourceResult result = list.ToDataSourceResult(request);
            return new JsonResult(result);
        }
        catch (Exception ex)
        {
            return BadRequest(new { message = ex.Message });
        }
    }
}

Do take note, that the payment type has multiple value per row, see below image:
Francis
Top achievements
Rank 1
 asked on 11 Apr 2024
2 answers
301 views

Im having an issue with a application im working on within VS 2019 asp.net

When I build my application I get the error below:

NuGet Package restore failed for project Planning_BO: Unable to find version '2022.1.119' of package 'Telerik.UI.for.AspNet.Ajax.Net35'.
  https://nuget.telerik.com/v3/index.json: Package 'Telerik.UI.for.AspNet.Ajax.Net35.2022.1.119' is not found on source 'https://nuget.telerik.com/v3/index.json'.

 

Im not sure how to resolve this. I have tried https://api.nuget.org/v3/index.json still the same issue.

Anita
Top achievements
Rank 1
Iron
 answered on 10 Apr 2024
1 answer
47 views

Dear Team,

We are currently using Telerik version 2013.1.0.403 in our application. One of our client has highlighted a Unrestircted Fie Upload issue concerning the RadAsyncUpload function.

The impact of the concern is that the RadAsyncUpload's AsyncUploadHandler was configured with a static key for encrypting form data in file upload requests. This key, PrivateKeyForEncryptionOfRadAsyncUploadConfiguration, was not changed from its default value. As a result, an attacker could exploit this by crafting a file upload request to /Telerik.Web.Ui.WebResource.axd?type=rau with a custom encrypted rauPostData POST parameter.

This could allow the attacker to upload malicious files and potentially gain unauthorized access, such as a web shell.

How do we configure the PrivateKeyForEncryptionOfRadAsyncUploadConfiguration, and what is the procedure for doing so?
Thank you in advance for your cooperation.

Rumen
Telerik team
 answered on 08 Apr 2024
1 answer
22 views

We are getting below error message while updating latest telerik dll.

Severity Code Description Project File Line Suppression State
Error The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 3.5.0.0 and an indirect reference (through 'Telerik.Web.UI.RadWindowManager') to version 4.0.0.0. Change the direct reference to use version 4.0.0.0 (or higher) of System.Web.Extensions. C:\xyz.aspx

Rumen
Telerik team
 answered on 05 Apr 2024
1 answer
52 views
a
Rumen
Telerik team
 answered on 05 Apr 2024
1 answer
22 views

Hello,

 

How do I set the height of the actual input box?  I have tried the following without success.

 

  div.CustomCssClass .rcbInputCell INPUT.rcbInput
  {    
      height: 25px;
      width: 250px;
  }
  div.CustomCssClass {
      height: 35px;
  }

 

Thanks

Rumen
Telerik team
 answered on 03 Apr 2024
1 answer
34 views

 

  • In our application we are using the Telerik RadEditor to save the information in the database. And use the same information in the SSRS reports.
  • We are facing the issue while using “Tab” key in the Telerik RadEditor.
  • In the MS-SQL database the tabs are being saved in the following HTML format,       

 <span style="white-space: pre;">     </span>

Screen Shot 1: Below screen shot shows the Telerik RadEditor where, 5 Tabs are being entered after the Amount text. 

  • The Html text saved in database field is as shown below,

     

    <p>Amount<span style="white-space:pre;">     </span>54123</p>  <p>Test Amount<span style="white-space:pre;">    </span>87596</p>

     

  • We are unable to see any tabs (spaces) in the SSRS report as shown below,

    Screen Shot 2:  Missing Tabs in SSRS report as shown below, 

    Screen Shot 3: SSRS report text field accepting HTML.


  • The report field is HTML enabled. And it Interprets Html tags as Styles.

 

Can you please help us to find the solution for the above issue ?

 

Rumen
Telerik team
 answered on 01 Apr 2024
1 answer
19 views

With file explorer, I have no issues with creating a new folder with a string that contains a "&". The folder is created as expected.

But when I rename an existing folder to a string that contains a "&", the system will replace the "&" and "&amp;". This behaviour is shown in the fileexplorer demo :

https://demos.telerik.com/aspnet-ajax/fileexplorer/examples/overview/defaultcs.aspx

Rumen
Telerik team
 updated answer on 29 Mar 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?