I'm trying to get the RadGrid control to display the FilterType correctly. The attached image shows the current results where the filter dialog width is too small.
I have tried the various FilterType settings and am current set to the "Classic" type. The sample project was created in VS2013 as a standard webforms project and then had the upgrade wizard applied to use the Telerik web controls.
Also looked at the demo projects for excel type filtering, but wasn't sure of the style sheet setting differences. Finally, I tried checking the header context popup for the filter, but I didn't know if a CSS style tag needed to be overridden in the page. The DOM seemed to show the internal iframe within the div having a width size of around 170px.
Here is a sample of the code. Pretty straightforward code. Thanks for any help, Steve H
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableAJAX="true">
<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" AllowFilteringByColumn="true" runat="server" FilterType="Classic" EnableHeaderContextMenu="true"
EnableHeaderContextFilterMenu="true" AllowPaging="True" PagerStyle-AlwaysVisible="true" DataSourceID="SqlDataSource1" AllowSorting="true" GroupingEnabled="false">
<MasterTableView DataSourceID="SqlDataSource1" AutoGenerateColumns="False" DataKeyNames="ProjectModNumber,ProjectModRowId">
<Columns>
<telerik:GridBoundColumn DataField="ProjectModNumber" FilterControlAltText="Filter ProjectModNumber column" HeaderText="Project Mod #" ReadOnly="True" SortExpression="ProjectModNumber" UniqueName="ProjectModNumber">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ProjectModRowId" DataType="System.Int32" Display="False" FilterControlAltText="Filter ProjectModRowId column" HeaderText="ProjectModRowId" ReadOnly="True" SortExpression="ProjectModRowId" UniqueName="ProjectModRowId" Visible="False">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RoleNameAE" FilterControlAltText="Filter RoleNameAE column" HeaderText="AE Name" ReadOnly="True" SortExpression="RoleNameAE" UniqueName="RoleNameAE">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
</telerik:RadAjaxPanel>
Is it possible to add a label next to a GridBoundColumn, similar to what I want on the image below that I've modified using inspect element?
The restriction is that I am not using nor going to use FormEditTemplate.
My current code is this, but I cannot find a way to insert label next to it:
<telerik:GridBoundColumn DataField="Email" FilterControlAltText="Filter Email column" HeaderText="Email" SortExpression="Email" UniqueName="Email" ColumnEditorID="Email">
<HeaderStyle Width="250px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Name" SortExpression="Name" UniqueName="Name" ColumnEditorID="Name">
<HeaderStyle Width="250px" />
</telerik:GridBoundColumn>
hi,
Does the RadNavigation have ExpandDirection ? the Navigation in bottom at the page
And how to change RadNavigation ExpandDirection = up
Thanks
<
telerik:RadGrid
ID
=
"rg_CSMD_Backlog_By_Status_FL"
runat
=
"server"
AllowPaging
=
"false"
PageSize
=
"15"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
GridLines
=
"None"
OnNeedDataSource
=
"rg_CSMD_Backlog_By_Status_FL_NeedDataSource"
BorderColor
=
"White"
BorderStyle
=
"None"
Height
=
"99.9%"
Width
=
"99.9%"
OnItemDataBound
=
"rg_CSMD_Backlog_By_Status_FL_ItemDataBound"
OnItemCommand
=
"rg_CSMD_Backlog_By_Status_FL_ItemCommand"
ShowGroupPanel
=
"false"
ShowFooter
=
"false"
>
<
AlternatingItemStyle
BackColor
=
"AliceBlue"
/>
<
AlternatingItemStyle
BorderWidth
=
"1px"
/>
<
ItemStyle
BackColor
=
"White"
/>
<
ItemStyle
BorderWidth
=
"1px"
/>
<
MasterTableView
CommandItemDisplay
=
"None"
DataKeyNames
=
"OWNER"
GroupLoadMode
=
"Client"
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldAlias
=
"GroupBy"
FieldName
=
"GroupBy"
/>
</
SelectFields
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"GroupBy"
SortOrder
=
"Descending"
/>
</
GroupByFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"OWNER"
HeaderText
=
"OWNER"
DataFormatString="<nobr>{0}</
nobr
>"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small" HeaderStyle-Width="50%">
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
Aggregate
=
"Sum"
DataField
=
"CASES"
HeaderText
=
"CASES"
DataFormatString="<nobr>{0}</
nobr
>"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AGING"
HeaderText
=
"AGING"
DataFormatString="<nobr>{0}</
nobr
>"
HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="X-Small">
</
telerik:GridBoundColumn
>
</
Columns
>
<
PagerStyle
Mode
=
"NextPrev"
></
PagerStyle
>
</
MasterTableView
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
AllowGroupExpandCollapse
=
"true"
>
<
Resizing
AllowColumnResize
=
"true"
/>
<
Selecting
AllowRowSelect
=
"true"
/>
<
Scrolling
AllowScroll
=
"false"
UseStaticHeaders
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
<telerik:RadComboBox ID="lblPayrollNumber" runat="server" AutoPostBack="true" Style="cursor: pointer;"
EnableVirtualScrolling="true" Skin="Outlook" OnSelectedIndexChanged="lblPayrollNumber_SelectedIndexChanged">
<Items>
<telerik:RadComboBoxItem runat="server" Text="SAP Contract Number:" Value="1"></telerik:RadComboBoxItem>
<telerik:RadComboBoxItem runat="server" Text="Existing WBS Number:" Value="2"></telerik:RadComboBoxItem>
<telerik:RadComboBoxItem runat="server" Text="Request ID:" Value="3"></telerik:RadComboBoxItem>
</Items>
</telerik:RadComboBox>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Code behind
protected void lblPayrollNumber_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
var val1 = e.Value; Always getting value 1 doesn't matter which one you selected
var text1 = e.Value; getting right text
if (lblPayrollNumber.SelectedValue == "1") Always getting value 1 doesn't matter which one you selected
if (lblPayrollNumber.SelectedValue == "2") Always getting value 1 doesn't matter which one you selected
if (lblPayrollNumber.SelectedValue == "3") Always getting value 1 doesn't matter which one you selected
}
Where can I download Telerik.Web.UI_2011_2_712_Dev.msi ? I see it in my DL history but no place to actually download it,.
found it sorry... each product on the DL page has all previous versions.
Is there a way to change the order of the different views in the header, I edited the timeline view to show 2 weeks and want it to be displayed after "week" and before "month" but right now it's "day", "week", "month", "year" ,"bi-weekly". As you can see it's at the end which looks odd since I'd rather have it in order from smallest view to biggest.
Thanks
I need to enable/disable a checkbox that is in edit mode. I have tried in PreRender and ItemDatabound to FindControl but have not found a way. I do have access to the data for the decision of enable/disable.
Any help is appreciated
<telerik:RadGrid ID="RadGridUserRole" DataSourceID="ObjectDataSourceUserRole" AllowMultiRowEdit="True"
OnPreRender="RadGridUserRole_PreRender" runat="server" Width="205px" AutoGenerateColumns="False"
GridLines="None">
<MasterTableView CommandItemDisplay="none" EditMode="InPlace" AutoGenerateColumns="false"
Width='100%' DataKeyNames="RoleName">
<Columns>
<telerik:GridTemplateColumn HeaderText="Role" HeaderStyle-Width='65px' UniqueName="Role">
<EditItemTemplate>
<asp:CheckBox ID="CheckBoxRole" Checked='<%# Eval("UserInRole") %>' Text='<%# Eval("RoleName") %>' runat="server" />
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
public void RadGridUserRole_PreRender(object sender, System.EventArgs e)
{
foreach (GridItem item in ((RadGrid)sender).MasterTableView.Items)
{
if (item is GridEditableItem)
{
GridEditableItem editableItem = (GridDataItem)item;
editableItem.Edit = true;
}
}
((RadGrid)sender).Rebind();
}
I am trying to capture a persons ethnicity with a RadCheckBoxList control.
I have the RadCheckBoxList inside a RadDataForm. The RadDataForm is bound to an object data source (retrieves person records), and the RadCheckBosList is also bound to another object data source (retrieves all available ethnicities).
Where I am struggling is when you want to view an existing person record. How to I get the ethnicity values that were previously selected to "pre-select" the correct item within the RadCheckBoxList?