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

I am working on a laptop maintaining web applications for 2 different clients
they both purchased Telerik - Web UI for Ajax - yay
unfortunately, different versions - the main client just bought it but the other client has the version from 2013
I need to write a simple CRUD page and WOULD LOVE TO USE A RADGRID not go back to Microsoft's GridView (ugh!)
how do I configure the web config to ignore the version in the GAC?

Rumen
Telerik team
 answered on 04 Dec 2017
1 answer
121 views
When I publish my latest version of a web form 2010 application that uses a recent Telerik radeditor tool to the production app server, my application cannot find a Telerik object called 'Windows7'. However when I deployed the latest version of the application to a test app server, there was no problem.

The difference between those two versions of the web form 2010 application, I was using my old Windows 7 computer that had 4 or 5 versions of the Telerik editor tool installed on that computer. Now I have a new windows 10 computer and I only installed latest version of the Telerik editor tool on that new computer.

When I compare the Telerik references of the web.config file generated from my new computer versus the web.config file generated previously from my old computer, there are a lot less Telerik references.
Thus I am wondering if I need all the previous versions of the Telerik installed of the radeditor placed on my new computer placed on my new computer in sequential order? If so, I probably should uninstall the current version of the Telerik tool on my new computer and reinstall that version after the other versions of the telerik tool have been installed. If not, should I just leave the current version of the Telerik tool on my computer and install the other missing versions of the Telerik tool?

If my suggestion would not work, can you tell me what you suggest I do to solve my problem?
Rumen
Telerik team
 answered on 04 Dec 2017
1 answer
325 views
Hi, I am unable to add RadAsyncUpload in RadGrid with progress bar clicking on only submit button. I have added multiple columns in RadGrid with progress bar but while selecting video file, progress bar is apprearing but I require progress bar only on Submit button and progress bar should work on row by row. Please help me to achieve progress bar in percentage where we are converting and uploading files.
Attila Antal
Telerik team
 answered on 04 Dec 2017
3 answers
205 views

Hello,

I'm trying to export the grid in excel format with the code below and it's not being processed, I need something else installed, I do not have Excel, but LibreOffice installed on the machine.

  Protected Sub ImageButton1_Click(sender As Object, e As ImageClickEventArgs)

        RadGrid1.ExportSettings.Excel.Format = DirectCast([Enum].Parse(GetType(GridExcelExportFormat), "Xlsx"), GridExcelExportFormat)
        RadGrid1.ExportSettings.IgnorePaging = False
        RadGrid1.ExportSettings.ExportOnlyData = True
        RadGrid1.ExportSettings.OpenInNewWindow = True
        RadGrid1.MasterTableView.ExportToExcel()
    End Sub

Thank you,
Automatically translated

 

 

Vessy
Telerik team
 answered on 04 Dec 2017
17 answers
1.5K+ views
I have a RadGrid with AutoGenerateColumns set to true.  I also set up the grid so it can be exported to excel using format Xlsx. 
There are several columns in the grid with data.  One field in a column start with a minus sign (-) which makes the export go into error with following message :

We found a problem with this formula. Try clicking Insert Function on the Formulas tab to fix it.\n\nNot trying to type a formula? When the first character is an equal (=) or minus (-) sign, RadSpreadsheet thinks it is a formula. For example, when you type =1+1 the cell shows 2.

The other fields in that column are all text.  Is it possible to set the RadGrid (or the Export settings) that all columns are TEXT without defining all columns seperate? 

Thank you for any response.

Suzy
Atif
Top achievements
Rank 1
 answered on 04 Dec 2017
1 answer
93 views
RadTreeView with Drag Drop in Client side worked for me using http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/draganddropnodes/defaultcs.aspx. But I want to persist these changes on server using Ajax. Is there is any example?  I have this example, only works for server http://www.telerik.com/community/code-library/aspnet-ajax/treeview/saving-changes-from-drag-and-drop-in-the-database.aspx I need example in Ajax
aly
Top achievements
Rank 1
 answered on 03 Dec 2017
2 answers
136 views
Dear Telerik,

Iam trying to export my RadGrid data, it works. But the excelfile has the ".xls" extension. Iam trying to replace the file extension with the next line of code:
Grid1.ExportSettings.Excel.FileExtension = "xlsx"
 
''I want to export to .xml extension to avoid the window for the untrusted resource of the excel ''document.
 
Grid1.ExportSettings.Excel.FileExtension = "xml"

So how can I edit the file extension of the export document?
JeffSM
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 02 Dec 2017
6 answers
1.9K+ views
Hi,
I have a webform where on one of the button click, I have to pop up another form, and on that pop up form, whatever user selects, need to add to the parent form grid. Now I am able to update parent page grid by calling parent page code behind function but the problem is that after that function call, the pop up screen is closed even though I dont have any code to close it down.

So simply, on my pop up page, I am storing something on session, on one of its button click, I am calling function to execute parent page's code behind function, ACTUALLY I am calling one of the button's click event. Everything works fine except the Pop up window close down after I call this function and I donot want it to be closed. I want to refresh parent grid and want to keep pop up window open.
Any suggestion ?
Here is my code. Although I copied it almost from telerik samples, please do let me know what changes do I need to make in order to keep the pop up open even after parent page's function is called.

#########################################################################################################
-- SCRIPTS OF PARENT PAGE
  
function OpenPopup(currentVersion) {
            var widthVal = 750;
            var heightVal = 700;
  
            var oWnd = radopen("Components.aspx?v=" + currentVersion, "RadWindow1");
           oWnd.setSize(heightVal, widthVal);
           //set a function to be called when RadWindow is closed
           oWnd.add_close(OnClientClose);
           return false;
     }
  
  
function OnClientClose(oWnd) {
     //get the transferred arguments
     document.getElementById("btnSearchComponent").click();
     }
  
function CalledFn() {
     document.getElementById("btnSearchComponent").click();
     }
  
  
  
     <telerik:RadWindowManager ID="RadWindowManager1" runat="server" 
     ReloadOnShow="true" ShowContentDuringLoad="false" Skin="Default" 
     KeepInScreenBounds ="true" VisibleStatusbar="false" >
     <windows>
     <telerik:RadWindow runat="server" ID="RadWindow1" Width="800" Height="500" Behaviors="Move,Close" 
     Modal="true" NavigateUrl="Components.aspx" AutoSize="false"  
     OnClientClose="OnClientClose" >
     </telerik:RadWindow>
     </windows>                     
     </telerik:RadWindowManager>
  
  
  
ON MY POP UP PAGE ( CHILD PAGE )
  
 <script language="javascript" type="text/javascript">
  
     function CloseForm() {
         window.opener.document.getElementById("btnSearchComponent").click();
     }
 </script>    
  
                <asp:Button runat="server" ID="btnAddProduct" Text="Add" 
                    CssClass="ButtonCSS" onclick="btnAddProduct_Click" Width="350px" />
  
CODE BEHIND TO CALL ABOVE FUNCTION AFTER PERFORMING CERTAIN TASKS AND TO STORE MY VALUES IN SESSION
 protected void btnAddProduct_Click(object sender, EventArgs e)
 {
// I PERFORM CERTAIN TASKS HERE
ClientScript.RegisterClientScriptBlock(this.GetType(), "myscript", @"<script>CloseForm();</script>");
}

#########################################################################################################
Thanks in advance,
Season
Top achievements
Rank 1
 answered on 02 Dec 2017
5 answers
253 views
Hi, I am just starting using Telerik. So, first of all  sorry if I make basic questions. I have been trough video, tutorial and documentation but I am not coming right.
I have a RadGrid with 5 fields. When I click on "add new record", the grid open-up but only 3 of the 5 fields are shown.
The two fields not showing are:
- the CustomerID, which is an  auto-increase identity. I do not need this field to show up because I expect the database to manage it, so this is not the problem;
-the other one is the CustomerName, which is the primary key of the table, this is important to be shown and filled in.
 I do not understand why these two fields do not show, however, how can I make the CustomerName showing up?

Moreover, when I click on "Insert", nothing happen. Is this related to the fact that there are missing fields in the table? Or do I need additional code to post the new records to the database?
Here is the RadGrid code:

    <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CellSpacing="0" Culture="it-IT" DataSourceID="SqlDataSource1" GridLines="None">
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="TopAndBottom" DataKeyNames="CustomerName" DataSourceID="SqlDataSource1">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="CustomerID" DataType="System.Int32" FilterControlAltText="Filter CustomerID column" HeaderText="CustomerID" ReadOnly="True" SortExpression="CustomerID" UniqueName="CustomerID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CustomerName" FilterControlAltText="Filter CustomerName column" HeaderText="CustomerName" ReadOnly="True" SortExpression="CustomerName" UniqueName="CustomerName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CustomerContact" FilterControlAltText="Filter CustomerContact column" HeaderText="CustomerContact" SortExpression="CustomerContact" UniqueName="CustomerContact">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Country" FilterControlAltText="Filter Country column" HeaderText="Country" SortExpression="Country" UniqueName="Country">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="date" DataType="System.DateTime" FilterControlAltText="Filter date column" HeaderText="date" SortExpression="date" UniqueName="date">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
Some help will be appreciated. Thanks.
Matt
Top achievements
Rank 1
 answered on 01 Dec 2017
0 answers
97 views

Hi ,

     I am trying to create drop down inline in the kendo grid and i cannot bind the data. can you please let me know where i did wrong.

    dsPartnerGrid = new kendo.data.DataSource({
        serverFiltering: true,
        serverPaging: true,
        serverSorting: true,
        autoBind: false,
        batch: false,
        autoSync: true,
        pageSize: 30,
        schema: {
            model: {
                id: "MPN_ID",
                fields: {
                    "MPN_ID": { type: "string", editable: true, validation: { required: true } },

                }
            }
        },
        type: "odata",
        transport: {

            read: {
                url: $.appConfig.ServiceUri + "/SAMGPLs",
                dataType: "jsonp"
            }

        },
        requestEnd: function (e) {

            if (typeof (e.response) == 'undefined')
                return;
            if (e.response == null)
                return;
            if (typeof (e.response.d) == 'undefined')
                return;
            if (e.response.d.length == 0)
                return;
        }

    })




    $("#partnerGrid").kendoGrid({
        dataSource: dsPartnerGrid,
        pageable: true,
        height: 550,
        //filterable: {
        //    mode: "row"
        //},
        toolbar: ["create"],
        columns: [
            { command: ["edit", "destroy"], title: "&nbsp;", width: "150px" },
            { field: "MPN_ID", title: "MPN_ID", width: "150px", editor: mpnDropDownEditor, template: "#=Mpn.MPN_ID#"},

        ],

        editable: "inline"
    });

Karteek
Top achievements
Rank 1
 asked on 01 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?