<
div
class
=
"row"
>
Uploaded between
<
telerik:RadDatePicker
ID
=
"rdpFrom"
runat
=
"server"
DateInput-AutoPostBack
=
"true"
></
telerik:RadDatePicker
> and
<
telerik:RadDatePicker
ID
=
"rdpTo"
runat
=
"server"
DateInput-AutoPostBack
=
"true"
></
telerik:RadDatePicker
>
</
div
>
<
telerik:RadGrid
ID
=
"rgMemberUploads"
runat
=
"server"
DataSourceID
=
"odsMemberUploads"
AllowPaging
=
"true"
PageSize
=
"10"
>
<
MasterTableView
AutoGenerateColumns
=
"false"
DataSourceID
=
"odsMemberUploads"
DataKeyNames
=
"ID"
>
<
DetailTables
>
<
telerik:GridTableView
AutoGenerateColumns
=
"false"
NoMasterRecordsText
=
"No master record"
NoDetailRecordsText
=
"No invalid records"
DataSourceID
=
"odsMemberFileRecords"
DataKeyNames
=
"ID"
HierarchyLoadMode
=
"ServerOnDemand"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"FileID"
MasterKeyField
=
"ID"
/>
</
ParentTableRelation
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"RecordIndex"
ReadOnly
=
"true"
HeaderText
=
"Row"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ErrorMessage"
ReadOnly
=
"true"
HeaderText
=
"Error Message"
></
telerik:GridBoundColumn
>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
<
Columns
>
<
telerik:GridDateTimeColumn
DataField
=
"UploadedFile.UploadedDate"
ReadOnly
=
"true"
HeaderText
=
"Uploaded On"
></
telerik:GridDateTimeColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Uploaded By"
>
<
ItemTemplate
>
<%# Eval("UploadedFile.UploadedByNT")?? Eval("UploadedFile.UploadedByName") %>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"UploadedFile.Filename"
ReadOnly
=
"true"
HeaderText
=
"File"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"UploadedFile.Status"
ReadOnly
=
"true"
HeaderText
=
"Status"
></
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Error Details"
>
<
ItemTemplate
>
<
span
class
=
"errorMessage"
>
<%# Eval("UploadedFile.ErrorMessage") %>
</
span
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"UploadedFile.CompletedDate"
ReadOnly
=
"true"
HeaderText
=
"Completed On"
></
telerik:GridDateTimeColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:ObjectDataSource
ID
=
"odsMemberUploads"
runat
=
"server"
OldValuesParameterFormatString
=
"original_{0}"
SelectMethod
=
"Search"
TypeName
=
"File"
>
<
SelectParameters
>
<
asp:ControlParameter
ControlID
=
"rdpFrom"
Name
=
"uploadedFrom"
PropertyName
=
"SelectedDate"
Type
=
"DateTime"
/>
<
asp:ControlParameter
ControlID
=
"rdpTo"
Name
=
"uploadedTo"
PropertyName
=
"SelectedDate"
Type
=
"DateTime"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
<
asp:ObjectDataSource
ID
=
"odsMemberFileRecords"
runat
=
"server"
OldValuesParameterFormatString
=
"original_{0}"
SelectMethod
=
"SearchRecords"
TypeName
=
"File"
>
<
SelectParameters
>
<
asp:Parameter
Name
=
"FileID"
DbType
=
"Guid"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
<
telerik:GridTableView
DataSource='<%#Eval("UploadedFile.Records")%>'>
Hi,
We using Telerik control RAD control for ASP.NET v2010.3.1109.40. We are facing
a critical issue with the RADCHART control. When we enable the scroll bar, few
of the graphs are not even visible. But when scroll bar is disabled, all the
bar graphs comes up fine. Please have alook at the code snippet below and
screen shots for better understanding.Your
prompt help would be appreciated.
Thanks,
Code Snippet :
<telerik:RadChart ID="TaxYearsChart"
runat="server" Width="350px"
SeriesOrientation="Horizontal"
Legend-Appearance-Visible="false" AutoLayout="true"
ChartTitle-TextBlock-Text="Year by Tax Type">
<ClientSettings EnableZoom="false"
ScrollMode="XOnly" XScale="2" /> <!--If
we add this line the scroll bar comes but few bar graphs line just blow
off.-->
<Appearance FillStyle-MainColor="White">
<Border Color="DarkGray" Visible="true" />
</Appearance>
<PlotArea EmptySeriesMessage-TextBlock-Text="No Audit Cycles to
Display"
EmptySeriesMessage-TextBlock-Appearance-TextProperties-Color="White">
<YAxis AxisMode="Extended" AutoScale="false"
Step="5" MinValue="0">
</YAxis>
<Appearance FillStyle-MainColor="#BBCFE7"
FillStyle-FillType="Solid" Dimensions-AutoSize="true">
</Appearance>
</PlotArea>
<Appearance FillStyle-MainColor="White">
</Appearance>
</telerik:RadChart>
<telerik:RadGrid AllowSorting="True" ID="grdTrackRedemptions" AllowPaging="True"
runat="server" Skin="Office2007" AllowMultiRowEdit="false" GridLines="None" AutoGenerateColumns="False"
ShowDesignTimeSmartTagMessage="False" Width="800px" AllowMultiRowSelection="true"
PageSize="50" OnNeedDataSource="grdTrackRedemptions_NeedDataSource" OnPageIndexChanged="grdTrackRedemptions_PageIndexChanged"
OnSortCommand="grdTrackRedemptions_SortCommand" OnItemDataBound="grdTrackRedemptions_ItemDataBound">
<MasterTableView TableLayout="Auto" DataKeyNames="couponid,Id" CommandItemDisplay="Top"
ClientDataKeyNames="couponid,Id"> <Columns>
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" HeaderText="Redeemed">
<ItemTemplate>
<asp:CheckBox ID="chk_redeemption" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True"
runat="server"></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="couponid" HeaderText="Cid" Display="False" SortExpression="couponid"
UniqueName="couponid">
<HeaderStyle Width="0px" />
</telerik:GridBoundColumn></Columns>
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Each click on the check box, i need to get the value of row ( ie, couponid) ?
Post backing occours when clicking on the check box ( ToggleRowSelection fires)
protected void ToggleRowSelection(object sender, EventArgs e)
{
in this function how to get the grid's selected row value.
}
Thanks,
<dnn:RadPanelbar runat="server" id= "dnnPanelbar_sli" ShowOnlyCurrent="RootItem" Skin="sli" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" /> |
protected
void
list_ItemsRequested(
object
o, RadComboBoxItemsRequestedEventArgs e)
{
Current_rcb_Width = 0;
if
(((RadComboBox)o).DataTextField ==
"nazwa_"
)
((RadComboBox)o).DataSource = GetDataTable(
"SELECT DISTINCT "
+ ((RadComboBox)o).DataTextField + jezyk +
" as nazwa_ FROM katalog_produktow WHERE "
+ ((RadComboBox)o).DataTextField + jezyk +
" LIKE '"
+ e.Text +
"%' order by "
+ ((RadComboBox)o).DataTextField + jezyk);
else
((RadComboBox)o).DataSource = GetDataTable(
"SELECT DISTINCT "
+ ((RadComboBox)o).DataTextField +
" FROM katalog_produktow WHERE "
+ ((RadComboBox)o).DataTextField +
" LIKE '"
+ e.Text +
"%' order by "
+ ((RadComboBox)o).DataTextField);
var cbox = ((RadComboBox)o);
int
MaxWidth = 0;
foreach
(DataRow row
in
(((RadComboBox)o).DataSource
as
DataTable).Rows)
{
int
Width = TextWidth(row[((RadComboBox)o).DataTextField].ToString());
if
(Width > MaxWidth)
{
MaxWidth = Width;
}
}
cbox.DropDownWidth =
new
Unit(MaxWidth);
((RadComboBox)o).DataBind();
}
<
telerik:RadComboBox
ID
=
"rcbnazwa"
runat
=
"server"
ShowToggleImage
=
"false"
EnableLoadOnDemand
=
"true"
OnItemsRequested
=
"list_ItemsRequested"
OnDataBound
=
"RadComboBox1_DataBound"
MarkFirstMatch
=
"true"
Skin
=
"Office2007"
OnSelectedIndexChanged
=
"rcbContinents_SelectedIndexChanged"
DataTextField
=
"nazwa_"
Font-Size
=
"X-Small"
DataValueField
=
"nazwa_"
OnPreRender
=
"rcbContinents_PreRender"
AutoPostBack
=
"true"
Width
=
"100%"
>
</
telerik:RadComboBox
>