| 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
TryCast(editedItem("ClientTypeID").Controls(0), TextBox).Text)
TryCast(editedItem("GroupID").Controls(0), DropDownList)
I have a field that is set as a <telerik:GridNumericColumn>.
When I go to Insert/Update My record I am not sure what the object type is.
| protected void lbtnChooseOffer_Click(object sender, EventArgs e) |
| { |
| foreach (var item in RadGridMembers.Items) |
| { |
| } |
| } |
| scriptManager.AddHistoryPoint("mykey", Convert.ToString(this.mvSignOrdering.ActiveViewIndex)); |
| this.mvOrdering.ActiveViewIndex = 1; |