Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 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
290 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
318 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
152 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
166 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
188 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
181 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
77 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
1 answer
110 views

I am attempting to populate 2 grids with simple server-side databinding to Data tables using the OnSelectedIndexChange event from another grid. I am able to verify that the data is bound to the grids. However, the grids will not display any data. No error messages are thrown.

 Thank you in advance for any help provided.

Grid Markup:

  <%-- ** This is the main Grid to pouplate "GridDiag" and "GridServices" OnSelectedIndexChange event.  --%>
                  <telerik:RadGrid ID="GridClaims" runat="server" AutoGenerateColumns="false" Width="100%" CssClass="Gridheight3" AllowPaging="false" ShowGroupPanel="false" OnSelectedIndexChanged="GridClaims_SelectedIndexChanged">
                      <ClientSettings Scrolling-AllowScroll="true" Resizing-AllowColumnResize="true" Selecting-AllowRowSelect="true" EnablePostBackOnRowClick="true">              
                      </ClientSettings>
                      <MasterTableView Name="Claims" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="9pt" ItemStyle-Font-Size="9pt" HeaderStyle-Width="200px"> 
                          <Columns>
                              <telerik:GridBoundColumn DataField="UM_Row_ID" UniqueName="UM_Row_ID" DataType="System.Int32" Visible="false"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Claim_Number" UniqueName="Claim_Number" DataType="System.String" HeaderText="Claim ID" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="First_DOS" UniqueName="First_DOS" DataType="System.DateTime" DataFormatString="{0:d}" HeaderText="Start Date" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Last_DOS" UniqueName="Last_DOS" DataType="System.DateTime" DataFormatString="{0:d}" HeaderText="End Date" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Form_Type" UniqueName="Form_Type"  DataType="System.String" HeaderText="Form" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Claim_Status" UniqueName="Claim_Status" DataType="System.String" HeaderText="Status" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Clean_Date" UniqueName="Clean_Date" DataType="System.DateTime" DataFormatString="{0:d}" HeaderText="Clean Date" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Primary_Diag_Code" UniqueName="Primary_Diag_Code" DataType="System.String" HeaderText="Primary Diag" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Diag_Description" UniqueName="Diag_Description" DataType="System.String" HeaderText="Description" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Pay_to_Provider" UniqueName="Pay_to_Provider" DataType="System.String" HeaderText="Pay To" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Practitioner" UniqueName="Practitioner" DataType="System.String" HeaderText="Practitioner" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn DataField="Total_Amount_Billed" UniqueName="Total_Amount_Billed" DataType="System.String" HeaderText="Total Billed" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Total_Amount_Paid" UniqueName="Total_Amount_Paid" DataType="System.String" HeaderText="Total Paid"  ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                              <telerik:GridBoundColumn DataField="Payment_Date" UniqueName="Payment_Date" DataType="System.DateTime" DataFormatString="{0:d}" HeaderText="Date Paid" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn> 
                              <telerik:GridBoundColumn DataField="Approve_Deny_Date" UniqueName="Approve_Deny_Date" DataType="System.DateTime" DataFormatString="{0:d}" HeaderText="Status Date" ItemStyle-Font-Size="9pt"></telerik:GridBoundColumn>
                          </Columns>
                      </MasterTableView>
                  </telerik:RadGrid>

 <telerik:RadGrid ID="GridServices" runat="server" AutoGenerateColumns="false" Width="100%" CssClass="Gridheight4" AllowPaging="false" ShowGroupPanel="false">
                            <ClientSettings Scrolling-AllowScroll="true"> 
                                 <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="false" AllowColumnResize="True"></Resizing>
                            </ClientSettings>
                              <MasterTableView Name="Services" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="9pt" HeaderStyle-Width="200px" ItemStyle-Font-Size="9pt">
                                  <Columns>
                                      <telerik:GridBoundColumn DataField="UM_Row_ID" UniqueName="UM_Row_ID" DataType="System.Int32" Visible="false"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Claim_Number" UniqueName="Claim_Number" DataType="System.String" Visible="false"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Claim_Line" UniqueName="Claim_Line" DataType="System.Int32" HeaderText="Line #" HeaderStyle-Width="70px"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Service_Code" UniqueName="Service_Code" DataType="System.String" HeaderText="Svc Code"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Code_Description" UniqueName="Code_Description" DataType="System.String" HeaderText="Description"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Status" UniqueName="Status" DataType="System.String" HeaderText="Status"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="First_DOS" UniqueName="First_DOS" DataType="System.DateTime" DataFormatString="{0:d}" HeaderText="FDOS"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Last_DOS" UniqueName="Last_DOS" DataType="System.DateTime" DataFormatString="{0:d}" HeaderText="LDOS"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="POS_Code" UniqueName="POS_Code" DataType="System.String" HeaderText="POS" HeaderStyle-Width="70px"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Copay" UniqueName="Copay" DataType="System.String" HeaderText="Copay"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Amount_Billed" UniqueName="Amount_Billed" DataType="System.String" HeaderText="Charges"></telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn DataField="Amount_Paid" UniqueName="Amount_Paid" DataType="System.String" HeaderText="Paid"></telerik:GridBoundColumn>
                                  </Columns>
                              </MasterTableView>
                        </telerik:RadGrid>


<telerik:RadGrid ID="GridDiag" runat="server" AutoGenerateColumns="false" Width="100%" CssClass="Gridheight4" AllowPaging="false" ShowGroupPanel="false">
                            <ClientSettings Scrolling-AllowScroll="true">  
                                 <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="false" AllowColumnResize="True"></Resizing>
                            </ClientSettings>
                            <MasterTableView Name="Diags" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="9pt" HeaderStyle-Width="200px" ItemStyle-Font-Size="9pt">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="UM_Row_ID" UniqueName="UM_Row_ID" DataType="System.Int32" Visible="false"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Claim_Number" UniqueName="Claim_Number" DataType="System.String" Visible="false"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Diag_Number" UniqueName="Diag_Number" DataType="System.Int32" HeaderText="Sequence" HeaderStyle-Width="75px"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Diag_Code" UniqueName="Diag_Code" DataType="System.String" HeaderText="Code"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Description" UniqueName="Description" DataType="System.String" HeaderText="Description"></telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="Type" UniqueName="Type" DataType="System.String" HeaderText="Type"></telerik:GridBoundColumn> 
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>

VB.NET:

 Protected Sub GridClaims_SelectedIndexChanged(sender As Object, e As EventArgs) Handles GridClaims.SelectedIndexChanged
        Dim items As GridDataItem() = GridClaims.MasterTableView.GetSelectedItems()
        Dim ClaimID As String = items(0).Cells.Item(3).Text
        If ClaimID.Length > 9 Then
            FillDiagGrid(ClaimID)
            FillServiceGrid(ClaimID)
        End If
    End Sub

 Protected Sub FillClaimsGrid()
        'Binds the Claims Header Grid This works and displays fine
        If strSource = "UM" Then
            If dt_UM_Claims.Rows.Count > 0 Then
                GridClaims.DataSource = Nothing
                GridClaims.MasterTableView.DataSource = Nothing
                GridClaims.MasterTableView.DataSource = dt_UM_Claims.DefaultView
                GridClaims.DataSource = dt_UM_Claims.DefaultView
                GridClaims.MasterTableView.DataBind()
                GridClaims.DataBind()
            End If
End sub

Protected Sub FillDiagGrid(ByVal strClaimID As String)
        'Data is binding but does not display
        Dim vwDiag As DataView = dt_UM_Claim_Diagnosis.DefaultView
        Dim strRecord As String = txtRecordID.Text
        Dim strFilter As String = "Claim_Number = '" & strClaimID & "'"
        vwDiag.RowFilter = strFilter
        vwDiag.RowStateFilter = DataViewRowState.CurrentRows

        GridDiag.DataSource = Nothing
        GridDiag.MasterTableView.DataSource = Nothing
        GridDiag.MasterTableView.DataSource = vwDiag.Table.DefaultView
        GridDiag.MasterTableView.DataBind()
        GridDiag.DataSource = vwDiag.Table.DefaultView
        GridDiag.DataBind()
    End Sub

Protected Sub FillServiceGrid(ByVal strClaimID As String)
        'Data is binding but does not display
        Dim tblView As DataView = dt_UM_Claim_Services.DefaultView
        Dim strFilter As String = "Claim_Number = '" & strClaimID & "'"
        tblView.RowFilter = strFilter
        tblView.RowStateFilter = DataViewRowState.CurrentRows

        GridServices.DataSource = Nothing
        GridServices.MasterTableView.DataSource = Nothing
        GridServices.MasterTableView.DataSource = tblView.Table.DefaultView
        GridServices.MasterTableView.DataBind()
        GridServices.DataSource = tblView.Table.DefaultView
        GridServices.DataBind()
    End Sub

 

Attila Antal
Telerik team
 answered on 14 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?