Telerik Forums
Kendo UI for jQuery Forum
2 answers
154 views

I have Grid in a partialview which is also in a partialview that is rendered by a TabStrip, when I click on the tab the grid doesnt not read

 

so grid in partialview1 which is in NewAccountPermissions which is being called by:

 

  @(Html.Kendo().TabStrip()
  .Name("tabstrip")
  .Items(tabstrip =>
  {
      tabstrip.Add().Text("Add Client Permissions").Selected(true)
          .LoadContentFrom("NewAccountPermissions", "Administration");
      //tabstrip.Add().Text("Edut Client Administration")
      //    .LoadContentFrom("Index", "Tab2");
  })
    )

Dimiter Madjarov
Telerik team
 answered on 16 Jul 2015
1 answer
354 views

I have a gauge on my html page, defained like this:

 <span kendo-radialgauge="gauge.kendoGaugeInstance" k-options="gauge.options"></span>

IT has multiple pointers and I need to update the values

How can I do it? 

I tried the setOptions method similar to line chart :

kendoGaugeInstance.setOptions({
    options: updatedOptions
});​

but that doesn't work.

kendoGaugeInstance.redraw();

works somewhat, but it redraws it completely with all pointers animation from 0.

How can I do it properly?

Thanks

Dimiter Madjarov
Telerik team
 answered on 16 Jul 2015
1 answer
271 views

Hello

I am using an example such as the following in MVC

http://demos.telerik.com/kendo-ui/grid/editing-inline

 

However, I want to send the user confirmation that the edition or destruction of the record was successfull or unsuccessfull. Is there a way to do this?

I have seen that on the controller you are returning a Json with the same model sent from the client side, but I do not know where this information returned from the controller is processed on the client side.

How can I do this?

 

​

Boyan Dimitrov
Telerik team
 answered on 16 Jul 2015
1 answer
258 views

Hi

  I've kind of got this working at the moment but badly, e.g.

   onActivate = (e: any) =>
   {
         if (this.minimiseOnStartup)
          {
                setTimeout(this.Minimise, 1);
          }
    }

    Minimise = () =>
        {
            var $kendoWindow = $(this.windowId);
            $kendoWindow.data('kendoWindow').minimize();
        }

 

(this is typescript rather than javascript but I'm sure you get the point)

So, in the onActivate call I call the minimize function (this is with the opening animation switched off). This means the windows first appear full size then shrink down. If you call minimize without the slight delay it doesn't work at all.

Question

- Is there a better way of doing this? I couldn't find a configuration option

Failing that I'll have to look into hiding the window until the minimize has finished, but that feels like a hack

 

thanks

Dimo
Telerik team
 answered on 16 Jul 2015
3 answers
751 views

As replicated in here http://plnkr.co/w44pS20LB0K1EpxPIq1i
In index.html line 58, i used k-ng-disabled="true" which does not work.
Any ideas??

Radoslav
Telerik team
 answered on 16 Jul 2015
1 answer
306 views
Hi,

I'm trying to fetch some json data from a .NET WebMethod (ScriptMethod) via a HTTP POST using a kendo.data.DataSource.

I was able to trigger the .NET WebMethod and json data is returned.

However, a javascript error "Uncaught TypeError: e.slice is not a function" ​is thrown by "kendo.all.min.js:11" on the client side.

Not sure what is wrong.


The javascript code is as follows:

           var param = { ID: 1, SearchString: "some string" };

            var dataSourceEntities = new kendo.data.DataSource({
                transport: {
                    read: {
                        type: "POST",
                        url: app.apiUrl + "/GetEntities",
                        contentType: "application/json; charset=utf-8",
                        dataType: 'json'
                    },
                    parameterMap: function(options, operation) {
                        return JSON.stringify(param);
                    },
                    schema: {
                        data: "d.Data", // ASMX services return JSON in the following format { "d": <result> }. Specify how to get the result.
                        total: "d.Total",
                        model: { // define the model of the data source. Required for validation and property types.
                            id: "SelectOptionVM",
                            fields: {
                                text: { type: "number" },
                                value: { type: "string" },
                                selected: { type: "boolean" }
                            }
                        }
                    }
                }
            }).read();


The .NET WebMethod code is as follows:

        [System.Web.Services.WebMethod(EnableSession = true)]
        [System.Web.Script.Services.ScriptMethod]
        public static DataSourceResult GetEntities(int ID, string SearchString)
        {
            List<SelectOptionVM> result = new List<SelectOptionVM>();

            List<TestEntity> tes =
                ProctorSessions
                .Select(ts => ts.Location.Entity)
                .Distinct()
                .OrderBy(te => te.Name).ToList();

            foreach (TestEntity te in tes)
            {
                result.Add(new SelectOptionVM() { text = te.Name, value = te.TestEntityId.ToString() });
            }

            return result.AsQueryable().ToDataSourceResult(int.MaxValue, 0, null, null);
        }

 

The JSON data returned (captured on Fiddler) is as follows:

{"d":{"__type":"Zoomorphix.Kendo.Extensions.DataSourceResult","Data":[{"__type":"ExamStudioPortal.Proctor.Dashboard4+SelectOptionVM","text":"Entity 1","value":"1","selected":false},{"__type":"ExamStudioPortal.Proctor.Dashboard4+SelectOptionVM","text":"Entity 2","value":"2","selected":false},{"__type":"ExamStudioPortal.Proctor.Dashboard4+SelectOptionVM","text":"Entity 3","value":"3","selected":false}],"Total":3}}
Daniel
Telerik team
 answered on 16 Jul 2015
3 answers
151 views
Hi,

I have chart that shows the temperature data of a bunch of showers. The DataSource that supplies this data groups the data by the ShowerId. The problem occurs when none of the checkboxes are checked (no data will be shown). The DataSource will hence return no data and the Chart._onDataChanged will crash on the line:

categoriesData = grouped ? data[0].items : data

I have temporarly solved this by overwriting the line in the _dataChangeHandler/_onDataChanged to

categoriesData = grouped && typeof data[0] === "object" ? data[0].items : data

It's not the best solution, but it gets the job done for my situation. I have had similar problems with empty grouped datasources in the past, so I wonder if you could possibly provide a fix in a future update which will still create the grouped objects (even if received data array is empty), but just with an empty items array and value? Or is there a certain reason these are not created if no data is received?
Daniel
Telerik team
 answered on 16 Jul 2015
1 answer
68 views

Hi.

Instead of thousand words - http://dojo.telerik.com/aQUkU

After click on button, error "Uncaught TypeError: Cannot read property 'options' of null" raises.

But it works with Kendo 2015 Q1 SP2.

Atanas Georgiev
Telerik team
 answered on 16 Jul 2015
6 answers
766 views
I am looking to add an option for "All" to the drop-down list of page sizes in the Kendo Web UI grid.

The pageSizes: property of .kendoGrid() will only accept integer arrays.

I've tried finagling the dropdown after grid init like so:

var testSelector = '.k-pager-sizes select[data-role="dropdownlist"]';
var
test = $(testSelector).data('kendoDropDownList');

test.options.dataSource = [
  { value: 20, text:
"20" },
  { value: 50, text:
"50" },
  { value: 100, text:
"100" },
  { value: 9007199254740992, text:
"All" }
];

test.options.dataTextField = "text";
test.options.dataValueField = "value";
test.refresh();

but this doesn't seem to do anything.

Any help would be very... helpful. Thanks!
Peter
Top achievements
Rank 1
 answered on 15 Jul 2015
2 answers
77 views

- Open this demo. http://dojo.telerik.com/Inoca/2

- Click  the first bar in the graph. you get an alert().

- Try and click last bar

- Bug: you can't, the tooltip hides the bar.

 

Sylvain
Top achievements
Rank 1
 answered on 15 Jul 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?