Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
307 views

Please refer to the attached image of what i hope to achieve with using a radgrid, 

Basically I want to show a list of values underneath the details of the record i'm looking at.
my code is as follows: 

<telerik:RadGrid runat="server" DataSourceID="APPLICATIONS_DATASOURCE" ID="RADGRID1" OnDetailTableDataBind="MYMETHOD">
                <MasterTableView AutoGenerateColumns="false" DataKeyNames="DATA_ID">
                    <DetailTables>
                        <telerik:GridTableView Name="Contacts" DataKeyNames="CONTACT_ID" AutoGenerateColumns="true">
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridBoundColumn DataField="TITLE" HeaderText="Title"></telerik:GridBoundColumn>
                        
                        <telerik:GridBoundColumn DataField="DATA" HeaderText="Data"></telerik:GridBoundColumn>
                        
                        <telerik:GridBoundColumn DataField="DATE" HeaderText="Date"></telerik:GridBoundColumn>
                        
                    </Columns>
                    <NestedViewTemplate>
                        <div class="row">
                            <div class="span11">
                                <h3>
                                    <asp:Literal ID="Literal1" runat="server" Text='<%#eval("TITLE") %>'></asp:Literal>                                            </h3>
                                <h5>
                                    <asp:Literal ID="Literal2" runat="server" Text='<%#eval("OWNER") %>'></asp:Literal>                                            </h5>
                            </div>
                            <div class="span11">
                                <p>
                                    <asp:Literal ID="Literal3" runat="server" Text='<%#eval("ALLDETAILS") %>'></asp:Literal></p>
                            </div>
                            <div class="span11">
                            </div>
                        </div>
                    </NestedViewTemplate>
                </MasterTableView>
            </telerik:RadGrid>

As the DetailsTable has N number of elements, i have it using a generated datatable on bind to fill with data, and the nestedview can be split to a seperate datasource if need be, but currently is using the radgrid datasource (sqldatasource).

Is there a way to accomplish a nestedview AND a detailsTable on the same hierarchical level in a Grid that i might have missed ?

Eyup
Telerik team
 answered on 23 Jun 2016
1 answer
85 views
Hi, 
I have a problem with RadGrid with Persian Language. 
In Persian there is 2 types of first letter like < آ > and < ا >.
The first type < Ø¢ > should be prior when sorting(upper in ascending sort). But in action, < ا > stands upper than < Ø¢ >.
I use Persian_100_CI_AS Collation.
Same query in SQL server returns fine order.
Eyup
Telerik team
 answered on 23 Jun 2016
9 answers
398 views
We are setting the selected menu root from code to help show end users what menu item they are on.
code (code used on all child menus of Parent)

        If Not Page.IsPostBack Then
            Dim rMnu As Telerik.Web.UI.RadMenu
            rMnu = CType(Master.FindControl("FLSRadMenu"), Telerik.Web.UI.RadMenu)
            If Not rMnu Is Nothing Then
                rMnu.Items(1).Selected = True
            End If
        End If

Issue: a user can select another parent (root) menu item and this becomes "selected", when really the meny item set in code is still selected.

I want to be able to disable clicking on all root menu items.

Thanks in advance
Keith
Top achievements
Rank 1
 answered on 22 Jun 2016
2 answers
166 views

I have a RadTextBox field used as a password entry field.  Furthermore, I'm using the built-in password strength indicator for this field as follows:

    PasswordStrengthSettings  ShowIndicator="true"

I need for the strength text to be culturally sensitive but I'm not seeing a Localization attribute to work with.  How can this text be set?

 

Thanks in advance.

Maria Ilieva
Telerik team
 answered on 22 Jun 2016
1 answer
139 views

Hello,

I try to bind an HtmlChart with a Custom List<> of object, like so:

 

--------------------------- C#:

        protected void Page_Load(object sender, EventArgs e)
        {

            RadHtmlChart_LineSeries_Avec_Objet.DataSource = oGetData();
            RadHtmlChart_LineSeries_Avec_Objet.DataBind();

        }

        public class monObjet
        {
            int ID { get; set; }
            decimal ValuePumpA { get; set; }
            decimal ValuePumpB { get; set; }
            decimal ValuePumpC { get; set; }
            decimal ValuePumpD { get; set; }


            public monObjet(int id, decimal VPumpA, decimal VPumpB, decimal VPumpC, decimal VPumpD)
            {
                ID = id;
                ValuePumpA = VPumpA;
                ValuePumpB = VPumpB;
                ValuePumpC = VPumpC;
                ValuePumpD = VPumpD;
            }
        }

        public List<monObjet> oGetData()
        {
            List<monObjet> returnList = new List<monObjet>();
            for (int i = 0; i < 12; i++)
            {
                returnList.Add(new monObjet(i, i+1, i+2, i+3, i+4));
            }
            return returnList;
        }

}

 

--------------------------- ASPX:

               <telerik:RadHtmlChart runat="server" ID="RadHtmlChart_LineSeries_Avec_Objet" Width="1000px" Height="300px" ChartTitle-Text="HtmlChart sur List<objet>">
                    <PlotArea>
                        <Series>
                            <telerik:LineSeries Name="Pump A" DataFieldY="ValuePumpA" ColorField="Yellow" >
                                <LabelsAppearance Visible="false"/>
                            </telerik:LineSeries>


                            <telerik:LineSeries Name="Pump B" DataFieldY="ValuePumpB" ColorField="Green" >
                                <LabelsAppearance Visible="false"/>
                            </telerik:LineSeries>


                            <telerik:LineSeries Name="Pump C" DataFieldY="ValuePumpC" ColorField="Red" >
                                <LabelsAppearance Visible="false"/>
                            </telerik:LineSeries>


                            <telerik:LineSeries Name="Pump D" DataFieldY="ValuePumpD" ColorField="Black">
                                <LineAppearance LineStyle="Smooth" Width="3" />
                                <MarkersAppearance BackgroundColor="Red" MarkersType="Circle" Visible="true"/>
                                <LabelsAppearance Visible="false"></LabelsAppearance>
                            </telerik:LineSeries>
                        </Series>


                        <YAxis>
                            <LabelsAppearance DataFormatString="{0}"></LabelsAppearance>
                        </YAxis>


                        <XAxis>
                            <Items>
                                <telerik:AxisItem LabelText="January"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="Februrary"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="March"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="April"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="May"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="June"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="July"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="August"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="September"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="October"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="November"></telerik:AxisItem>
                                <telerik:AxisItem LabelText="December"></telerik:AxisItem>
                            </Items>
                        </XAxis>
                    </PlotArea>
                    <Legend>
                        <Appearance Visible="true"></Appearance>
                    </Legend>
                </telerik:RadHtmlChart>

 

But that doesn't work.

Why ?

Thanks for your suggestions

 

Pierre
Top achievements
Rank 1
 answered on 22 Jun 2016
31 answers
432 views

Select a date does not change the month.
Because the selected month is being received to date.

Live Example is the same.

Locale it because?
This is South Korea.

Maria Ilieva
Telerik team
 answered on 22 Jun 2016
18 answers
141 views

I know it sounds strange, but seems Progress Area forces my process to repeat endlessly.

It happens after long run only and only in Internet Explorer.

Any recommendations?

Thank you

Veselin Tsvetanov
Telerik team
 answered on 22 Jun 2016
7 answers
479 views
Hello Telerik,

In my application I have RadComboBox on my RadWindow.
My RadWindow has common behavior like min,max,close,move.
Now, when I open radCombobox on RadWindow and without clicking anywhere on the page when I Minimize or Move RadWindow, the dropdown is not collapsing nor moving along with RadWindow.Instead It is getting stuck on the same place.

Also, When DropDown is open and when I try to close RadWindow,the dropdown will not collapse or not getting hide.The dropdown portion of RadCombo will be seen on the aspx page.

I am setting these properties for RadWindow.

 public RadWindow()
        {
            this.Behaviors = WindowBehaviors.Close | WindowBehaviors.Minimize | WindowBehaviors.Maximize | WindowBehaviors.Move;
            this.Modal = true;
            this.EnableShadow = true;
            this.VisibleStatusbar = false;
            this.ReloadOnShow = true;
            this.ShowContentDuringLoad = false;
            this.ShowOnTopWhenMaximized = false;
        }

Am I missing Something for RadComboBox?

I have attached the pic here for your reference.

Thanks in advance
Tina


Marin Bratanov
Telerik team
 answered on 22 Jun 2016
4 answers
151 views

Hi All,

Is there a way to adjust the order that items enter the more (hamburger) menu?  

At the moment they enter in the order that they appear in the list (complicated in my case because I am using a float right for some elements)

In the below example 1 is left floated while 2 - 6 are right floated

1           2 3 4 5 6

When creating them I have to add them in this sequence

5 4 3 2 

Because of that 2 is first into the more menu.  I would like the order of the more menu to be the same as the displayed order.  I suppose one way would be to work out a way to not need the right float and then they would shuffle into the more menu in the right order.

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 22 Jun 2016
1 answer
793 views

I have two grids, that when I try to filter or sort, I get the error Object Reference Not set to an instance of an object. It doesn't seem to make it back to the server side code, or at least not where I'm expecting, from as far as I can tell. I put breakpoints all over the place and none ever hit.

I've compared the markup for these grids to several others that are working and fail to see any difference. I should mention these are both on the same page inside of a RadTabPanel.

Here is the full text of the inner exception:

Inner exception message: Object reference not set to an instance of an object. Exception message: Exception of type 'System.Web.HttpUnhandledException' was thrown. [6/17/2016 4:30:54 PM] 
 
Error Details:
6/17/2016 4:30:54 PM...Inner Exception 
Exception Message: Object reference not set to an instance of an object.
Exception Stack: 
 at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument)
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Exception Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Exception Stack: 
 at System.Web.UI.Page.HandleError(Exception e)
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 at System.Web.UI.Page.ProcessRequest()
 at System.Web.UI.Page.ProcessRequest(HttpContext context)
 at ASP.pages_home_aspx.ProcessRequest(HttpContext context) in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\wtu\d747c192\fbb86567\App_Web_rfsuwzi4.1.cs:line 0
 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
 at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

 

Here the markup for the first Grid that fails:

<telerik:RadGrid ID="rgPendingAssignment"
    runat="server"
    MasterTableView-HeaderStyle-CssClass="radGridLargest"
    AllowPaging="True"
    AllowSorting="True"
    AutoGenerateColumns="False"
    CellSpacing="0"
    PageSize="25"
    ClientSettings-AllowColumnsReorder="false" ClientSettings-Resizing-AllowColumnResize="false" ClientSettings-Scrolling-UseStaticHeaders="true"
    EnableLinqExpressions="False"
    ExportSettings-ExportOnlyData="false" ExportSettings-IgnorePaging="true" ExportSettings-OpenInNewWindow="true" ExportSettings-HideStructureColumns="true"
    GridLines="None"
    GroupingSettings-CaseSensitive="false" MasterTableView-AllowMultiColumnSorting="false" MasterTableView-AllowNaturalSort="false" AllowFilteringByColumn="true" MasterTableView-CommandItemDisplay="Top"
    MasterTableView-CommandItemSettings-ShowAddNewRecordButton="false"
    MasterTableView-CommandItemSettings-ShowRefreshButton="false"
    MasterTableView-CommandItemSettings-ShowExportToCsvButton="false"
    MasterTableView-CommandItemSettings-ShowExportToExcelButton="true" ExportSettings-Excel-Format="Xlsx"
    MasterTableView-CommandItemSettings-ShowExportToPdfButton="true" ExportSettings-Pdf-AllowCopy="true" ExportSettings-Pdf-AllowPrinting="true" ExportSettings-Pdf-AllowModify="true"
    MasterTableView-CommandItemSettings-ShowExportToWordButton="true" ExportSettings-Word-Format="Docx"
    MasterTableView-PagerStyle-PagerTextFormat="{4} Page {0} of {1}, rows {2} to {3} of {5}"
    MasterTableView-PagerStyle-Position="TopAndBottom" MasterTableView-PagerStyle-PageButtonCount="10" MasterTableView-PagerStyle-EnableAllOptionInPagerComboBox="false"
    MasterTableView-TableLayout="Fixed">
    <MasterTableView>
        <SortExpressions>
            <telerik:GridSortExpression FieldName="SOLDIER" SortOrder="Ascending" />
        </SortExpressions>
        <NoRecordsTemplate>
            <asp:Label ID="Label1" Text="No Records Found" runat="server" />
        </NoRecordsTemplate>
        <Columns>
            <telerik:GridBoundColumn DataField="CaseId" UniqueName="CASEID" Display="false" />
            <telerik:GridHyperLinkColumn UniqueName="Soldier" HeaderText="Soldier" DataTextField="Soldier" AutoPostBackOnFilter="true"
                DataNavigateUrlFields="CASEID" DataNavigateUrlFormatString="~/CaseAssignment/{0}" ShowFilterIcon="false"  CurrentFilterFunction="Contains" DataType="System.String" />
            <telerik:GridBoundColumn UniqueName="SSN" HeaderText="SSN" DataField="SSN" ShowFilterIcon="false"
                DataType="System.String" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" />
            <telerik:GridBoundColumn UniqueName="losingWTU" HeaderText="Losing WTU" DataField="losingWTU" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
            <telerik:GridBoundColumn UniqueName="GAININGWTU" HeaderText="Gaining WTU" DataField="GAININGWTU" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
            <telerik:GridBoundColumn UniqueName="GAININGCOMPANY" HeaderText="Gaining Company" DataField="GAININGCOMPANY" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
            <telerik:GridBoundColumn UniqueName="AcceptedBy" HeaderText="Accepted By" DataField="AcceptedBy" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
            <telerik:GridDateTimeColumn UniqueName="AcceptedOn" HeaderText="Date Accepted" DataField="AcceptedOn" ShowFilterIcon="false"
                DataFormatString="{0:dd MMM yyyy}" DataType="System.DateTime" AutoPostBackOnFilter="true" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

The markup for the second grid that isn't working:

<telerik:RadGrid ID="rgTransfers"
    runat="server"
    OnItemCreated="rg_popup_ItemCreated"
    OnItemDataBound="rgTransfers_ItemDataBound"
    CssClass="radGridLargest"
    AllowPaging="True"
    AllowSorting="True"
    AutoGenerateColumns="False"
    CellSpacing="0"
    PageSize="25"
    ClientSettings-AllowColumnsReorder="false" ClientSettings-Resizing-AllowColumnResize="true" ClientSettings-Scrolling-UseStaticHeaders="true"
    EnableLinqExpressions="False"
    ExportSettings-ExportOnlyData="false" ExportSettings-IgnorePaging="true" ExportSettings-OpenInNewWindow="true" ExportSettings-HideStructureColumns="true"
    GridLines="None"
    GroupingSettings-CaseSensitive="false" MasterTableView-AllowMultiColumnSorting="false" MasterTableView-AllowNaturalSort="false" AllowFilteringByColumn="true" MasterTableView-CommandItemDisplay="Top"
    MasterTableView-CommandItemSettings-ShowAddNewRecordButton="false"
    MasterTableView-CommandItemSettings-ShowRefreshButton="false"
    MasterTableView-CommandItemSettings-ShowExportToCsvButton="false"
    MasterTableView-CommandItemSettings-ShowExportToExcelButton="true" ExportSettings-Excel-Format="Xlsx"
    MasterTableView-CommandItemSettings-ShowExportToPdfButton="true" ExportSettings-Pdf-AllowCopy="true" ExportSettings-Pdf-AllowPrinting="true" ExportSettings-Pdf-AllowModify="true"
    MasterTableView-CommandItemSettings-ShowExportToWordButton="true" ExportSettings-Word-Format="Docx"
    MasterTableView-PagerStyle-PagerTextFormat="{4} Page {0} of {1}, rows {2} to {3} of {5}"
    MasterTableView-PagerStyle-Position="TopAndBottom" MasterTableView-PagerStyle-PageButtonCount="10" MasterTableView-PagerStyle-EnableAllOptionInPagerComboBox="false"
    MasterTableView-TableLayout="Fixed">
    <MasterTableView >
        <SortExpressions>
            <telerik:GridSortExpression FieldName="SOLDIER" SortOrder="Ascending" />
        </SortExpressions>
        <NoRecordsTemplate>
            <asp:Label ID="Label1" Text="No Records Found" runat="server" />
        </NoRecordsTemplate>
        <Columns>
            <telerik:GridTemplateColumn UniqueName="SELECTACTION" ShowFilterIcon="false" DataField="CASEID"
                SortExpression="CASEID" HeaderText="Select Action" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
                HeaderStyle-Width="120px">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlSelectAction" runat="server">
                        <asp:ListItem Text="--Select Action--" Value="" />
                        <asp:ListItem Text="Accept Transfer" Value="ACCEPT" />
                        <asp:ListItem Text="Cancel Transfer" Value="CANCEL" />
                    </asp:DropDownList>
                    <asp:HiddenField ID="tranferCaseId" runat="server" Value='<%# Eval("CASEID") %>' />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn Display="false" DataField="CASETRANSFERID" UniqueName="CASETRANSFERID" />
            <telerik:GridTemplateColumn UniqueName="SOLDIER" ShowFilterIcon="false" DataField="SOLDIER"
                SortExpression="SOLDIER" HeaderText="Soldier" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true">
                <ItemTemplate>
                    <asp:LinkButton ID="lnkBtnName" runat="server" Text='<%# Eval("SOLDIER") %>' CommandArgument='<%# Eval("CaseId") %>' />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn HeaderText="SSN" DataField="SSN" UniqueName="SSN" ShowFilterIcon="false"
                DataType="System.String" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="47px" />
            <telerik:GridBoundColumn HeaderText="Losing WTU" DataField="LOSINGWTU" UniqueName="LOSINGWTU" ShowFilterIcon="false"
                DataType="System.String" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" />
            <telerik:GridBoundColumn HeaderText="Losing CO" DataField="LOSINGCO" UniqueName="LOSINGCO" ShowFilterIcon="false"
                DataType="System.String" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" />
            <telerik:GridBoundColumn HeaderText="Gaining WTU" DataField="GAININGWTU" UniqueName="GAININWTU" ShowFilterIcon="false"
                DataType="System.String" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" />
            <telerik:GridBoundColumn HeaderText="Gaining CO" DataField="GAININGCO" UniqueName="GAININGCO" ShowFilterIcon="false"
                DataType="System.String" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" />
            <telerik:GridDateTimeColumn HeaderText="Date Initiated" DataField="DATEINITIATED" UniqueName="DATEINITIATED" DataFormatString="{0:dd MMM yyyy}" ShowFilterIcon="false"
                DataType="System.DateTime" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="100px" />
            <telerik:GridDateTimeColumn HeaderText="Record Start Date" DataField="PROGRAMSTARTDATE" UniqueName="PROGRAMSTARTDATE" DataFormatString="{0:dd MMM yyyy}" ShowFilterIcon="false"
                DataType="System.DateTime" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="115px" />
        </Columns>
        <CommandItemTemplate>
            <div class="formRowNoBorder">
                <div class="floatLeft">
                    <asp:LinkButton runat="server" ID="lbCancel" CssClass="silverButton" OnClick="btnCancel_Click"><span>Cancel</span></asp:LinkButton>
                    <asp:LinkButton runat="server" ID="lbSave" CssClass="silverButton" CommandName="Save" OnClick="btnSave_Click"><span>Save</span></asp:LinkButton>
                </div>
            </div>
        </CommandItemTemplate>
    </MasterTableView>
</telerik:RadGrid>

 

 

 

 

 

 

 

 

Eyup
Telerik team
 answered on 22 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?