Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
324 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
142 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
2.1K+ 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
342 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
390 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
353 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
236 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
235 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
262 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
0 answers
120 views

Hi, I'm having an issue where the edit form is transparent in lightweight mode so it looks very odd all you can see is text, I'm using lightweight mode as I have the year view in use and that requires lightweight mode, in classic rendermode I can see the edit form it's just when I change to lightweight for some reason it turn transparent does anyone know why?

Thanks

Stuart
Top achievements
Rank 1
 asked on 14 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?