or
<telerik:RadGrid ID="ReleaseableItemsRadGrid" runat="server" AllowPaging="true" AllowSorting="false"
OnNeedDataSource="ReleaseableItemsRadGrid_NeedDataSource" EnableLinqExpressions="false"
Width="2100px" AutoGenerateColumns="false" Skin="WebBlue" AllowFilteringByColumn="false" AllowMultiRowSelection="true"
OnItemDataBound="ReleaseableItemsRadGrid_ItemDataBound" AllowCustomPaging="false" OnItemCreated="ReleaseableItemsRadGrid_Created"
PageSize="15">
<Columns>
<telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="20px" UniqueName="SelectionCheckBoxCell"
ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20px" ItemStyle-Wrap="false"
ItemStyle-VerticalAlign="Middle">
<ItemTemplate>
<asp:CheckBox ID="RowSelectionCheckBox" runat="server" AutoPostBack="true" OnCheckedChanged="CheckBoxRowSelection" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="40px" UniqueName="QtyInColumn"
ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40px" HeaderText="Qty Rel">
<ItemTemplate>
<telerik:RadTextBox ID="QuantityInGridTextBox" runat="server" Width="30px" CssClass="textbox"
Skin="WebBlue" AutoPostBack="true" OnTextChanged="Ck_Qty" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</
Columns>
protected void ReleaseableItemsRadGrid_Created(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
e.Item.PreRender +=
new EventHandler(ReleaseableItemsRadGrid_ItemPreRender);
}
}
private void ReleaseableItemsRadGrid_ItemPreRender(object sender, EventArgs e)
{
((sender
as GridDataItem)["SelectionCheckBoxCell"].FindControl("RowSelectionCheckBox") as CheckBox).Checked = (sender as GridDataItem).Selected;
}
I had enabled checkbox feature in radlistbox,
i had checked selected item in Source Listbox, but the transfer button still disable.
i need to click either row in SourceListbox, and then the transfer button will be enable.
how can i simply checked the checkbox and then click transfer button ? thanks
<table> <tr><td>Unselect<br /><telerik:RadListBox runat="server" ID="RadListBox_unselect" Height="200px" Width="230px" AllowTransfer="True" TransferToID="RadListBox_select" AutoPostBack="True" CheckBoxes="True" style="top: 0px; left: 0px" DataSourceID="ODS_Unselect" DataTextField="employee_display_name" DataValueField="employee_id" OnClientTransferring="clientTransfering"></telerik:RadListBox> <asp:ObjectDataSource ID="ODS_Unselect" runat="server" SelectMethod="GetEmployeeArrayByListByCourseID" TypeName="LRDB"> <SelectParameters> <asp:SessionParameter DefaultValue="0" Name="id" SessionField="EmpList" Type="String" /> <asp:QueryStringParameter Name="CID" QueryStringField="CourseID" Type="String" /> </SelectParameters> </asp:ObjectDataSource> </td><td></td><td>Selected<br /> <telerik:RadListBox runat="server" ID="RadListBox_select" Height="200px" Width="200px" TransferToID="RadListBox_unselect" AutoPostBack="True" CheckBoxes="True" style="top: 0px; left: 0px"> </telerik:RadListBox> </td></tr></table>

Protected Sub uxRGMembersCleanup_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles uxRGMembersCleanup.NeedDataSource
Dim cnstr As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Server.MapPath("~/App_Data/Test_Members.xlsx") & ";" & "Extended Properties=Excel 12.0"
Dim oledbConn As New OleDbConnection(cnstr)
Dim strSQL As String = "SELECT * FROM [Test_Members$]"
Dim cmd As New OleDbCommand(strSQL, oledbConn)
Dim ds As New DataSet()
Dim da As New OleDbDataAdapter(cmd)
da.Fill(ds)
uxRGMembersCleanup.DataSource = ds
'uxRGMembersCleanup.DataBind()
End Sub
<telerik:RadChart ID="RadChart2" runat="server" Width="970px" AutoLayout="True" Skin="Vista" Height="500px" DefaultType="Spline" DataSourceID="SqlDataSource1" OnDataBinding="RadChart2_DataBinding" OnDataBound="RadChart2_DataBound"> <Appearance Corners="Round, Round, Round, Round, 7"> <FillStyle FillType="ComplexGradient"> <FillSettings> <ComplexGradient> <telerik:GradientElement Color="243, 253, 255" /> <telerik:GradientElement Color="White" Position="0.5" /> <telerik:GradientElement Color="243, 253, 255" Position="1" /> </ComplexGradient> </FillSettings> </FillStyle> <Border Color="212, 221, 222" /> </Appearance> <Series> <telerik:ChartSeries Name="Pac" DefaultLabelValue="#Y{F1}" Type="Spline" DataYColumn="PAC" Appearance-ShowLabels="false"> <Appearance> <FillStyle MainColor="186, 207, 141" SecondColor="146, 176, 83"> <FillSettings GradientMode="Vertical"> <ComplexGradient> <telerik:GradientElement Color="213, 247, 255" /> <telerik:GradientElement Color="193, 239, 252" Position="0.5" /> <telerik:GradientElement Color="157, 217, 238" Position="1" /> </ComplexGradient> </FillSettings> </FillStyle> <TextAppearance TextProperties-Color="89, 89, 89"> </TextAppearance> <Border Color="" /> </Appearance> </telerik:ChartSeries> <telerik:ChartSeries Name="Pdc" Type="Spline" DataYColumn="PDC" Appearance-ShowLabels="false"> <Appearance> <FillStyle MainColor="235, 140, 104" SecondColor="214, 110, 90"> <FillSettings GradientMode="Vertical"> <ComplexGradient> <telerik:GradientElement Color="218, 254, 122" /> <telerik:GradientElement Color="198, 244, 80" Position="0.5" /> <telerik:GradientElement Color="153, 205, 46" Position="1" /> </ComplexGradient> </FillSettings> </FillStyle> <TextAppearance TextProperties-Color="89, 89, 89"> </TextAppearance> <Border Color="" /> </Appearance> </telerik:ChartSeries> <telerik:ChartSeries DataYColumn="D_Mtrk" Name="D_Mtrk" Type="Spline" YAxisType="Secondary" Appearance-ShowLabels="false"> <Appearance> <FillStyle MainColor="129, 192, 225" SecondColor="79, 129, 189"> <FillSettings GradientMode="Vertical"> <ComplexGradient> <telerik:GradientElement Color="136, 221, 246" /> <telerik:GradientElement Color="97, 203, 234" Position="0.5" /> <telerik:GradientElement Color="59, 161, 197" Position="1" /> </ComplexGradient> </FillSettings> </FillStyle> <TextAppearance TextProperties-Color="89, 89, 89"> </TextAppearance> <Border Color="" /> </Appearance> </telerik:ChartSeries> </Series> <Legend Appearance-ItemAppearance-Position-AlignedPosition="BottomRight"> <Appearance Dimensions-Margins="1px, 1%, 10%, 1px"> <ItemTextAppearance TextProperties-Color="86, 88, 89"> </ItemTextAppearance> <ItemMarkerAppearance Figure="Rectangle"> </ItemMarkerAppearance> <FillStyle MainColor=""> </FillStyle> <Border Color="" /> </Appearance> <TextBlock> <Appearance TextProperties-Color="86, 88, 89"> </Appearance> </TextBlock> </Legend> <PlotArea> <DataTable Visible="true" > <Appearance Dimensions-AutoSize="true" Position-AlignedPosition="BottomRight" RenderType="AutoSize" ></Appearance> </DataTable> <XAxis > <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"> <MajorGridLines Color="196, 196, 196" Width="0" /> <TextAppearance TextProperties-Color="89, 89, 89"> </TextAppearance> </Appearance> <AxisLabel Appearance-Visible="true"> <Appearance Visible="True" Dimensions-Paddings="1px, 1px, 10%, 1px"></Appearance> <TextBlock Text="Time"> <Appearance TextProperties-Color="51, 51, 51"> </Appearance> </TextBlock> </AxisLabel> </XAxis> <YAxis IsZeroBased="false" > <Appearance Color="134, 134, 134" MajorTick-Color="196, 196, 196" MinorTick-Color="196, 196, 196"> <MajorGridLines Color="196, 196, 196" /> <MinorGridLines Color="196, 196, 196" Width="0" /> <TextAppearance TextProperties-Color="89, 89, 89"> </TextAppearance> </Appearance> <AxisLabel Appearance-Visible="true" > <Appearance Visible="True"></Appearance> <TextBlock Text="Pac & Pdc [kW]" > <Appearance TextProperties-Color="220, 158, 119"> </Appearance> </TextBlock> </AxisLabel> </YAxis> <YAxis2> <AxisLabel Appearance-Visible="true" > <Appearance Visible="True"></Appearance> <TextBlock Text="D_Mtrk [W/m^2]" > <Appearance TextProperties-Color="220, 158, 119"> </Appearance> </TextBlock> </AxisLabel> </YAxis2> <Appearance Dimensions-Margins="19%, 90px, 12%, 9%"> <FillStyle MainColor="Transparent" SecondColor="Transparent"> </FillStyle> <Border Color="WhiteSmoke" /> </Appearance> </PlotArea> <ChartTitle> <Appearance Dimensions-Margins="3%, 1px, 1px, 6%"> <FillStyle MainColor=""> </FillStyle> </Appearance> <TextBlock Text=""> <Appearance TextProperties-Color="86, 88, 89" TextProperties-Font="Verdana, 22px"> </Appearance> </TextBlock> </ChartTitle> </telerik:RadChart>if (!IsPostBack) { // select a date for which I want to show data DateTime ds = RadDatePickerStart.SelectedDate.Value; RadChart2.PlotArea.XAxis.AutoScale = false; RadChart2.PlotArea.XAxis.IsZeroBased = false; RadChart2.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortTime; RadChart2.PlotArea.XAxis.Appearance.MinorTick.Visible = false; RadChart2.PlotArea.XAxis.Appearance.CustomFormat = "HH"; RadChart2.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -90; RadChart2.PlotArea.XAxis.AddRange(RadDatePickerStart.SelectedDate.Value.ToOADate(), RadDatePickerStart.SelectedDate.Value.AddHours(24).ToOADate(), 0.004);}private void GridItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "MyCommand") { this.mycommand = true; this.currentSelection = int.Parse(((GridDataItem)(e.Item)).EditFormItem.ParentItem[Grid.IdColumnUniqueName].Text); this.parentItem = ((GridDataItem)(e.Item)).EditFormItem.ParentItem; } }Grid.MasterTableView.IsItemInserted = true;Grid.Rebind();