Hey all,
I made a post a few days ago, but didn't get much help at all other than a hyperlink to a project that is not implemented the same way as my own. So I decided to speak to another company I know which makes use of the Telerik controls, and low and behold they told me they also found this problem with the controls and now avoid using LINQ Datasources with Telerik, as it just does not work, however regular SQL Datasources work without a problem.
Surely this is not a bug, as it's quite a major feature? Once again, I will include what my code currently looks like, and I would appreciate it if somebody actually read my code to try notice the problem, rather than pasting a hyperlink to a project that is not implementing the same methods (thus proving un-helpful).
If I don't get a solution from this, I'll be raising this to the bug support ticket system (which I would rather avoid, as this surely cannot be a bug).
Regards,
Justin
I made a post a few days ago, but didn't get much help at all other than a hyperlink to a project that is not implemented the same way as my own. So I decided to speak to another company I know which makes use of the Telerik controls, and low and behold they told me they also found this problem with the controls and now avoid using LINQ Datasources with Telerik, as it just does not work, however regular SQL Datasources work without a problem.
Surely this is not a bug, as it's quite a major feature? Once again, I will include what my code currently looks like, and I would appreciate it if somebody actually read my code to try notice the problem, rather than pasting a hyperlink to a project that is not implementing the same methods (thus proving un-helpful).
If I don't get a solution from this, I'll be raising this to the bug support ticket system (which I would rather avoid, as this surely cannot be a bug).
Regards,
Justin
<asp:LinqDataSource ID="LinqDataSource1" runat="server" | |
ContextTypeName="db_vmmDataContext" | |
Select="new (ServiceDate, ServicedBy, InvoiceNo, Mileage, ServiceType, DateTyresLastPurchased, NextServiceDueMiles, NextServiceDueDt, MOTd, WhatWasDone, ServiceHistoryID)" | |
TableName="vmm_ServiceHistories" Where="VehicleID == @VehicleID"> | |
<whereparameters> | |
<asp:ControlParameter ControlID="lstVehicleSelectByReg" Name="VehicleID" | |
PropertyName="SelectedValue" Type="Int32" /> | |
</whereparameters> | |
</asp:LinqDataSource> | |
<div> | |
<telerik:RadGrid ID="rpt_ServiceHistory" runat="server" AllowAutomaticDeletes="True" | |
AllowAutomaticUpdates="True" AutoGenerateColumns="False" | |
DataSourceID="LinqDataSource1" GridLines="None" Skin="Hay" | |
onupdatecommand="rpt_ServiceHistory_UpdateCommand"> | |
<mastertableview datasourceid="LinqDataSource1" EditMode="InPlace"> | |
<rowindicatorcolumn> | |
<HeaderStyle Width="20px" /> | |
</rowindicatorcolumn> | |
<expandcollapsecolumn> | |
<HeaderStyle Width="20px" /> | |
</expandcollapsecolumn> | |
<Columns> | |
<telerik:GridButtonColumn CommandName="Delete" Text="Delete" | |
UniqueName="column"> | |
</telerik:GridButtonColumn> | |
<telerik:GridEditCommandColumn> | |
</telerik:GridEditCommandColumn> | |
<telerik:GridBoundColumn DataField="ServiceDate" DataType="System.DateTime" | |
HeaderText="Service Date" SortExpression="ServiceDate" | |
UniqueName="ServiceDate"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="ServicedBy" HeaderText="Serviced By" | |
SortExpression="ServicedBy" UniqueName="ServicedBy"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="InvoiceNo" DataType="System.Int32" | |
HeaderText="Invoice No" SortExpression="InvoiceNo" UniqueName="InvoiceNo"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="Mileage" DataType="System.Int32" | |
HeaderText="Mileage" SortExpression="Mileage" UniqueName="Mileage"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="ServiceType" HeaderText="Service Type" | |
SortExpression="ServiceType" UniqueName="ServiceType"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="DateTyresLastPurchased" | |
DataType="System.DateTime" HeaderText="Date Tyres Last Purchased" | |
SortExpression="DateTyresLastPurchased" | |
UniqueName="DateTyresLastPurchased"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="NextServiceDueMiles" | |
HeaderText="Next Service Due Miles" SortExpression="NextServiceDueMiles" | |
UniqueName="NextServiceDueMiles"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="NextServiceDueDt" | |
DataType="System.DateTime" HeaderText="Next Service Due Dt" | |
SortExpression="NextServiceDueDt" UniqueName="NextServiceDueDt"> | |
</telerik:GridBoundColumn> | |
<telerik:GridCheckBoxColumn DataField="MOTd" DataType="System.Boolean" | |
HeaderText="MOTd?" SortExpression="MOTd" UniqueName="MOTd"> | |
</telerik:GridCheckBoxColumn> | |
<telerik:GridBoundColumn DataField="WhatWasDone" HeaderText="Wha tWas Done?" | |
SortExpression="WhatWasDone" UniqueName="WhatWasDone"> | |
</telerik:GridBoundColumn> | |
<telerik:GridBoundColumn DataField="ServiceHistoryID" DataType="System.Int32" | |
HeaderText="Service History ID" ReadOnly="True" | |
SortExpression="ServiceHistoryID" UniqueName="ServiceHistoryID" | |
Display="False"> | |
</telerik:GridBoundColumn> | |
</Columns> | |
<editformsettings> | |
<editcolumn uniquename="EditCommandColumn1"> | |
</editcolumn> | |
</editformsettings> | |
</mastertableview> | |
<filtermenu enabletheming="True"> | |
<collapseanimation duration="200" type="OutQuint" /> | |
</filtermenu> | |
</telerik:RadGrid> | |
</div> |