Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
118 views

fisrt I'm using Visual Studio 2013 and Telerik.Web.UI dll version 2016.2.607.40. I have a grid with a grouped column. when I click the export to PDF button there is no data in the pdf just the headers and footer. I have attached my files. also I've set the gridlines = Both and they do not show in the grid. I've looked at it in both IE and Chrome. can someone show me what I've got wrong.

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" RenderMode="Lightweight" GridLines="Both"
ShowFooter="True" CssClass="rgview" ClientSettings-Resizing-AllowColumnResize="true" Width="100%">
<ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="true">
<Pdf DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm" BorderStyle="Medium" BorderColor="#666666"></Pdf>
</ExportSettings>
<MasterTableView CommandItemDisplay="Top" ShowGroupFooter="true" GroupsDefaultExpanded="true" GridLines="Both">
<CommandItemSettings ShowExportToPdfButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false" ShowPrintButton="true" />
<NoRecordsTemplate>There are no records to display</NoRecordsTemplate>
<Columns>
<telerik:GridBoundColumn Aggregate="First" DataField="DistTyp" HeaderText="Distribution type"
ReadOnly="True" SortExpression="DistTyp" UniqueName="DistTyp" FooterText="Dist. Type: ">
<HeaderStyle Width="150px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RqstRedistOrdNbr" HeaderText="Order No." UniqueName="RqstRedistOrdNbr">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RcvdDt" HeaderText="Date Rec." UniqueName="RcvdDt" DataFormatString="{0:d}">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Mtrl" HeaderText="Material" UniqueName="Mtrl">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MtrlDescr" HeaderText="Material Desc." SortExpression="MtrlDescr" UniqueName="MtrlDescr">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MtrlDescr" HeaderText="Quantity" SortExpression="MtrlDescr" UniqueName="MtrlDescr">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Aggregate="Sum" DataField="TotLbs" DataType="System.Decimal"
HeaderText="Total Lbs" SortExpression="TotLbs" UniqueName="TotLbs" FooterText="Total: ">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Aggregate="Sum" DataField="InvcAmt" DataType="System.Decimal" DataFormatString="{0:c}"
HeaderText="Invc Amt" ReadOnly="True" SortExpression="InvcAmt" UniqueName="InvcAmt" FooterText="Total: ">
</telerik:GridBoundColumn>
</Columns>
<GroupByExpressions>
<telerik:GridGroupByExpression>
<GroupByFields >
<telerik:GridGroupByField FieldName="DistTyp" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
</MasterTableView>
</telerik:RadGrid>

CodeBehind

Private Sub RadGrid1_ColumnCreated(sender As Object, e As GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated
  If TypeOf e.Column Is GridGroupSplitterColumn Then
    e.Column.Resizable = False
    e.Column.HeaderStyle.Width = Unit.Pixel(1)
  End If
End Sub
 
Private Sub RadGrid1_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
  If (TypeOf (e.Item) Is GridFooterItem) Then
    Dim dataBoundItem As GridFooterItem = e.Item
    dataBoundItem("DistTyp").Text = "Totals"
    dataBoundItem("InvcAmt").ForeColor = Color.Red
    dataBoundItem("InvcAmt").Font.Bold = True
  End If
End Sub
 
Private Sub RadGrid1_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
  Try
    Dim dt As New DataTable
    dt = GetData()
    RadGrid1.DataSource = dt
  Catch ex As Exception
    Dim s As String = ex.Message
  End Try
 
End Sub
Function GetData() As DataTable
  Dim dt As New DataTable
  Dim dr As DataRow
  dt.Columns.Add("DistTyp")
  dt.Columns.Add("Prog")
  dt.Columns.Add("RqstRedistOrdNbr")
  dt.Columns.Add("RcvdDt")
  dt.Columns.Add("Mtrl")
  dt.Columns.Add("MtrlDescr")
  dt.Columns.Add("TotLbs", Type.GetType("System.Decimal"))
  dt.Columns.Add("InvcAmt", Type.GetType("System.Decimal"))
 
  dr = dt.NewRow
  dr("DistTyp") = "BownBoxFee"
  dr("Prog") = "NSLP"
  dr("RqstRedistOrdNbr") = "1000175861"
  dr("RcvdDt") = "2015-08-05"
  dr("Mtrl") = "100350"
  dr("MtrlDescr") = "PEAS GREEN FRZ CTN-30 LB"
  dr("TotLbs") = CDec("100")
  dr("InvcAmt") = CDec("11.0")
  dt.Rows.Add(dr)
  dr = dt.NewRow
  dr("DistTyp") = "BownBoxFee"
  dr("Prog") = "NSLP"
  dr("RqstRedistOrdNbr") = "1000175862"
  dr("RcvdDt") = "2015-10-05"
  dr("Mtrl") = "100350"
  dr("MtrlDescr") = "PEAS GREEN FRZ CTN-30 LB"
  dr("TotLbs") = CDec("200")
  dr("InvcAmt") = CDec("11.0")
  dt.Rows.Add(dr)
 
  dr = dt.NewRow
  dr("DistTyp") = "DirectDiversionFee"
  dr("Prog") = "NSLP"
  dr("RqstRedistOrdNbr") = "1000175911"
  dr("RcvdDt") = "2015-08-05"
  dr("Mtrl") = "100935"
  dr("MtrlDescr") = "SUNFLOWER SEED BUTTER 6-5#'S"
  dr("TotLbs") = CDec("200")
  dr("InvcAmt") = CDec("111.0")
  dt.Rows.Add(dr)
 
  Return dt
End Function

 

mike
Top achievements
Rank 1
 answered on 22 Jul 2016
2 answers
364 views

I have a formview that is based on the selected row of a grid.  For fv_vc.ItemInsert, I would like to set the value of the venIdFk textbox in the formview (fv_vc) to the value of venId in the radgrid's selected row.  I am using server-side selection.  For example, if venId (Cell[1]) of the grid's selected row is 81, then 81 would be inserted as the value of venIdFk in the formview.

Here's the grid:

<telerik:RadGrid
                    ID="rg_vendors"
                    runat="server"
                    AllowPaging="True"
                    AllowSorting="True"
                    AllowFilteringByColumn="True"
                    ShowGroupPanel="True"
                    Skin="Office2010Silver"
                    CellSpacing="-1"
                    DataSourceID="sdc_rg_vendors"
                    GridLines="Both"
                    OnItemCommand="rg_vendors_ItemCommand"
                    OnPreRender="rg_vendors_PreRender"
                    EnableViewState="true"
                    OnSelectedIndexChanged="rg_vendors_SelectedIndexChanged">
                    <ClientSettings
                        AllowDragToGroup="True"
                        AllowColumnsReorder="True"
                        ReorderColumnsOnClient="True">
                    </ClientSettings>
                    <MasterTableView
                        DataSourceID="sdc_rg_vendors"
                        AutoGenerateColumns="False"
                        DataKeyNames="venId"
                        CommandItemDisplay="Top">
                        <CommandItemSettings
                            ShowExportToExcelButton="true"
                            ShowAddNewRecordButton="false"
                            ShowRefreshButton="false" />
                            <Columns>  
                                <telerik:GridButtonColumn Text="Select" CommandName="Select" ButtonType="LinkButton"></telerik:GridButtonColumn>                  
                                <telerik:GridBoundColumn DataField="venId" ReadOnly="True" HeaderText="Id" SortExpression="venId" UniqueName="venId" DataType="System.Int32" FilterControlAltText="Filter venId column" Visible="false" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="venNm" HeaderText="Vendor" SortExpression="venNm" UniqueName="venNm" FilterControlAltText="Filter venNm column" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="venCity" HeaderText="City" SortExpression="venCity" UniqueName="venCity" FilterControlAltText="Filter venCity column" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="stateAbbr" HeaderText="State" SortExpression="stateAbbr" UniqueName="stateAbbr" FilterControlAltText="Filter stateAbbr column" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="venZip" HeaderText="Zip Code" SortExpression="venZip" UniqueName="venZip" FilterControlAltText="Filter venZip column" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="venPh" HeaderText="Phone" SortExpression="venPh" UniqueName="venPh" FilterControlAltText="Filter venPh column" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn DataField="venActive" HeaderText="Active" SortExpression="venActive" UniqueName="venActive" DataType="System.Boolean" FilterControlAltText="Filter venActive column" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridCheckBoxColumn>
                            </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

Here's the formview:

<asp:FormView
                            ID="fv_vc"
                            runat="server"
                            DataKeyNames="vcId"
                            DataSourceID="sdc_fv_vc"
                            OnItemInserted="fv_vc_ItemInserted"
                            OnItemDeleted="fv_vc_ItemDeleted"
                            OnItemUpdated="fv_vc_ItemUpdated">
                            <EmptyDataTemplate>
                                <asp:LinkButton ID="lb_insertitemtemplate" runat="server" OnClick="lb_insertitemtemplate_Click">New Contact</asp:LinkButton>
                            </EmptyDataTemplate>
                            <EditItemTemplate>
                                vcId:
                                <asp:Label Text='<%# Eval("vcId") %>' runat="server" ID="vcIdLabel1" /><br />
                                vcLn:
                                <asp:TextBox Text='<%# Bind("vcLn") %>' runat="server" ID="vcLnTextBox" /><br />
                                vcFn:
                                <asp:TextBox Text='<%# Bind("vcFn") %>' runat="server" ID="vcFnTextBox" /><br />
                                vcEm:
                                <asp:TextBox Text='<%# Bind("vcEm") %>' runat="server" ID="vcEmTextBox" /><br />
                                vcPh:
                                <asp:TextBox Text='<%# Bind("vcPh") %>' runat="server" ID="vcPhTextBox" /><br />
                                vcPrimary:
                                <asp:CheckBox Checked='<%# Bind("vcPrimary") %>' runat="server" ID="vcPrimaryCheckBox" /><br />
                                venIdFk:
                                <asp:TextBox Text='<%# Bind("venIdFk") %>' runat="server" ID="venIdFkTextBox" ReadOnly="true" Visible="false" /><br />
                                <asp:LinkButton runat="server" Text="Update" CommandName="Update" ID="UpdateButton" CausesValidation="True" /> <asp:LinkButton runat="server" Text="Cancel" CommandName="Cancel" ID="UpdateCancelButton" CausesValidation="False" />
                            </EditItemTemplate>
                            <InsertItemTemplate>
                                vcLn:
                                <asp:TextBox Text='<%# Bind("vcLn") %>' runat="server" ID="vcLnTextBox" /><br />
                                vcFn:
                                <asp:TextBox Text='<%# Bind("vcFn") %>' runat="server" ID="vcFnTextBox" /><br />
                                vcEm:
                                <asp:TextBox Text='<%# Bind("vcEm") %>' runat="server" ID="vcEmTextBox" /><br />
                                vcPh:
                                <asp:TextBox Text='<%# Bind("vcPh") %>' runat="server" ID="vcPhTextBox" /><br />
                                vcPrimary:
                                <asp:CheckBox Checked='<%# Bind("vcPrimary") %>' runat="server" ID="vcPrimaryCheckBox" /><br />
                                venIdFk:
                                <asp:TextBox Text='<%# Bind("venIdFk") %>' runat="server" ID="venIdFkTextBox" /><br />
                                 
                                <asp:LinkButton runat="server" Text="Insert" CommandName="Insert" ID="InsertButton" CausesValidation="True" /> <asp:LinkButton runat="server" Text="Cancel" CommandName="Cancel" ID="InsertCancelButton" CausesValidation="False" />
                            </InsertItemTemplate>
                            <ItemTemplate>                               
                                <asp:Label Text='<%# Eval("vcId") %>' runat="server" ID="vcIdLabel" Visible="false" />
                                <asp:Label Text='<%# Bind("venIdFk") %>' runat="server" ID="venIdFkLabel" Visible="false" />
                                <div class="row">
                                    <div class="col-md-3">
                                        <strong>Last Name</strong><br />
                                        <asp:Label Text='<%# Bind("vcLn") %>' runat="server" ID="vcLnLabel" /><br />
                                    </div>
                                    <div class="col-md-3">
                                        <strong>First Name</strong><br />
                                        <asp:Label Text='<%# Bind("vcFn") %>' runat="server" ID="vcFnLabel" /><br />
                                    </div>
                                    <div class="col-md-3">
                                        <strong>Email</strong><br />
                                        <asp:Label Text='<%# Bind("vcEm") %>' runat="server" ID="vcEmLabel" /><br />
                                    </div>
                                    <div class="col-md-2">
                                        <strong>Phone</strong><br />
                                        <asp:Label Text='<%# Bind("vcPh") %>' runat="server" ID="vcPhLabel" /><br />
                                    </div>
 
                                    <div class="col-md-1">
                                        <strong>Primary</strong><br />
                                        <asp:CheckBox Checked='<%# Bind("vcPrimary") %>' runat="server" ID="vcPrimaryCheckBox" Enabled="false" /><br />
                                    </div>
                                </div>
                                <asp:LinkButton runat="server" Text="Edit" CommandName="Edit" ID="EditButton" CausesValidation="False" /> <asp:LinkButton runat="server" Text="Delete" CommandName="Delete" ID="DeleteButton" CausesValidation="False" /> <asp:LinkButton runat="server" Text="New" CommandName="New" ID="NewButton" CausesValidation="False" />
                            </ItemTemplate>
                        </asp:FormView>

My initial thought was to use a hidden field and set it's value based on the grid's SelectedIndexChanged using something like:

hdn_venId.Value = rg_vendors.SelectedRow.Cells[1].Text;

Then I would set the value of venIdFk in the formview's InsertItemTemplate by making it equal to hdn_venId.  I would like to avoid the use of hidden fields.  Is there a cleaner way of accomplishing this?

Thanks,

J

 

 

Maria Ilieva
Telerik team
 answered on 22 Jul 2016
1 answer
99 views

Dear Team,

is there any way i can customize the GroupingSettings-GroupContinuesFormatString value

Reason my header is having data if i am enabling GroupingSettings-GroupContinuesFormatString property

it is overriding my header data with Showing {0} of {1} items.

so what i want is Showing {0} of {1} items. + my header data

Kostadin
Telerik team
 answered on 22 Jul 2016
0 answers
127 views

Hi there,
I'm writing a mobile app that uses AJAX. I have never used AJAX before so to see how AJAX works, I wrote a simple app that talks to asp.net page.  The app is a simple form (one text field and submit button) in which you enter an year and click submit. Ajax call is made to results.aspx.cs page on the server which returns the result and displayed on 2nd page that is inside index.html.

When I run mobile app on local server I'm getting 404 error -- responseText: "Cannot POST /results.aspx.cs/IsLeapYear↵", status: 404, statusText: "Not Found"}.

index.html page contains the following:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="msapplication-tap-highlight" content="no" />
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
    <link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css">
    <link rel="stylesheet" href="css/jqm-icon-pack-fa.css">
    <link rel="stylesheet" type="text/css" href="css/index.css" />
    <script src="js/jquery-2.1.3.min.js" type="text/javascript"></script>
    <script src="js/jquery.mobile-1.4.5.min.js" type="text/javascript"></script>
    <script>
        var SectedCityCode, URL, prov;
        $(document).bind('mobileinit', function () {
            $.mobile.pushStateEnabled = false;
        });
    </script>
    <title>Hello World</title>
</head>
<body>
    <!-- Start of first page -->
    <div data-role="page" id="home">

        <div data-role="header">
            <h1>Test</h1>
        </div>
        <div data-role="content">
            <div data-role="main" class="ui-content">
                <div class="ui-body ui-body-a ui-corner-all">
                    <form id="checkyear" class="ui-body ui-body-a ui-corner-all" data-ajax="false">
                        <label for="txtYear">Enter the year:</label>
                        <input type="text" name="txtYear" id="txtYear" value="" />
                        <input type="button" data-theme="b" name="submit" id="submit" value="Submit">
                    </form>
                </div>
            </div>

        </div>

        <div data-role="footer" data-position="fixed">
            <h4>Page footer</h4>
        </div>   
    </div>
    <!-- end of first page -->
    <!-- start of second page -->
    <div data-role="page" id="second">
        <div data-theme="a" data-role="header">
            <h3>Welcome Page</h3>
        </div>

        <div data-role="content">
            <p id="result"></p>
        </div>
        <div data-theme="a" data-role="footer" data-position="fixed">
            <h3>Page footer</h3>
        </div>
    </div>
    <!-- end of second page -->
    <script type="text/javascript" src="js/index.js"></script>
</body>
</html>

--------------------

index.js contains the following

$(document).on('pageinit', '#home', function () {
    $(document).on('click', '#submit', function () { // catch the form's submit event
        if ($('#txtYear').val().length > 0) {
            // Send data to server through the Ajax call
            // action is functionality we want to call and outputJSON is our data
            $.ajax({
                url: 'http://somewebsite/results.aspx.cs/IsLeapYear',
                data: '{ year: "' + txtYear.value + '"}',
                type: 'POST',
                async: 'true',
                dataType: 'json',
                success: function (result) {
                    if (result.status) {
                        result.val = "Leap Year";
                        $.mobile.changePage("#second");
                    } else {
                        result.val = "Not a Leap Year";
                    }
                },
                error: function (request, error) {
                    // This callback function will trigger on unsuccessful action                
                    alert('Network error has occurred please try again!');
                }
            });
        } else {
            alert('Please fill all necessary fields');
        }
        return false; // cancel original event to prevent form submitting
    });
});

--------------------------------------------

results.aspx.cs contains the following:

[System.Web.Services.WebMethod]
 
public static bool IsLeapYear(int year)
{
  return DateTime.IsLeapYear(year);
}

-----------------------------

Thanks

Joe

 

 

citm09
Top achievements
Rank 1
 asked on 22 Jul 2016
0 answers
209 views

Hi,

We are using Telerik 2016.2.607 and Asp.Net in 4.5.1.

I have set this in master page:


<telerik:RadScriptManager runat="server" ID="rsm" EnableCdn="True" EnableScriptCombine="True">
    <CdnSettings TelerikCdn="Enabled" CombinedResource="Enabled" />
</telerik:RadScriptManager>
 
<telerik:RadStyleSheetManager runat="server" ID="rssm" EnableStyleSheetCombine="True">
    <CdnSettings TelerikCdn="Enabled" CombinedResource="Enabled"/>
</telerik:RadStyleSheetManager>

 

But our IS starts to throw error:

Unhandled exception at line 730, column 49 in http://ajax.aspnetcdn.com/ajax/4.6/1/MicrosoftAjax.debug.js
0x800a139e - JavaScript runtime error: Sys.ArgumentTypeException: Object of type 'Telerik.Web.UI.RadAjaxManager' cannot be converted to type ''.
Parameter name: instance

On other pages no error appears but postbacks doesn't work, so some JavaScripts simply doesn't work.

 

Setting ScriptManager to

<telerik:RadScriptManager runat="server" ID="rsm" EnableCdn="True" EnableScriptCombine="True">
 <CdnSettings TelerikCdn="Enabled" CombinedResource="Disabled" />
</telerik:RadScriptManager>

fixes this, but I want to combine files.

Is there any way how to check what is wrong?

 

René
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 22 Jul 2016
1 answer
215 views

Hello,

We have a Rad grid with client side binding by calling Web Method via $.Ajax() function.

Here we are using client side grouping, by using ' masterTableView.groupColumn("ColumnUniqueName"); ' in Client - OnCommand event.

In such a case while grouping we have got java script error " maximum call stack size exceeded ".

So, could someone please advise is there any workaround/better way to achieve the client side grouping with client side binding

by calling Web Method via $.Ajax() function for Rad Grid?

 

Thanks in advance.

Maria Ilieva
Telerik team
 answered on 22 Jul 2016
3 answers
97 views

So I have a grid inside an asp update panel. I have a dropdown list with differnet cultutres on the master page. In the need data source event handler for the grid, I check the value of the dropdown like so

    Protected Sub grid_NeedDataSource(ByVal sender As Object, ByVal e As GridNeedDataSourceEventArgs) Handles grid.NeedDataSource
        PopulateGrid(False)
        Dim ddl As New DropDownList()
        Dim strLanguage As String
        ddl = CType(Me.Master.FindControl("ddlLanguage"), DropDownList)
        strLanguage = ddl.SelectedValue
        If strLanguage Is Nothing Or strLanguage.Length = 0 Then
            strLanguage = "en-US"
        End If
        Dim newCulture As CultureInfo = CultureInfo.CreateSpecificCulture(strLanguage)
        gridVirtualPoints.Culture = newCulture
    End Sub

Here is the PopulateGrid method called in the first line of the above method

    Private Sub PopulateGrid(ByVal reload As Boolean)
        If CurrentUser.isAdmin Or CurrentUser.isParent Then
            Dim Customers = dal.SelectCustomersByCustomerID(CurrentCustomer.CustomerID)
            Dim CustomerIDs As New List(Of String)

            For Each Customer As Customer In Customers
                If Not Customer Is Nothing Then
                    CustomerIDs.Add(Customer.CustomerID)
                End If
            Next
        //this just gets the data from the database
            grid.DataSource = dal.getgriddata(CustomerIDs)
        Else
            grid.DataSource = dal.getgriddata(CurrentUser.UserID)
        End If

        If reload Then
            grid.DataBind()
        End If
    End Sub

 

When I change the dropdown from the masterpage to a different language, it changes all the other values in the resx file except the page text. The really weird part is, if I change the dropdown value again it then updates the pager text to what it should have been the first time. So in other words

1. change from english to french. All the text from the resx file EXCEPT the PagerText changes.

2. Change back to English. All the text from the english rex file change correctly, and the pagertext now changes to the french pager text from the resx file. 

Could this have something to do with the asp update panel?

Konstantin Dikov
Telerik team
 answered on 22 Jul 2016
14 answers
394 views

Hi,

i have tried the link manager on RadEditor and got it to work for uploading the document into local file system when user tried to create a download link.

i would like to check how do i preform the same action but the document is to be upload to SharePoint document library

current mockup

1.<telerik:RadEditor ID="txtOverview" runat="server" ToolsFile="~/ToolsFile.xml" EditModes="Design">
2.         <DocumentManager ViewPaths="~/Documents" UploadPaths="~/Documents" />
3.</telerik:RadEditor>

Marin Bratanov
Telerik team
 answered on 22 Jul 2016
1 answer
158 views

If a page has no other controls except a grid with the add new record command, whenever a user presses enter they get the insert behavior - even if they're in the middle of editing a record. It's confusing and annoying if you have a grid configured for modal, popup edits - and you press enter while editing. RadGrid launches a 2nd insert popup on top of the edit popup.

How can I prevent the add new button from behaving like a default button?

Thanks!

Vasil
Telerik team
 answered on 22 Jul 2016
1 answer
154 views

I need to allow the user to select / remove columns which will be stored and displayed in a custom report. What would be the best Telerik control to start with to create this functionality? I am aware of the RadWizard, which can take them step by step in a 'custom' generation scenario.

However, I also need to create a UI which allows the user to select and remove fields, and save the selections. I have attached a screenshot of what I am looking for. Any help / directions as far as the best controls to start with would be much appreciated. Thanks!

Ivan Danchev
Telerik team
 answered on 22 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?