Telerik Forums
Kendo UI for jQuery Forum
7 answers
404 views

We have a treelist inside view. Some time when the page open, the treelist do not take all the view and when it expand the scrolling doesn't work properly.

  

Konstantin Dikov
Telerik team
 answered on 27 Oct 2015
5 answers
624 views
I am not seeing anything about how to export the angular kendo grid to excel.  Is this a manual export or is that a flag to enable to turn it on?
Konstantin Dikov
Telerik team
 answered on 27 Oct 2015
1 answer
559 views

I know there's an upload progress event that you can subscribe to, but I'm not looking for the specific progress of any given file, I just want to know if the Upload is busy uploading, something like myUploader.IsUploading(). 

I can definitely keep track of a counter and increment it on the upload event and decrement it in the success event and finally check if that number is 0, but it seems prone to error. Is there an easier way to ask the uploader if it's currently uploading or it has files waiting to be uploaded?

 

Thanks.

Dimiter Madjarov
Telerik team
 answered on 27 Oct 2015
1 answer
133 views
If you setup the Sheet to have less columns than the width of the Sheet, or re size the columns to take up less space than the width of the Sheet cells are rendered on the left side and the headers and grid lines are rendered on the right side.
Petyo
Telerik team
 answered on 27 Oct 2015
3 answers
619 views
Is it possible to set the depth to week so that I can select week instead?   If not, is there anyway, I can just have the functionality of the top picker and have it scroll in and out my own custom generated template at the bottom part of the picker?  eg.  Q1, Q2, Q3, Q4 while maintaining the functionality of the year scroller up top?
Dimiter Madjarov
Telerik team
 answered on 27 Oct 2015
1 answer
533 views

What is the correct way to set the initial active cell?

sheets: [{
                    selection: "A2:A2",
                    activeCell: "A2"
                }] 

This sets the active cell visually but when I press Tab to move to the next cell I get an error "TypeError: topLeft is undefined"

Kiril Nikolov
Telerik team
 answered on 27 Oct 2015
3 answers
300 views
Hi,

I am using keno UI scheduler with horizontal grouping but i want  it for only day view not for week view and others view.

for that i used filter option in navigate event to filter data source as shown bellow:

 var scheduler = $("#scheduler").data("kendoScheduler");

            if(e.view!='day' ){

             var filter = {

                    logic:"or",

                    filters: [

                        {

                            operator: "eq",

                            field: "text",

                            value: 1

                        },

                       

                        ]

                };

            scheduler.resources[0].dataSource.filter(filter);

            scheduler.view(scheduler.view().name);

            scheduler.refresh();

            }else  {

                var filter = {

                    logic:"or",

                    filters: [

                        {

                            operator: "eq",

                            field: "text",

                            value: 1

                        }, {

                            operator: "eq",

                            field: "text",

                            value: 2

                        }]

                };

                scheduler.resources[0].dataSource.filter(filter);

                scheduler.view(scheduler.view().name);

               

            }

but when i navigate from day view to other views its not working and giving java script error :

"this.groups[t.groupIndex] is undefined"

please help mi how to customize horizontal grouping and is there any way to set groups run time .
Rosen
Telerik team
 answered on 27 Oct 2015
2 answers
326 views

When putting the grid together, running my solution in IIS express works great, however when it runs on full IIS 8, the grid returns all 23k rows of data, rather than the 25 i specified in the pagesize.  Dubugging the code shows the DataSourceRequest object has 0 for the page size.  Again, this is for initial page load and even if i filter.  Thoughts?

 

Html.Kendo().Grid<TaxEx.Entities.ViewEffectiveCompanyTax>().Name("grid")
.Columns(c =>
{
c.Bound(p => p.Id);
c.Bound(p => p.EffectiveDate);
c.Bound(p => p.AppCompanyNameId);
})
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(25)
.Read(read => read.Action("GetData", "Company")))
.Scrollable(scrollable => scrollable.Height(600))
.Pageable()

 

CONTROLLER CODE:

public ActionResult GetData([DataSourceRequest]DataSourceRequest request)
{
using (TaxExEntities entity = new TaxExEntities())
{
IQueryable<ViewEffectiveCompanyTax> details = entity.ViewEffectiveCompanyTaxes;

DataSourceResult result = details.ToDataSourceResult(request, x => x);

return Json(result2);
}

}

Rosen
Telerik team
 answered on 27 Oct 2015
1 answer
145 views

I am trying to establish paging using a Kendo Grid.  However when I try I get the ​'Object doesnt support property of method 'slice'' error. 

Here is my code.

JS file

$(function () {
    dataSource.bind("error", dataSource_error);
 
$("#CollegeProgramsGrid").kendoGrid({
    dataSource: dataSource,
    pageable: true,
    bob: true,
    columns: [
            {title: "CIP Code", field: "CipCode",width: "110px",attributes: { "class": "table-cell-auto text-center" } },
            {title: "Program Name",field: "ProgramName",width: "110px",attributes: { "class": "table-cell-auto text-center" },groupable: false },
            {title: "Degree Type",field: "DegreeType", width: "110px",attributes: { "class": "table-cell-auto text-center" },groupable: false }
        ]
    });
 
});
 
function dataSource_error(e) {
    alert(e.status); // displays "error"
}
var dataSource = new kendo.data.DataSource({
     
    transport: {
        read: {
            url: window.location.origin + "/Program/ProgramListing/2",
           dataType: "json"
        },
        schema: {
            data: "data",
            total: "count",
            model: {
                id: "ProgramID",
                fields: {
                    CipCode: { type: "string" },
                    ProgramName: { type: "string" },
                    Credits: { type: "number" },
                    Tuition: { type: "number" },
                    DegreeType: { type: "string" },
                    HighWage: { type: "boolean" },
                    HighDemand: { type: "boolean" },
                    HighSkill: { type: "boolean" },
                    ProgramID: { type: "number" }
                }
            }
        },
         
    },
    pageSize: 25,
    serverPaging: true
});

 

Here is my Response Object

public class Response
   {
       public Array data { get; set; }
       public int count { get; set; }
 
       public Response(Array data, int count)
       {
           this.data = data;
           this.count = count;
       }
   }

This is the controller code

public Response GetProgramsListByCollegeId(int collegeId, int take, int skip)
        {
          var dbContext = new VirtualCounselorEntities();
 
             
                var programs = (from p in dbContext.Programs
                            where p.CollegeID == collegeId
                            select new vmProgramListItem {
                                ProgramId = p.ProgramId,
                                CipCode = p.CipCode,
                                CollegeID = p.CollegeID,
                                ProgramName = p.ProgramName,
                                DegreeType = p.DegreeLevel.Name,
                                Tuition = p.Tuition,
                                HighDemand = p.HighDemand,
                                HighSkill = p.HighSkill,
                                HighWage = p.HighWage
                            })
                            .OrderBy(r => r.CipCode)
                            .Skip(skip).Take(take).ToArray() ;
 
                int count = dbContext.Programs
                            .Where(r => r.CollegeID == collegeId)
                            .Count();
 
                 
                return new Response(programs, count);
             
 
        }

Viewing the request response, I am getting good JSON back. 

{"data":[{"ProgramId":9,"CipCode":"10.0202","ProgramName":"MEDIA TECHNOLOGY-RADIO (1251)","CollegeID":2,"Credits":0,"Tuition":1400,"DegreeType":"Two Year Certification","HighWage":"N","HighDemand":"N","HighSkill":"N"},...

{"ProgramId":30,"CipCode":"15.0699","ProgramName":"GENERAL TECHNOLOGY (0213)","CollegeID":2,"Credits":0,"Tuition":3300,"DegreeType":"Four Year Certification","HighWage":"N","HighDemand":"N","HighSkill":"N"}],"count":176}

 

Everything looks right and appears to match https://github.com/telerik/kendo-examples-asp-net-mvc/blob/master/grid-crud/Views/Home/Index.cshtml

 

Please provide any assistance you can.

 

dw

Doug
Top achievements
Rank 1
 answered on 26 Oct 2015
2 answers
344 views

The attached HTML has a problem. When I use a popup window and cancel the closing of a window with field changes, the Save button is triggered even though it has not yet been clicked. Below is the trace in the console log displays. Note that the bottom lines indicate the Save button has been triggered and the changes saved to the datasource. Yet, it has not been clicked.

pid: 2
row: Object { _events={...},  _handlers={...},  ProductID=2,  more...}
set: e.field = current
current: Object { _events={...},  _handlers={...},  ProductID=2,  more...}
set: e.field = current.UnitPrice
set: fName = UnitPrice
set: hasChanges = true
close: e.userTriggered = true
close: hasChanges is true
click: #CancelButton
click: Save
changes: UnitPrice changed from 21 to 20,
close: e.userTriggered = true
close: hasChanges is true

My expectation was that if I called e.preventDefault that the window close would be stopped and that would be that. For some reason the Save button is involved. Using the confirm code works fine. But I would like better control and it looks less refined than a popup window that can have more messages and maybe even links to help.

Weird. And, it's not even Halloween yet. That's next week.

Rick

Rick
Top achievements
Rank 2
 answered on 26 Oct 2015
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
Licensing
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?