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

Hello,

 

We have two grids which are parent and child. So one selection of the row in the parent grid gets the corresponding rows for the child grid. 

So having the inline editing enabled using the click of double click doesn't seem to work since the autopostback will turn off the inline editing.

So the solution that we came up for this issue is to have a button in the row of each record that triggers inline editing. 

Is that possible?

 

We also have implemented a page level save or cancel buttons so is it possible to remove the Save, delete cancel changes buttons on the grid?

Attila Antal
Telerik team
 answered on 07 Feb 2020
1 answer
145 views

 Dear Community,

I am currently facing an issue where the RadGrid export fails with an Sys.WebForms.PageRequestManagerParserErrorException (Client-Side) when trying to export a filtered grid. I am using the custom DocumentProcessing described in: https://www.telerik.com/support/kb/aspnet-ajax/details/export-large-amount-of-data-to-pdf-xlsx-and-csv-using-the-telerik-document-processing-libraries

However, the data that is generated is fine. Also, it works when doing custom search through another Textfield / Button. The issue only occurs after previously filtering the grid. It seems like the source for the http request is false and the browser is not expecting a document to be returned. Instead of "document" as http request source it says "xhr". (see attachments: first one shows the error, the other the working request) When opening the request in another tab it works fine as well.

Could anyone help figure this out?


Attila Antal
Telerik team
 answered on 07 Feb 2020
4 answers
506 views
I get this error System.OutOfMemoryException when i export radgrid data to excel even if record count to 6000 only.
Please provide me some solution.

Gabriel
Top achievements
Rank 1
 answered on 06 Feb 2020
23 answers
2.0K+ views
I've been experimenting with the Excel export function to see if we can use it to support some of our client's requirements. So far it's very impressive, handling obscure character sets and bullet points and so forth very nicely indeed.
The only problem I have with it is when exporting a multi-line cell.
Currently I'm rendering the cell as a single Label control with a <br/> where the new lines are supposed to start. The export function handles this nicely insofar as it creates a new row in excel for each line, merging cells on columns not containing them.
Unfortunately this means that you cannot sort by any of the other columns since Excel complains that the merged cells are not the same size.
I've tried replacing the label with a multi-line textbox but that exports as some form of text box in Excel where you can't see the text.
Is there any way to override the multi-row behaviour for multi line cells so that it can export a grid cell into a single Excel cell with new-lines in it?
Eyup
Telerik team
 answered on 06 Feb 2020
3 answers
273 views

Not sure if this is the right place for the thread, but I cannot find a "RadComboBox" section.

Browser:

Microsoft Edge 44.18362.449.0

Telerik Control:

RadCombobox

Teleri Version:  Version=2017.3.913.45,

Issue:

When a item is selected and a postback is occured, the SelectedValue returns an empty string.

Expected behavior:

The correct SelectedValue should be return.

Thing that have been tried so far:

1: upgrade the telerik to the latest version (2020.114) ---> issue persists

2: set autopostback to "true" problem solved

3: use other browsers (chrome, FireFox, new Version 79.0.309.68 ) issue disappears

Sample code: 

1: aspx

<telerik:radcombobox
        id="ddlSupplier"
        runat="server"
        skin="Material"
        rendermode="Lightweight"
        cssclass="materializeit"
        enableloadondemand="true"
        inputcssclass="browser-default"
        width="100%"
        filter="Contains"
        highlighttemplateditems="true"
        showmoreresultsbox="false"
        onitemsrequested="ddlSupplier_ItemsRequested" autopostback="false">
    </telerik:radcombobox>

2: code behind

protected void Page_Load(object sender, EventArgs e)
    {
    }
 
    protected void saveIssue_Click(object sender, EventArgs e)
    {
 
 
    }
 
    protected void ddlSupplier_ItemsRequested(object sender, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
    {
        RadComboBoxItem li = new RadComboBoxItem("Alan Jones (Brunel Systems Pty Ltd, test site)", "123");
 
        ddlSupplier.Items.Add(li);
 
         li = new RadComboBoxItem("Jackie Chiu (Optimum Construction, Optimum Construction (Sydney)) ", "23" );
 
        ddlSupplier.Items.Add(li);
 
         li = new RadComboBoxItem("Erik Baker (Optimum Construction, Optimum Construction (Sydney))", "2323");
 
        ddlSupplier.Items.Add(li);
    }
 
    protected void b_Click(object sender, EventArgs e)
    {
        var a = ddlSupplier.SelectedValue;  // most of the time returns "" for Edge
    }
Peter Milchev
Telerik team
 answered on 05 Feb 2020
1 answer
142 views

Hi if you open Visual Studio 2019 with Telerik ASP.NET v

Go in Extensions menù > Telerik > Telerik UI for ASP.NET > Create New Telerik Project...

later choose "Telerik VB Web Form Site" and RESPONSIVE template.

This code in file "ListView.aspx" not run properly:

    Protected Sub RadListViewImages_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadListViewItemEventArgs)
        Dim item As RadListViewDataItem = TryCast(e.Item, RadListViewDataItem)
        Dim description As String = TryCast(item.DataItem, Image).Description
        If description.Length > 100 Then
            description = description.Substring(0, 97) + "..."
            TryCast(item.FindControl("LabelShortDescription"), Literal).Text = description
        End If
    End Sub

 

I think it should be replaced with this:

    Protected Sub RadListViewImages_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadListViewItemEventArgs)
        Dim item As RadListViewDataItem = TryCast(e.Item, RadListViewDataItem)
        Dim description As String = TryCast(item.DataItem, Image).Description
        If description.Length > 100 Then
            description = description.Substring(0, 97) + "..."
        End If
        TryCast(item.FindControl("LabelShortDescription"), Literal).Text = description
    End Sub

Thanks

 

Peter Milchev
Telerik team
 answered on 05 Feb 2020
1 answer
947 views

I have a radgrid with a Textbox inside a telerik:GridTemplateColumn

 

<telerik:GridTemplateColumn  HeaderText="<%$ Resources:Language, lbl_rg_nota %>" UniqueName="Nota" AllowFiltering="false" ReadOnly="true">  
        <ItemTemplate>
               <asp:Textbox ID="txtNota" runat="server" CssClass="form-control form-control-sm" ></asp:Textbox> 
        </ItemTemplate> 
</telerik:GridTemplateColumn>

 

I want to get access to the values the user writes in the textboxes after they click the save button, this is the code behind the button

 

protected void btnLevantaPeticion_OnClick(object sender, EventArgs e)
        {
            try
            {
                var dtHtasSeleccionadas = (Session["dtHtasSeleccionadas"] != null) ? (DataTable)Session["dtHtasSeleccionadas"] : new DataTable();
                var Folio = CDatos.SP_PeticionesAlmacen.SP_MaxFolio();
                foreach (GridDataItem item in rgHerramientas.MasterTableView.Items)
                {
                    TextBox txtNota = item.FindControl("txtNota") as TextBox;
                    ShowMessage(txtNota.ToString(), "success");
                }
                DataTable dt = (DataTable)Session["dtHtasSeleccionadas"];
                foreach(DataRow dr in dt.Rows)
                {
                    //dtHtasSeleccionadas.Columns.Add("IdHerramienta");
                    //dtHtasSeleccionadas.Columns.Add("Codigo");
                    //dtHtasSeleccionadas.Columns.Add("NombreCorto");
                    //dtHtasSeleccionadas.Columns.Add("Cantidad");
                    //dtHtasSeleccionadas.Columns.Add("Costo", typeof(double));
                    //dtHtasSeleccionadas.Columns.Add("Gasto", typeof(double));
                    //dtHtasSeleccionadas.Columns.Add("Nota");
                    for (int i = 0; i< int.Parse(dr.ItemArray[4].ToString()); i++)
                    {
                        var id2 = CDatos.DDetalles.InsertDetallePeticiones(int.Parse(Folio.ToString()),int.Parse(dr.ItemArray[0].ToString()),1,decimal.Parse(dr.ItemArray[5].ToString()),1,"");   
                    }
                }
                this.ShowMessage(Resources.Language.mess_peticion, "success");
            }
            catch (Exception ex) { this.ShowMessage(ex.Message, "danger"); }
        }

 

I want to be able to save the data from the textboxes as the last paramenter of the InsertCommand, instead of the ""

Attila Antal
Telerik team
 answered on 05 Feb 2020
1 answer
140 views

<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        Skin="WebBlue" CssClass="RadTabStrip" Font-Bold="True" SelectedIndex="0">
        <Tabs>
            <telerik:RadTab runat="server" Text="DMS Check list Generator" PageViewID="RadPageView1" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Upload & Validation" PageViewID="RadPageView2">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Search & Download" PageViewID="RadPageView3">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>

 

above is my aspx code.

I have created a container to allow user run the exe file and only show in container instead of in IE with link showed. below is the config 

 

<configuration>
  <appSettings>
    <add key="Url" value="http://localhost:56309/User/Login"/>
    <add key="ContainerTitle" value="CMMS eChecklist"/>
    <add key="ContainerWidth" value="1280" />
    <add key="ContainerHeight" value="1024" />
    <add key="MaximizeContainer" value="F" />
    <add key="PageRefreshSeconds" value="0" /> <!--(0 = if no refresh, 3600 = 1 hour)-->
    <add key="ClientSettingsProvider.ServiceUri" value="" />
  </appSettings>
  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
      </providers>
    </membership>
    <roleManager enabled="true" defaultProvider="ClientRoleProvider">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
      </providers>
    </roleManager>
  </system.web>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
  </startup>
</configuration>

after open in container, the rabtabstrip wont change at all after select another tab. it will change only when open in IE. Please advise

THEAM SEONG
Top achievements
Rank 1
 answered on 05 Feb 2020
1 answer
379 views

Hello!

 

I have a radgrid table configured in my ASP application. When it is in Edit mode (EditForms), it displays two dropdown columns and the Update & Cancel options at the left of the table, is there anyway to move the buttons to the right side?

Im able to move the dropdown columns to the right with the code:

<EditFormSettings  FormTableStyle-HorizontalAlign="Right" FormTableButtonRowStyle-HorizontalAlign="Right" ></EditFormSettings>

but Im unable to move the buttons.

 

Here is the code of my grid

<telerik:RadGrid ID="rgDetalles" runat="server" GroupingSettings-CaseSensitive="false"  AllowPaging="True" RenderMode="Lightweight"
                            AllowSorting="true" AllowFilteringByColumn="True"  PageSize="10" OnNeedDataSource="rgDetalles_NeedDataSource" OnItemCommand="ItemCommands" OnItemDataBound="rgDetalles_ItemDataBound"
                                CssClass="RadGrid_Silk" EnableHeaderContextMenu="true" GridLines="Horizontal" Width="100%" AllowAutomaticDeletes="True" AllowAutomaticInserts="False" AllowAutomaticUpdates="False" MasterTableView-EditFormSettings-FormTableButtonRowStyle-HorizontalAlign="Right">
                            <HeaderContextMenu Enabled="false"></HeaderContextMenu>
                            <MasterTableView AutoGenerateColumns="false" DataKeyNames="Folio" ItemStyle-HorizontalAlign="Center" AlternatingItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" NoMasterRecordsText="<%$ Resources:Language, lbl_tablaVacia %>" CommandItemDisplay="Top">
                                <EditFormSettings  FormTableStyle-HorizontalAlign="Right" FormTableButtonRowStyle-HorizontalAlign="Right" ></EditFormSettings>
                                <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" AddNewRecordText="" RefreshText="<%$ Resources:Language, lbl_actualizar %>"/>
                                <Columns>
                                 ...
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>

Vessy
Telerik team
 answered on 04 Feb 2020
6 answers
203 views

Hello,

 I have used RadGrid in my project. I have noticed that RadGrid freezes/hangs when the page size is changed. If I click on anywhere inside the page and then use the RadGrid scrollbar it works.

Please note this is an IE11 specific issue.

 Please suggest

~P

Vessy
Telerik team
 answered on 03 Feb 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?