Telerik Forums
Kendo UI for jQuery Forum
8 answers
268 views
How can you have two columns of content inside of one tab in a tabstrip?

Float - breaks the tabstrip control (the red box surrounding the tab closes and your content appears below it).

Inline container of block elements - This technique inside of a tab simply puts all to block.

You can see the problem by simply adding html elements to the sample.

UPDATE:  SOLVED.

I discovered that this, amongst other problems with the tabcontrol go away once you set the height.
You must set the height of tab for each tab seperately in the tabcontrol (note: you should also set the height of grid if using grid control) controls in order for the inner contents to render properly.


Michael
Top achievements
Rank 1
 answered on 29 Aug 2013
2 answers
546 views
I have a generic partial view that I want to use for all of my Grids.  The Model for the partial view it a Report object.  The Report object has a DataTable property that contains the Grid's data source.  The Report is also handling its own pages, page size, filtering, sorting, and grouping.  The Ajax call is returning with the correct total number of records and I know that the Report.Query.PagedResults has the correct data. However, when the DataTable is passed to the extension "ToDataSourceResult()" the Data comes back without the data provided in the PagedResults.  It's just an empty dictionary.  This causes the grid to change pages but the data is missing, only the first page ever has data.  Can you provide me with some guidance on what I might be missing?

_GridPartialView
@model GridReport
@using System.Data;
@using MVCReportingConcept.Reports;
<div id="report" class="chart-wrapper">
    @(Html.Kendo().Grid(Model.QueryResults)
        .Name(Model.Name)
        .EnableCustomBinding(true)
        .Columns(columns =>
        {
            foreach (DataColumn col in Model.QueryResults.Columns)
            {
                columns.Bound(col.ColumnName);
            }
        })
        .Pageable()
        .Sortable()
        .Scrollable()
        .Filterable()
        .DataSource(dataSource => dataSource
            .Ajax()
            .Total(Model.Query.TotalRecordCount)
            .Read(read => read.Action("ReadGrid", "Home", new { reportId = Model.ReportId }))
            .PageSize(Model.PageSize)
        )
    )
</div>
Controller Ajax Action (the comments are other failed attempts to get it to work)
public ActionResult ReadGrid([DataSourceRequest] DataSourceRequest request, int reportId)
{
    GridReport report = (GridReport)ReportBuilder.BuildReport(reportId);
    report.Refresh(request.Page, request.PageSize);
 
    DataSourceResult ds = report.Query.PagedResults.ToDataSourceResult(request);
    //ds = report.QueryResults.ToEnumerable().ToQueryable().ToDataSourceResult(request);
    //ds.Data = report.DataSourceResult.Data;
    ds.Total = report.Query.TotalRecordCount;
 
    return Json(ds);
}
Daniel
Telerik team
 answered on 29 Aug 2013
1 answer
105 views
Is it possible to implement shaded patterns in kendo chart as highlighted in the attachment?

If yes, can you guys provide us any solution?
Iliana Dyankova
Telerik team
 answered on 29 Aug 2013
1 answer
280 views
We have a separate HTML legend that we are building up, and when someone mouses over an item in the legend, we would like the corresponding slice to show a tool tip, and or highlight.

Is there a programmatic function to enable this? Is there another way to do this, or will we need to custom manage the tooltip?  I think I could unhide the tooltip html with javascript or jQuery, or is there a better way?
Iliana Dyankova
Telerik team
 answered on 29 Aug 2013
5 answers
5.0K+ views
Hi
I'd like to be able to respond when the user clicks the small x to remove a selected item from the multi select. I see the change Event but I don't know how to tell what triggered it (ie was it from a delete?) because that event fires both when items are added and removed.

any help / sample snippet code would be greatly appreciated.

Thanks
Dan
Hugo Esperanca
Top achievements
Rank 1
 answered on 29 Aug 2013
1 answer
237 views
 We need to add Destroy(Delete) command inside Edit Popup of Kendo Grid.
So edit popup will have 3 buttons, (1)Update (2)Cancel (3)Delete
Please provide steps/details to achieve this if it is possible.
Alexander Valchev
Telerik team
 answered on 29 Aug 2013
3 answers
977 views
Hi,

I have grid with scroll property set to true .
horizontal scroll is working fine when we have data in the grid (Records , PFA ) .
when I remove all records (Empty grid) , then  horizontal scroll is dispersing so I am not able to see some of the column header(PFA).
I have attached screen shot for both scenario.
 
In my case, I need to show horizontal scroll bar for grid  without data , so that user can see all columns in grid by scrolling.

Please help me out

Thanks in advance   
Iliana Dyankova
Telerik team
 answered on 29 Aug 2013
1 answer
114 views
Hi 
I am having difficulties with the Multiple pain chart.
I would like to assign multiple charts for one navigation slider, which is fine, but when I would like to make the category axis pane visible on every single chart it is only let me to do that for one chart. It is possible to print for every single one. 
Thank you very much for your help.
Regards.
M. Gabor
Iliana Dyankova
Telerik team
 answered on 29 Aug 2013
3 answers
247 views
Hi guys,

I'm working with kendo upload and I need some clarifications.

After looking around I understood that is not possible to filter file extensions before user imput ( like the old *.pdf). Is it correct?
If it is, could I use an handler on "select" and manually remove the selected file if it not matches the requested extension? how?

second question:
I normally use the upload in async mode, but this time I'd prefer to use it in sync mode.
The problem is that I'm kind of confused..how could I access the selected file's data??

I red on your doc that with sync mode the file is uploaded when the form is submitted...
ok..but where could I find its data? the client-side events are never fired..
I must say that the documentation is quite poor on this topic!

Thanks
Fabio
T. Tsonev
Telerik team
 answered on 29 Aug 2013
2 answers
291 views
Hi.
I'm trying to use  angular-kendo framework and it seems pretty cool!
But I can't to make working treeview...
I use following angular controller:
function HomeCtrl($scope)
{
 $scope.things = {dataSource: [{ name: "Thing 1", id: 1 },{ name: "Thing 2", id: 2 },{ name: "Thing 3", id: 3 }]}
}
and following template:

<div  kendo-treeview   <br>        
k-data-source="things"        
k-data-text-field="'name'" />
But it doesn't work...  While other controls taken from sample angular-kendo framework like grid
work great.

This chunk of code also works:
<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
  dataTextField: [ "name"],
  dataSource: [{ name: "Thing 1", id: 1 },{ name: "Thing 2", id: 2 },{ name: "Thing 3", id: 3 }]
});
</script>


What I'm doing wrong?

Thanks in advance.
Jose Mejia
Top achievements
Rank 1
 answered on 29 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?