| <asp:DropDownList ID="ddProject" runat="server" DataSourceID="sdsProjects" DataTextField="Project" |
| DataValueField="idProject" AutoPostBack="True"> |
| </asp:DropDownList> |
| <asp:SqlDataSource ID="sdsProjects" runat="server" ConnectionString="<%$ ConnectionStrings:SkillsDB %>" |
| SelectCommand="usp_Project_Select" SelectCommandType="StoredProcedure"></asp:SqlDataSource> |
| <telerik:RadScheduler ID="rsResourceProfile" runat="server" DataEndField="dteEndDate" DataKeyField="idResourceProfile" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="sdsResourceProfile" DataStartField="dteStartDate" DataSubjectField="numHeadcount" Skin="Vista" GroupingDirection="Vertical" GroupBy="idProjectRole" ShowViewTabs="true" OverflowBehavior="Expand" Culture="English (United Kingdom)" DayEndTime="08:00:00" MinutesPerRow="1440" MonthVisibleAppointmentsPerDay="50" WorkDayEndTime="00:00:00" WorkDayStartTime="00:00:00" SelectedView="TimelineView"> |
| <TimelineView SlotDuration="30.00:00:00" HeaderDateFormat="MMMM yyyy" NumberOfSlots="12" GroupBy="idProjectRole" GroupingDirection="Vertical" /> |
| <ResourceTypes> |
| <telerik:ResourceType KeyField="idProjectRole" Name="Role" TextField="Role" ForeignKeyField="idProjectRole" DataSourceID="sdsProjectRole" /> |
| </ResourceTypes> |
| <MonthView VisibleAppointmentsPerDay="50" /> |
| </telerik:RadScheduler> |
| <asp:SqlDataSource ID="sdsResourceProfile" runat="server" ConnectionString="<%$ ConnectionStrings:SkillsDB %>" DeleteCommand="usp_ResourceProfile_Delete" DeleteCommandType="StoredProcedure" InsertCommand="usp_ResourceProfile_Insert" InsertCommandType="StoredProcedure" SelectCommand="usp_ResourceProfile_Select_ByProject" SelectCommandType="StoredProcedure" UpdateCommand="usp_ResourceProfile_Update" UpdateCommandType="StoredProcedure"> |
| <SelectParameters> |
| <asp:ControlParameter ControlID="ddProject" DefaultValue="-1" Name="idProject" PropertyName="SelectedValue" Type="Int32" /> |
| <asp:ControlParameter ControlID="rsResourceProfile" DefaultValue="" Name="dateStartRange" PropertyName="VisibleRangeStart" Type="DateTime" /> |
| <asp:ControlParameter ControlID="rsResourceProfile" Name="dateEndRange" PropertyName="VisibleRangeEnd" Type="DateTime" /> |
| </SelectParameters> |
| <InsertParameters> |
| <asp:Parameter Name="idProjectRole" Type="Int32" /> |
| <asp:Parameter Name="dteDate" Type="DateTime" /> |
| <asp:Parameter Name="intMonth" Type="Int32" /> |
| <asp:Parameter Name="intYear" Type="Int32" /> |
| <asp:Parameter Name="numHeadcount" Type="Int64" /> |
| </InsertParameters> |
| <UpdateParameters> |
| <asp:Parameter Name="idResourceProfile" Type="Int32" /> |
| <asp:Parameter Name="idProjectRole" Type="Int32" /> |
| <asp:Parameter Name="dteDate" Type="DateTime" /> |
| <asp:Parameter Name="intMonth" Type="Int32" /> |
| <asp:Parameter Name="intYear" Type="Int32" /> |
| <asp:Parameter Name="numHeadcount" Type="Int64" /> |
| </UpdateParameters> |
| <DeleteParameters> |
| <asp:Parameter Name="idResourceProfile" Type="Int32" /> |
| <asp:Parameter Name="idProjectRole" Type="Int32" /> |
| <asp:Parameter Name="dteDate" Type="DateTime" /> |
| <asp:Parameter Name="intMonth" Type="Int32" /> |
| <asp:Parameter Name="intYear" Type="Int32" /> |
| <asp:Parameter Name="numHeadcount" Type="Decimal" /> |
| </DeleteParameters> |
| </asp:SqlDataSource> |
| <br /> |
| <asp:SqlDataSource ID="sdsProjectRole" runat="server" ConnectionString="<%$ ConnectionStrings:SkillsDB %>" |
| SelectCommand="usp_ProjectRole_Select_ByProject_Grouping" SelectCommandType="StoredProcedure"> |
| <SelectParameters> |
| <asp:ControlParameter ControlID="ddProject" Name="idProject" PropertyName="SelectedValue" |
| Type="Int32" /> |
| </SelectParameters> |
| </asp:SqlDataSource> |
In a RadGrid, within the grid I have a clomun that shows as a checkbox. When users choose a single record, and then click Botton, in clieked events How do I know if the selected records the value of the Checkbox?
if using Microsoft Grid,correct syntax is as follows:
bool bIsLocked = ((CheckBox)GridView1.Rows[GridView1.SelectedIndex].Cells[9].Controls[0]).Checked;
But if using RadGrid,how to code?
Hi,
I'd like to use client side databinding with RadGrid Q2.2008 version. I've placed a RadGrid on page and would like to bind my data from WebService to it. I use the sample code:
| var grid = $find("<%= RadGrid1.ClientID %>"); |
| var tableView = grid.get_masterTableView(); |
| tableView.set_dataSource(results); |
| tableView.dataBind(); |
get_masterTableView returns nothing due to the fact that I don't bind any data to the RadGrid, I think. But I don't want to use server side datasource and I don't know how many columns I get from service. So I can't predefine the columns.
Has anybody an idea how to get RadGrid cooperative for that?
Thnx!


<
telerik:RadDatePicker ID="RadDue" runat="server" SelectedDate='<%# Bind("DueDate") %>' EnableTyping="false">
</telerik:RadDatePicker>
| <telerik:RadChart ID="RadChart_suivi_AO" runat="server" DataSourceID="SqlDataSource_suivi_AO" Height="400px" Width="800px"> |
| <PlotArea XAxis-AutoScale="true"> |
| <YAxis MinValue="0" Step="1"> |
| </YAxis> |
| <YAxis2 MinValue="0" Step="1"> |
| </YAxis2> |
| <XAxis DataLabelsColumn="Libelle_gestionnaire" LayoutMode="Between"> |
| <Appearance> |
| <LabelAppearance RotationAngle="90" Position-AlignedPosition="Top"> |
| </LabelAppearance> |
| </Appearance> |
| </XAxis> |
| </PlotArea> |
| <ChartTitle> |
| <TextBlock Text="Suivi des appels d'offres"> |
| </TextBlock> |
| </ChartTitle> |
| <Appearance Border-Visible="false" > |
| </Appearance> |
| </telerik:RadChart> |