| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="rsmMain" runat="server" /> |
| <telerik:RadMenu ID="rmScheduleMenu" runat="server" /> |
| </div> |
| </form> |
| </body> |
| </html> |
| html |
| { |
| margin: 0; |
| padding: 0; |
| } |
| body |
| { |
| font-family: Verdana; |
| font-size: 11px; |
| margin: 0; |
| padding: 0; |
| } |
| .RadMenu_Default .rmRootGroup |
| { |
| border: solid 0px transparent !important; |
| } |
| //Excluding AXD telerik resources |
| if (request.Path.ToLowerInvariant().EndsWith("webresource.axd")) |
| { |
| return; |
| } |
Hello
Please I have a GridDataItemCollection and I wanto to pass it to reportviewer ,how can i do so ?
I do the following but it give me an error in reportviewer
GridDataItemCollection g = RadGrid1.MasterTableView.Items ;
r.DataSource =
g;
the error is it dosent the column name of my table
Thanks in advance
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <div> |
| <telerik:RadUpload ID="RadUpload1" runat="server" TargetPhysicalFolder="z:\temp" ControlObjectsVisibility="All" /> |
| <telerik:RadProgressManager ID="RadProgressManager1" runat="server" RefreshPeriod="100" /> |
| <telerik:RadProgressArea ID="RadProgressArea1" runat="server" Skin="Vista"> |
| </telerik:RadProgressArea> |
| </div> |
| <asp:Button runat="server" Text="Upload" /> |
| </form> |
| This is my grid view code.... |
| <columns> |
| <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Code" DataField="Code" |
| HeaderText="Code"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Employee" DataField="Employee" |
| HeaderText="Employee"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Address" DataField="Address" |
| HeaderText="Address"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DefaultInsertValue="" UniqueName="Location" DataField="Location" |
| HeaderText="Location"> |
| </columns> |
| And my checkboxlist contains following.... |
| <asp:CheckBoxList ID="CheckBoxListThird" runat="server" RepeatColumns="5" Width="100%"> |
| <asp:ListItem Enabled="False" Selected="True" Value="Code">Site ID</asp:ListItem> |
| <asp:ListItem Selected="True">Employee</asp:ListItem> |
| <asp:ListItem Selected="True">Address</asp:ListItem> |
| <asp:ListItem Selected="True">Location</asp:ListItem> |
| </asp:CheckBoxList> |
| In my code behind i am trying something like this.... |
| foreach (DataControlField col in RadGrid.Columns) |
| { |
| if (col.HeaderText.ToUpper() == CheckBoxListFirst.Items[i].Text.ToUpper()) |
| col.Visible = CheckBoxListFirst.Items[i].Selected; |
| } |
| But It is giving me error.... This is just an example i have given i have in my listbox some 60 items.... |
| so i want to come the headertext and item text of grid and checkboxlist.... My scenario fits in this way only..... |
| Please tell me how to achevie it.... |
<
telerik:RadGrid ID="RadGridOrder" runat="server" Skin="Outlook" AllowPaging="true"
DataSourceID="ddsOrder"
ValidationSettings-EnableValidation="true">
<Clientsettings allowkeyboardnavigation="true" enablepostbackonrowclick="true">
<Selecting AllowRowSelect="true" />
</Clientsettings>
<MasterTableView DataSourceID="ddsOrder"
AllowAutomaticInserts="false" AllowAutomaticDeletes="true" AllowAutomaticUpdates="true"
AutoGenerateColumns="false" DataKeyNames="OrderID" >
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton"> </telerik:GridEditCommandColumn>
<telerik:GridBoundColumn DataField="OrderID" HeaderText="ID" UniqueName="OrderID" SortExpression="OrderID" Visible="false" Display="true">
</telerik:GridBoundColumn>
<telerik:GridDropDownColumn FooterText="Seller" UniqueName="Seller"
ListTextField="CompanyName" ListValueField="CompanyID" DataSourceID="ddsGetSellers"
HeaderText="Seller" DataField="SellerID" AllowSorting="true">
</telerik:GridDropDownColumn>
<telerik:GridCheckBoxColumn DataField="IsAcceptedBySeller" HeaderText="Seller Approved" UniqueName="IsAcceptedBySeller" ></telerik:GridCheckBoxColumn>
<telerik:GridDropDownColumn FooterText="Buyer" UniqueName="ddlBuyers"
ListTextField="CompanyName" ListValueField="CompanyID" DataSourceID="ddsGetBuyers"
HeaderText="Buyer" DataField="BuyerID" AllowSorting="true">
</telerik:GridDropDownColumn>
<telerik:GridCheckBoxColumn DataField="IsAcceptedByBuyer" HeaderText="Buyer Approved" UniqueName="IsAcceptedByBuyer" ></telerik:GridCheckBoxColumn>
<telerik:GridBoundColumn DataField="ShippingCity" HeaderText="Ship To City" UniqueName="ShippingCity" SortExpression="ShippingCity">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ShippingStateProvince" HeaderText="Ship To State" UniqueName="ShippingStateProvince" SortExpression="ShippingCity">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ShippingZipPostalCode" HeaderText="Ship To Zip" UniqueName="ShippingZipPostalCode" SortExpression="ShippingZipPostalCode">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<
cc1:DomainDataSource runat="server" ID="ddsOrder"
DomainServiceTypeName="G7.ePOD.PaymentSettlement.Business.OrderDomainService"
SelectMethod="GetCartOrders" EnableUpdate="true" EnableInsert="true" EnableDelete="true" >
</
cc1:DomainDataSource>
<
cc1:DomainDataSource runat="server" ID="ddsGetBuyers"
DomainServiceTypeName="G7.ePOD.PaymentSettlement.Business.OrderDomainService"
SelectMethod="GetBuyers" EnableUpdate="false" EnableInsert="false" EnableDelete="false" >
</
cc1:DomainDataSource>
<
cc1:DomainDataSource runat="server" ID="ddsGetSellers"
DomainServiceTypeName="G7.ePOD.PaymentSettlement.Business.OrderDomainService"
SelectMethod="GetCompanies" EnableUpdate="false" EnableInsert="false" EnableDelete="false" >
</
cc1:DomainDataSource>
Hi,
I m using radscheduler in my application. I m having the start time as '23:30:00' and end time as '00:30:00' in my tables.
And it showing error as 'StartTime must be before the endtime' when radscheduler loading.
I need to plot the appointment as mentioned timing in radscheduler.
Please give any suggestions to solve it.
thanks in advance.
Regards,
Maha