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?



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

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"-- 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>"); } <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>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: " ", width: "150px" },
{ field: "MPN_ID", title: "MPN_ID", width: "150px", editor: mpnDropDownEditor, template: "#=Mpn.MPN_ID#"},
],
editable: "inline"
});