Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
270 views

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>  

 

Attila Antal
Telerik team
 answered on 21 Nov 2022
1 answer
227 views

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>

Attila Antal
Telerik team
 answered on 21 Nov 2022
1 answer
104 views

hi,

Does the RadNavigation  have  ExpandDirection  ? the Navigation  in bottom at the page  

And how to change RadNavigation  ExpandDirection  = up

Thanks

Rumen
Telerik team
 answered on 21 Nov 2022
4 answers
1.9K+ views
Hello,

I am using telerik latest relase build. I want to change the radgrid alternate row colors but there no change even though I changed the properties as suggested in the demo.

<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>


I want set the style in mush more detail. May be using some CSS class will be helpful.
JeffSM
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 19 Nov 2022
1 answer
280 views

<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

}

Attila Antal
Telerik team
 updated answer on 18 Nov 2022
2 answers
304 views

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.

Rumen
Telerik team
 answered on 18 Nov 2022
1 answer
141 views

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

 
Valentin Dragnev
Telerik team
 answered on 17 Nov 2022
1 answer
159 views

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();
    }

Doncho
Telerik team
 answered on 17 Nov 2022
0 answers
182 views

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?

Jonathan
Top achievements
Rank 1
Iron
 asked on 15 Nov 2022
1 answer
171 views
Good day,

I am new to development with Telerik. You have a client where you have a website that has been developed with Telerik. The library used is Telerik.Web.UI version 2015.1.225.35

Explained this, I have 2 queries:
1. Telerik.Web.UI library version 2015.1.225.35 allows to use radlistbox to implement everything associated with listbox ? From what I have reviewed the documentation I understand that yes. If the answer is yes, then you can answer question 2.
2. Can you please give me examples of how to create a listbox using radlistbox since in my case what I want to do is create 2 listboxes and pass the elements from one listbox to another through a button.

I thank you in advance for the help provided.
Rumen
Telerik team
 answered on 15 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?