Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
25 views

Hello

I've created a simple project with Telerik editor in page. I've added a dropdown that on SelectedIndexChanged would update a label's text on page through ajax.

While EnableHandlerEncryption is enabled in web.config, Editor's font dropdowns will get unresponsive after ajax update.

I've created a simple project to demonstrate the issue. since the compressed project size is 59MBs I'll post each part in separate replies.

am I missing something that causes this issue to happen?

maral
Top achievements
Rank 1
Iron
 answered on 21 Jun 2021
10 answers
86 views
Hi,

I have a grid and it works OK.
Then I had the idea that it would look better if I remove the headers when no data is displayed.
The problem - when I set 

ShowHeadersWhenNoRecords

 

="False"

 

it does allways show the NoRecordsTemplate (even if data is present) - and no data is displayed.
Data is bound to a linq datasource.

When I remove my GridClientDeleteColumn it works like expected.
But this column seems to break the thing.

To reproduce - buil a simple grid, set ShowHeadersWhenNoRecords="False".
Should work as expected.
Add a GridClientDeleteColumn -- it displays always "No records to display"


Regards

Manfred
Franz
Top achievements
Rank 1
Iron
 answered on 20 Jun 2021
0 answers
7 views

HI, 
I'm using rad grid with grouping, i've grouped two columns.

Now i want to give two different colors to those two grouped (App Type, Status) columns.

I need Black color font for Status and Blue color font for App Type.

How to achieve this, please help.

Thanks

Chakradhar
Top achievements
Rank 1
Iron
 asked on 19 Jun 2021
2 answers
6 views

I'm looking to see if there is a way to copy the current image that is in the RadImageEditor into clipboard, and also be able to replace it using Paste.

 

Jason
Top achievements
Rank 1
Iron
 updated answer on 18 Jun 2021
1 answer
4 views
I am assuming this area is part of the vertical scrolling if needed (see grid1.png).  If I resize or re-render the grid after the first load it goes away.  How can I not have this part not showing when the grid first loads (see grid2.png)?  Can I turn off just the vertical scrolling?
Jerry
Top achievements
Rank 1
Iron
 answered on 18 Jun 2021
1 answer
6 views

I need to show the handle / title bar under certain conditions, and have not showing under other conditions.  Looking for a way to set the DockHandle to none using javascript.

Is there a way to do this?   I tried dock.set_handle(null), and that didn't work.

Thanks,

Dave

 

Vessy
Telerik team
 answered on 18 Jun 2021
1 answer
10 views

Hi there, 

 

I have a radtoggleButton in a grid with two states and I´m creating the new rows using a DataTable source of the Grid.

My question is how I can use the datable to set the second state of the toggle button.

This is how the grid looks like: 

And this is the column template for the grid. 

I´ve tried to set the value as newRow("Visibility") = "Hide"  or adding the button directly to this cell of the row. 

Let me know if you have some ideas, please.

Thanks, 

Alvaro.

 

 

Doncho
Telerik team
 answered on 18 Jun 2021
0 answers
7 views

<p>Hi,</p><p>After introducing the Telerik Library and adding Telerik grid to the existing .Net Web application, it causing to load the web page slow compared to the old application( without telerik library and telerik grid). Web page is taking almost 30s to render and the DB returning the data within 3s.&nbsp;</p><p>Please provide us the performance improvement steps to introduce telerik to old web application.</p><p>Thanks.</p>

Below are the few additional details on the Light House Report:

Report when RenderMode="Light Weight"

Performance score.

Avoid an excessive DOM size 5,611 elements

 

Report when RenderMode="Classic"

Avoid an excessive DOM size 5,608 elements

 

Below is the screenshot of the execution time taken with telerik grid in the page.

 

Pribadi
Top achievements
Rank 1
Iron
 asked on 17 Jun 2021
0 answers
5 views

Hi,

After introducing the Telerik Library and adding Telerik grid to the existing .Net Web application, it causing to load the web page slow compared to the old application( without telerik library and telerik grid). Web page is taking almost 30s to render and the DB returning the data within 3s. 

Please provide us the performance improvement steps to introduce telerik to old web application.

Thanks.

Pribadi
Top achievements
Rank 1
Iron
 asked on 17 Jun 2021
0 answers
7 views

Hello,

For my RadGrid, I need 2 different ways to insert.

So, I declare I want to use User controls,

<EditFormSettings EditFormType="WebUserControl"></EditFormSettings>

and I change programmatically the form to use.

protected void rgrid_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName.Equals("AddF"))
        {
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "../UserControl/UC_PDGInsertionF.ascx";
            e.Item.OwnerTableView.InsertItem();

        }
        else if (e.CommandName.Equals("AddN"))
        {
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "../UserControl/UC_PDGInsertionN.ascx";
            e.Item.OwnerTableView.InsertItem();
        }
    }

My Command buttons that show the forms work perfectly.

However, my Command buttons don't work on my User controls (both of them).


<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_PDGInsertionN.ascx.cs" Inherits="UC_PDGInsertionN" %>
<table>
<%-- some code --%>
    <%-- Buttons --%>
    <tr> 
        <td align="right" colspan="2">
            <asp:Button ID="btnAdd" Text="Cancel" runat="server" CausesValidation="False"
                        CommandName="Add" Visible="True"></asp:Button>
            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                        CommandName="Cancel" Visible="True"></asp:Button>
        </td>
    </tr>
</table>

Whether I click on one or the other, I get this exception:

La valeur ne peut pas être null.
Nom du paramètre : virtualPath

Description : Une exception non gérée s'est produite au moment de l'exécution de la requête Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code.

Détails de l'exception: System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : virtualPath

[ArgumentNullException: La valeur ne peut pas être null.

Nom du paramètre : virtualPath]

   System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +511

   Telerik.Web.UI.GridEditFormItem.InitializeUserControlForm(GridColumn[] columns, ControlCollection controls, GridEditFormSettings formSettings) +92

   Telerik.Web.UI.GridEditFormItem.InitializeEditForm(GridColumn[] columns) +6349

   Telerik.Web.UI.GridEditFormInsertItem.InitializeEditForm(GridColumn[] columns) +37

   Telerik.Web.UI.GridEditFormItem.Initialize(GridColumn[] columns) +369

   Telerik.Web.UI.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +266

   Telerik.Web.UI.GridTableView.CreateInsertItem(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ControlCollection rows) +656

   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +3191

   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +1308

   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +97

   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +207

   Telerik.Web.UI.GridTableView.PerformSelect() +23

   Telerik.Web.UI.GridTableView.DataBind() +360

   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +3113

   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +150

   System.Web.UI.Control.LoadRecursive() +154

   System.Web.UI.Control.LoadRecursive() +251

   System.Web.UI.Control.LoadRecursive() +251

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082

I had to disable AJAX in the RadAjaxManager to be able to see the exception. 

Do you any idea of the source of the problem?

Gregory
Top achievements
Rank 1
 asked on 16 Jun 2021