Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
275 views
Hi,

I have a line chart working with several line series that are generated and added to the RADHTMLChart from the Code-Behind.

How can I set the LineAppearance to "Smooth" in the code-behind?

I tried lineSeries1.LineAppearance.LineStyle = "Smooth" but I get an error: "LineAppearance" is read-only.

Thanks.
Dave
Top achievements
Rank 1
 answered on 11 Sep 2014
3 answers
356 views
Hi,

I have PivotGrid in my web Application, The rows and columns in PivodGrid are not aligned correctly.
What I've tried so far 
1.Finding solution from old thread in the forum but the solutions didn't work
2.running on various browsers but it 
3.Running PivotGrid in empty page
4.Write CSS to fix it - I made PivotGrid Header display properly but I can't fix row height.
It always generates the wrong height. 

My CSS
<style type="text/css">
        /*fix header*/
        #ctl00_MainContent_RadPivotGrid1_OT > tbody> tr:nth-child(3) {
            height:129px !important;
        }
        #ctl00_MainContent_RadPivotGrid1_ctl02_DataZone_DT  tr:nth-child(4), tr:nth-child(5){
            height:26px !important;
        }
        /*Adjust row header total*/
        #ctl00_MainContent_RadPivotGrid1_OT > tbody > tr > td.rpgRowHeaderTotal{
            height:26px !important;
        }
        /*Adjust all data cell*/
        #ctl00_MainContent_RadPivotGrid1_ctl02_DataZone_DT > tbody > tr > td.rpgDataCell{
            height:26px !important;
        }
        /*test specific row*/
        /*#ctl00_MainContent_RadPivotGrid1_OT tbody tr:nth-child(5){
          height:25px !important;
        }*/
    </style>

My Aspx

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
    <telerik:RadPivotGrid ID="RadPivotGrid1" runat="server" DataSourceID="SqlDataSource1" AggregatesLevel="3">
                <PagerStyle ChangePageSizeButtonToolTip="Change Page Size" PageSizeControlType="RadComboBox"></PagerStyle>
                <Fields>
                    <telerik:PivotGridColumnField DataField="Year" UniqueName="Year" Caption="Year">
                    </telerik:PivotGridColumnField>
                    <telerik:PivotGridColumnField DataField="Quarter" UniqueName="Quarter" Caption="Quarter">
                    </telerik:PivotGridColumnField>
                    <telerik:PivotGridColumnField DataField="Month" UniqueName="Month" Caption="Month">
                    </telerik:PivotGridColumnField>
                    <telerik:PivotGridColumnField Caption="Meal" DataField="Meal" UniqueName="Meal">
                    </telerik:PivotGridColumnField>
                    <telerik:PivotGridRowField DataField="MenuGroup" UniqueName="MenuGroup" Caption="MenuGroup">
                        <CellStyle Width="140px" />
                    </telerik:PivotGridRowField>
                    <telerik:PivotGridRowField DataField="MenuName" UniqueName="MenuName" Caption="MenuName">
                        <CellStyle Width="320px" />
                    </telerik:PivotGridRowField>
                    <telerik:PivotGridAggregateField Caption="SaleAmount" DataField="SaleAmount" GrandTotalAggregateFormatString="" UniqueName="SaleAmount" DataFormatString="{0:C}">
                        <CellStyle Width="150px" />
                    </telerik:PivotGridAggregateField>
                    <telerik:PivotGridAggregateField Caption="OrderQuantity" DataField="OrderQuantity" GrandTotalAggregateFormatString="" UniqueName="OrderQuantity">
                        <CellStyle Width="170px" />
                    </telerik:PivotGridAggregateField>
                </Fields>
                <ConfigurationPanelSettings EnableOlapTreeViewLoadOnDemand="True"></ConfigurationPanelSettings>
            </telerik:RadPivotGrid>

Regards,
Nitchaphat


Nitchaphat
Top achievements
Rank 1
 answered on 11 Sep 2014
1 answer
131 views
Hi there,

I have a few empty RadDockZones in my page, and want to limit only one RadDock to be allowed to put in each of the zone. If there is already a RadDock in the zone, then the move of the RadDock will be cancelled. Is there any way to achieve this? Any advice is much appreciated.

Regards,
Meng
Meng
Top achievements
Rank 1
 answered on 11 Sep 2014
6 answers
221 views
Hello,
I am posting my bug with steps use with uploaded Files

Step 1. Click Add Item
(there Will be 3 Items ITEM1, ITEM2, ITEM3)
Step 2. Focus Combobox and Type "item0" (Lower Case)
Step 3. Press Tab
Step 4. Focus Combobox and Type "ITEM0" (Upper Case)
Step 3. Press Tab

Please Reply Resolution if you can replicate Case.
I have Uploaded Files and ScreenShots
Nencho
Telerik team
 answered on 11 Sep 2014
4 answers
264 views
Have a page that displays some notes from our database and as it will display properly for a certain type of notes.  However it doesn't display for our Board Report notes where the databinding is done a bit differently.  Wondering if you could spot our problem and help us with solving this mystery.  It will load the Master level records but list "No child records to display".

The DetailView.jpg will show how the Board Report notes are to be displayed but NoRecordChildView.jpg is what it comes out to be.  How do we bind the detail grid? 

<telerik:radgrid id="_grdNotes" runat="server" cellspacing="-1" datasourceid="SqlDataSource1"  showheader="False" gridlines="None" style="margin-bottom: 0px;">
            <MasterTableView DataSourceID="SqlDataSource1" HierarchyLoadMode="Client" AutoGenerateColumns="False" DataKeyNames="SubNoteID" Name="Parent" GridLines="None">
                 <DetailTables >
                    <telerik:GridTableView HierarchyLoadMode="Client"  DataKeyNames="SubNoteID" DataSourceID="_srcSubNotes" Width="100%" runat="server" EnableHeaderContextMenu="false" Name="Child" AutoGenerateColumns="False" GridLines="None">
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="SubNoteID" MasterKeyField="SubNoteID">
                            </telerik:GridRelationFields>
                        </ParentTableRelation>
                        <Columns>
                            <telerik:GridTemplateColumn DataField="Comments" FilterControlAltText="Filter Comments column" HeaderText="Comments" SortExpression="Comments" UniqueName="Comments">
                                <ItemTemplate>
                                    <b>(<asp:Label ID="CreatedOnLabel" runat="server" Text='<%#  Eval("FormatedCreatedOn")  %>' ></asp:Label> - <asp:Label ID="FullNameLabel" runat="server" Text='<%# Eval("FullName") %>'></asp:Label>) </b>
                                    <asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn UniqueName="UploadedFiles" FilterControlAltText="Filter UploadedFiles column" >
                                <ItemTemplate>
                                    <asp:HiddenField ID="_hdnNoteID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "NoteID")%>' />
                                    <ul>
                                        <asp:Repeater ID="_rptNoteFiles" runat="server">
                                            <ItemTemplate>
                                                <li><asp:HyperLink runat="server" ID="_hlNoteFile" NavigateUrl='<%# "~/NoteFiles/" & DataBinder.Eval(Container.DataItem, "FileLoc")%>' Text='<%# DataBinder.Eval(Container.DataItem,"FileDesc") %>'></asp:HyperLink></li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>
                <Columns>
                    <telerik:GridTemplateColumn DataField="CorrectFollowUpDate" FilterControlAltText="Filter CorrectFollowUpDate column" HeaderText="CorrectFollowUpDate" SortExpression="CorrectFollowUpDate" UniqueName="CorrectFollowUpDate">
                        <ItemTemplate>
                            <b>Follow-up Date: </b>
                            <asp:Label ID="CorrectFollowUpDateLabel" runat="server" Text='<%# Eval("CorrectFollowUpDate") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter Status column" HeaderText="Status" SortExpression="Status" UniqueName="Status">
                        <ItemTemplate>
                            <asp:HiddenField ID="_hdnCompleted" Value='<%# Eval("Completed") %>' runat="server" />
                            <asp:HiddenField ID="_hdnIncomplete" Value='<%# Eval("Incomplete") %>' runat="server" />
                            <b>Status: <asp:Label ID="StatusLabel" runat="server"></asp:Label></b>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn FilterControlAltText="Filter Add column" UniqueName="AddComplete" HeaderText="" SortExpression="AddComplete">
                        <ItemTemplate>
                            <asp:HiddenField ID="_hdnNoteIDAdd" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "NoteID")%>' />
                            <a onclick='<%# "AddCompleteNote(" & Eval("NoteID") & ");"%>' href="javascript:void(0);">Add/Complete Note</a>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:radgrid>
    </div>
</div>
 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString='<%$ ConnectionStrings:FMS_Conn %>' SelectCommand="sp_getFMSNotes" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:SessionParameter SessionField="charter_num" Name="charter_num" Type="Int32"></asp:SessionParameter>
        <asp:QueryStringParameter QueryStringField="Section" Name="Section" Type="String"></asp:QueryStringParameter>
    </SelectParameters>
</asp:SqlDataSource>
 <asp:SqlDataSource ID="_srcNoteFiles" runat="server"  ConnectionString='<%$ ConnectionStrings:FMS_Conn %>' SelectCommand="sp_getFMSNoteFiles" SelectCommandType="StoredProcedure">
    <SelectParameters>
            <asp:Parameter Name="NoteID" Type="Int32" ></asp:Parameter>
    </SelectParameters>
</asp:SqlDataSource>
 <asp:SqlDataSource ID="_srcSubNotes" runat="server"  ConnectionString='<%$ ConnectionStrings:FMS_Conn %>' SelectCommand="sp_getFMSSubNotes" SelectCommandType="StoredProcedure">
    <SelectParameters>
           <asp:ControlParameter ControlID="_grdNotes" Name="SubNoteID" PropertyName="DataMember" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>


Private Sub Page_PreRender(sender As Object, e As EventArgs) Handles Me.PreRender
     _dateFollowUpAdd.MinDate = DateTime.Today.Date.AddDays(1)
 
     If Request("Section") = "FMS-Board" And clscommon.RecursiveFindControl(Page, "_hdnBoardRptID") IsNot Nothing Then
         oConn.Open()
         Dim ocmd As New SqlCommand("sp_seBoardRptFMSNotes", oConn)
         ocmd.CommandType = CommandType.StoredProcedure
         With ocmd.Parameters
             Dim hdnBoardRptID As HiddenField = CType((clscommon.RecursiveFindControl(Page, "_hdnBoardRptID")), HiddenField)
             .Add(New SqlParameter("@BoardRptID", hdnBoardRptID.Value))
         End With
         _grdNotes.DataSourceID = Nothing
         _grdNotes.DataSource = ocmd.ExecuteReader
         _grdNotes.DataBind()
         '_srcSubNotes.DataBind()
         '_grdNotes.MasterTableView.DetailTables(0).DataSourceID = "_srcSubNotes"
         '_grdNotes.MasterTableView.DetailTables(0).Rebind()
         oConn.Close()
     End If
 End Sub




















Ryan
Top achievements
Rank 1
 answered on 11 Sep 2014
1 answer
122 views
Hi All,

I've looked into this before and on finding nothing gave up for a while but is there any equivalent functionality in the TreeList to the RadGrid's CommandItemTemplate or is this a roll your own affair.  Whilst I don't mind doing my own one it's always nice to have similar functionality between controls - especially as that ensures skin compliance.

Ideally we could have a top and a bottom command template so that the bottom one could contain any information such as a key for any icons used in the list.

Regards

Jon
Eyup
Telerik team
 answered on 11 Sep 2014
1 answer
184 views
I'm using the RadListBox as is shown in the screenshot.  Through JavaScript I'm able to correctly distinguish between single and double left clicks.

Looking at my code (about a year old now), I see that I had tried introducing the RadContextMenu to the RadListBox but had disabled it.  I don't think it was quite working ideally.  But my client is hoping I could introduce a context menu.   Essentially what I'd like the user to be able to do is right click over top of any of the RadListBox items and a simple context menu appear.  The *problem* is that I don't know know how to determine which RadListBox item is being right clicked upon.

It's important to understand that I do NOT want to force the user to first left click a RadListBox item.  They should just be able to immediately right click over top of it.

So how do I determine which RadListBox item they're right clicking over top of?

Robert
Nencho
Telerik team
 answered on 11 Sep 2014
1 answer
82 views
I'm having some trouble with filter menus. When I first load the page, I don't have menus when I click the filter buttons.

I then filter using the CurrentFilterFunction="Contains" setting and pressing <tab>, a postback occurs, and now my filter buttons have the column header menus (Sort Ascending..., Group By, Best fit, etc.)

Any ideas why or what I can do to get and keep the proper filter menus?

C#
protected override void OnPreRender(System.EventArgs e)
{
    // ... Control setup unrelated to RadGrid1
  
    // Test filtering
    bool Filter = true;
    if (Filter)
    {
        RadGrid1.AllowFilteringByColumn = Filter;
        RadGrid1.MasterTableView.AllowFilteringByColumn = Filter;
    }
}

// I've also got handlers for these, but they don't setup filtering:

            RadGrid1.PreRender += RadGrid1_PreRender;
            RadGrid1.ItemCreated += RadGrid1_ItemCreated;
            RadGrid1.ItemDataBound += RadGrid1_ItemDataBound;
            RadGrid1.NeedDataSource += RadGrid1_NeedDataSource;
            RadGrid1.GroupsChanging += RadGrid1_GroupsChanging;



ASCX
<telerik:RadGrid EnableViewState="true" ID="RadGrid1" runat="server" AllowSorting="True" AllowPaging="True" GridLines="None" PageSize="25" AutoGenerateColumns = "false"
                    OnExcelMLWorkBookCreated="RadGrid1_ExcelMLWorkBookCreated" OnItemCreated="RadGrid1_ItemCreated" OnHTMLExporting="RadGrid1_HtmlExporting"
                    AllowMultiRowSelection="True" ShowFooter="true" ShowGroupPanel="True" EnableHeaderContextMenu="true"  Skin="Xledger" EnableEmbeddedSkins="false" style="z-index: 0;">
 
                    <PagerStyle AlwaysVisible="true" />
 
                     <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
                        <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm" BorderStyle="Medium" BorderColor="#666666"></Pdf>
                    </ExportSettings>
 
                    <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder" AllowDragToGroup="true">
 
                        <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" AllowColumnResize="True" AllowResizeToFit="true"></Resizing>
                        <Selecting AllowRowSelect="true" />
                        <Scrolling AllowScroll="false"/><%--<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2"></Scrolling> --%>
 
                    </ClientSettings>
 
                    <GroupingSettings ShowUnGroupButton="true" RetainGroupFootersVisibility="true"></GroupingSettings>
  
                    <MasterTableView ShowGroupFooter="true" TableLayout="Auto"  Width="100%" AllowMultiColumnSorting="true" AllowGroupCollapse="true" GroupLoadMode="Client" EnableGroupsExpandAll="true">
 
                        <%-- AUTOGROUP BY ACCOUNT GROUP
                         <GroupByExpressions>
                          <telerik:GridGroupByExpression>
                            <SelectFields>
                              <telerik:GridGroupByField FieldName="t_rv_account_group" />
                            </SelectFields>
                            <GroupByFields>
                              <telerik:GridGroupByField FieldName="t_rv_account_group" />
                            </GroupByFields>
                          </telerik:GridGroupByExpression>
                        </GroupByExpressions>
                        --%>
 
                        <Columns>
                            <telerik:GridBoundColumn UniqueName="trvAccountGroup" DataField="t_rv_account_group" DataType="System.String" HeaderText="trvAccountGroup"  AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn UniqueName="trvSysAccount" DataField="t_rv_sys_account" DataType="System.String" HeaderText="trvSysAccount"></telerik:GridBoundColumn>
 
<%-- ... more columns ... --%>
 
 
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

Kostadin
Telerik team
 answered on 11 Sep 2014
1 answer
151 views
Hello,

I am using RadGrid (version 2014.1.403.45) and I need to export a header to PDF, Excel, and CSV.  For PDF, this is accomplished easily, by using the "Pdf-PageTitle" property on the <ExportSettings>.  Is there something similar for Excel and CSV?  If not, is there a workaround?

Thanks,
Steve
Kostadin
Telerik team
 answered on 11 Sep 2014
1 answer
67 views
Whenever I double click on an appointment that is created it takes me to an appointment that belongs in the same resource grouping but one that was created at an earlier date. Any suggestions?
Boyan Dimitrov
Telerik team
 answered on 11 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?