Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
291 views

Hi,

We are using a RadGrid control and wanted to know if there was a way to display multiple footer records.

We currently do not have footers turned on in the grid but instead return the total and totals for Applications records in the actual data that we receive in the dataset we get back from querying the database.

We then color these last 3 records to make them appear like footers on the bottom of the grid. 

I have attached a screenshot of the grid for reference.

We noticed that these last 3 records do not behave like true footers when using the filtering capabilities of the grid.

Please advise if we can achieve this same results by using actual footers in the RadGrid. 

Thanks!

Avo

Konstantin Dikov
Telerik team
 answered on 27 Jul 2015
1 answer
397 views

I'm trying to set up a RadGrid with column filters that have values from the column itself, as demonstrated in the second RadGrid in this demo page: http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

The columns for City, Country, and Contact Title have the functionality I need.

I have a RadGrid running in an ASP.NET Web Forms application, I've set AllowFilteringByColumn to true, and FilterType to "CheckList". I'm setting the datasource of the RadGrid programmatically at runtime to a list of objects. My goal is to set the column filter datasources programmatically at runtime as well, but none of the examples I've seen demonstrate a way to do this. The demo page linked above demonstrates this with a web service, and the column filters are created by referencing one of the web service methods. I don't want a database call for each one of my filterable columns, especially since I gather the necessary values when the page loads. As an example, two of my columns are User and Note Types. I use the following to extract a collection of distinct values:

var userNames = model.Results.Select(r => r.Username).Distinct().OrderBy(name => name);
var noteTypes = model.Results.Select(r => r.NoteType).Distinct().OrderBy(name => name);

I would very much like to simply assign these collections to the column filters in the RadGrid at runtime, rather than developing web services I don't need. Can this be done?

Konstantin Dikov
Telerik team
 answered on 27 Jul 2015
1 answer
176 views

I've been looking for documentation/demos on binding a kendo treeview with a list<> in MVC architecture, but haven't found much information.

- What I have in the controller : List<UserDefined> test = List<UserDefined>();

 1. [Example UserDefined class has the following properties- Id,Name,Age]

 2. So, the List would look like : 

List.Add(new UserDefined { Id = 1,Name = "abc", Age=10};

List.Add(new UserDefined { Id = 2,Name = "def", Age=20};

List.Add(new UserDefined { Id = 3,Name = "ghi", Age=30};

- A strongly typed view is created, to use the above list in the view.

Like so, @model List<UserDefined.test> is registered in the view.

Question : How to bind the above list (test) to the kendo Treeview?

Boyan Dimitrov
Telerik team
 answered on 27 Jul 2015
2 answers
132 views

Hi All,

I have a big problem with the RadHTMLChart. It appears it refuses to render until postback if it follows a RadListView on a page. If I put it on the page anywhere before the RadListView the problem goes away and it renders fine. This is the same for a RadHTMLChart that has no dynamic content on it.

    <!-- LOAD GRAPHS -->
    <asp:Panel runat="server" ID="PanelCharts">
        <telerik:RadHtmlChart runat="server" ID="chtResults" Width="800" Height="500" Transitions="true" Skin="MetroTouch">
            <ChartTitle>
                <Appearance Align="Center" Position="Top">
                </Appearance>
            </ChartTitle>
            <Legend>
                <Appearance Position="Right" Visible="true">
                </Appearance>
            </Legend>
            <PlotArea>
                <Series>
                    <telerik:PieSeries StartAngle="90">
                        <LabelsAppearance Position="OutsideEnd" DataFormatString="{0} %">
                        </LabelsAppearance>
                        <TooltipsAppearance Color="White" DataFormatString="{0} %"></TooltipsAppearance>
                        <SeriesItems>  
                            <telerik:PieSeriesItem Exploded="false" Name="Safari" Y="4.5" />
                            <telerik:PieSeriesItem Exploded="false" Name="Opera" Y="2.3" />      
                        </SeriesItems>
                    </telerik:PieSeries>
                </Series>
            </PlotArea>
        </telerik:RadHtmlChart>  
    </asp:Panel>
 
    <!-- LOAD VERDICTS -->       
    <asp:Panel ID="PanelVerdicts" runat="server">
            <telerik:RadListView ID="RadListViewVerdicts" AllowPaging="False" runat="server" ItemPlaceholderID="ProductsHolder" DataKeyNames="VerdictID">
                <LayoutTemplate>
 
                    <div class="RadListView RadListViewFloated RadListView_<%# Container.Skin %>">                       
                        <div class="rlvFloated">
                            <!-- <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server"> -->
                                <asp:Panel ID="ProductsHolder" runat="server">                                                                          
                                </asp:Panel>                                                    
                                <!-- </telerik:RadAjaxPanel>                        -->
                        </div>
                    </div>
                </LayoutTemplate>
                <ItemTemplate >                       
                    <div id="productItem" runat="server" class="productItemWrapper">
                        <!-- Display Verdict Button -->                                                  
                        <div style="text-align:center">                               
                            <asp:Button id="btnVote" runat="server" width="100%" OnCommand="VoteCommand" />                               
                        </div>                                                                                        
                        <div class="argumentItemWrapper" id="argumentItemWrapper" runat="server">
                        <telerik:RadListView ID="RadListViewArguments" AllowPaging="False" runat="server" ItemPlaceholderID="ArgumentsHolder" DataKeyNames="ArgumentID" OnNeedDataSource="nestedListView_DataSource">
                            <LayoutTemplate>                                                                      
                                    <asp:Panel ID="ArgumentsHolder" runat="server">
                                    </asp:Panel>     
                            </LayoutTemplate>
                            <ItemTemplate>        
                                <!-- Display Arguments -->                              
                                <p style="font-size:12pt;margin-top:10px"><%# Eval("Description") %></p>                                                                           
                            </ItemTemplate>
                        </telerik:RadListView>                            
                        </div>                                                                                      
                        <a href="#" id="showmore" runat="server">Show more</a>                           
                    </div>                                                        
                </ItemTemplate>
            </telerik:RadListView>
    </asp:Panel>      

 

Obviously this isn't much help without the codebehind to load the radlistview items from needdatasource, but it appears to be easy to reproduce, just stick the radhtmlchart before a radlistview on a page.

It's nothing to do with updating as I've tested it without any updatepanel, radajaxpanel or radajaxmanager on the page and it does the same thing.

Thanks,

Will

Danail Vasilev
Telerik team
 answered on 27 Jul 2015
1 answer
230 views

I have the following RadScheduler inside an update panel:

 

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                    <telerik:RadPane runat="Server" ID="bottomPane" Scrolling="None" Height="1000">--%>   
        <telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Office2007" Height="100%" OverflowBehavior="Auto"
                            OnAppointmentInsert="RadScheduler1_AppointmentInsert"
                            OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
                            OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                            OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
                            OnClientAppointmentInserting="OnClientAppointmentInserting"
                            OnClientNavigationComplete="OnClientNavigationComplete"
                            OnClientAppointmentsPopulating="OnClientAppointmentsPopulating"
                            OnFormCreated="RadScheduler1_FormCreated"
                            DataKeyField="Id" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
                            DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId"
                            DataReminderField="Reminder"
                            SelectedView="WeekView" ShowFooter="false"
                            DayStartTime="07:00:00" DayEndTime="21:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
                            EnableDescriptionField="true" AppointmentStyleMode="Default" ClientIDMode="Static" ClientID="RadScheduler1" StartEditingInAdvancedForm="true" >
                            <AdvancedForm Modal="true"></AdvancedForm>
                            <TimelineView UserSelectable="false"></TimelineView>
                            <ResourceHeaderTemplate>
                                <div class="rsResourceHeader<%# Eval("Text") %>">
                                    <%# Eval("Text") %>
                                </div>
                            </ResourceHeaderTemplate>
                            <TimeSlotContextMenuSettings EnableDefault="true" />
                            <AppointmentContextMenuSettings EnableDefault="true" />
                            <Localization />
                        </telerik:RadScheduler>
    </ContentTemplate>
        </asp:UpdatePanel>​

 

Whenever i update an appointment in the advanced, the built-in subject validator works (the subject field border gets red and it does nothing if the subject field is empty). In the normal insert, the AppointmentInsert event fires and I can validate the subject in code behind. However, when i insert a new appointment in the advanced form, if the subject field is empty, the border gets red, but the UpdatePanel loads, the AppointmentInsert event doesn't fire and the page gets blocked. I attached a picture.

 

Thank you very much.

Plamen
Telerik team
 answered on 27 Jul 2015
2 answers
185 views

Hi,

Is it possible to show a tooltip window over the elements in the list on the left side of the gantt view?

For example if you want to see full name of an item in the column "Title".

 

Thanks

Maksym
Top achievements
Rank 1
 answered on 24 Jul 2015
3 answers
149 views

Hello,

I upgraded to the latest telerik version yesterday to change my pivot grid excel exporting to use xlsx. Now I’m getting auto formatting of data when it is exported. An example is I have column headers by fiscal year. So a value in the header that is “2006-07” ends up being “7/1/2006“ when it gets to excel. This happens for all my fiscal year column headers. And when I check the cell type in excel its set to Date even though the datatype in the DataTable and PivotGrid is a String. I tried to use the PivotGridCellExporting to possible change this but during that process the values are all correct.
If I change it back to export to xls the column header formats are correct. Is there some setting I can change to fix this issue?

Thanks,
Jesse

Pavlina
Telerik team
 answered on 24 Jul 2015
2 answers
90 views

Hi,

Is it possible to show title in the summary tasks?

 

Thanks

Maksym
Top achievements
Rank 1
 answered on 24 Jul 2015
2 answers
199 views
I have a radtreeview with checkbox. When I check the checkbox, I want to prevent checked event by clicking 'cancel' on confirm box but it doesnt work. Here is my code:
<telerik:RadTreeView ID="_tree" runat="server" Skin="Silk" CheckBoxes="true" OnClientNodeChecking='ClientNodeChecking' TriStateCheckBoxes="true" CheckChildNodes="true"></telerik:RadTreeView>


function ClientNodeChecking(sender, eventArgs) {
        var node = eventArgs.get_node();
        if (node.get_checked()) {
            var agree = confirm('Do you want to check?');
            if (agree) {
                node.check();
            }
            else
                return false;
        }
    }
Ivan Danchev
Telerik team
 answered on 24 Jul 2015
19 answers
547 views
Hi Team,

I would like to know if the below mentioned format can be achieved using the treeview.

-Section1
     -Section1.1
        -This section is long and need
           text wrapping with the indentation
           proper.
        -this is a small section   
     +Section1.2
     +Section1.3
     +Section1.4
+Section2
+Section3
+Section4

Do let me know if my question is not understandable.

Thanks,
Soonam
Ivan Danchev
Telerik team
 answered on 24 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?