Telerik Forums
Kendo UI for jQuery Forum
2 answers
166 views

Hello,

how can i set a "ui-sref" as a url parameter to my datasource?

 

Working:

$scope.gridData = new kendo.data.ObservableArray([
      { text: "Pink Floyd", 
       items: [{
          text:"The dark side of the Moon", 
          get url () {
              return "http://www.google.ch"+this.text;
          }
        }] },
      { text: "The Bseatles", track: "I've just seen a face" },
      { text: "Queen", track: "Innuendo" }
    ]);
      })

How can i set a url like this?:
<a ui-sref="​something.​somethingelse({​param1: ​param1value, ​param2:​param2value})" class="k-link" ng-click="events.​something(​param)" ng-bind="someValue"></a>

 

thanks,
werner

Werner Haltner
Top achievements
Rank 1
 answered on 05 Aug 2015
1 answer
242 views

Hi, I am using Kendo Grid and trying to print the grid.

I am using the same method as in this page

It is working perfectly fine, but there is one problem. 

The footer does not match the width of the other columns.

How can I fix this problem?

Atanas Georgiev
Telerik team
 answered on 05 Aug 2015
2 answers
370 views

How are the changes to a grid stored prior to updating the underlying datasource?

I have a grid that I am building by building a JSON String and setting data = data: [ "column": "data", "column2": true ].

This grid holds several items for configuring another grid.  The part I'm trying to figure out right now is once I make a change to this grid, (I have a few template columns that hold the data), how do I save those changes?

I know I can use $('#myGrid').data().kendoGrid.dataSource.view() to get the data, but this doesn't contain the updates that were made since the data was bound to the grid.

 

Ideally, I'd like the user to be able to freely edit the grid (check boxes and enter text) and then click a save button.  Then I'd like them to be able to click a "refresh" button, that would export the updated grid to a JSON string.

Boyan Dimitrov
Telerik team
 answered on 04 Aug 2015
2 answers
679 views

In our grid we want to expand the detailview when the user selects a row.

Which works fine. The Selectable property of the grid is set to true and the selectmode to row. The onchange eventhandler is set to the function below

When the grid is clicked it handles the expansion or colapsing:

 function kendoGridChange(e) {
    var row = this.select();
    if (row != null) {
        if (row.next(".k-detail-row").is(":visible")) {
            e.sender.collapseRow(row);
        } else {
            e.sender.expandRow(row);
        }
    }
}

 

This works fine.

But: when the user clicks the expand button itself the onchange event is also fired. Which leads to the expansion toggle. After that the default expansion behaviour is fired again. Which leads to a second toggle. Which results is no change.

We have tried in several ways to prevent this happening

  • Examine the incoming event and its sender. There seems to be no way to find out which element was clicked. The expand button or another element in the grid.
  • Fire preventdefault, stopPropagation, stopImmdeatePropagation and the like. 
  • Attach a clickhandler to the expand-button.

None of this has solved the issue. Anybody know a way out ?

It worked fine in the MVC grid.

 

Peter


  

 

Peter
Top achievements
Rank 1
 answered on 04 Aug 2015
2 answers
187 views

There seems to be an issue with the dropdownlist and the option Label
It is also happening in the demo page:
http://demos.telerik.com/kendo-ui/dropdownlist/cascadingdropdownlist 

The optionLabel is displaying in the dropdown where it should not?
See the red arrow on the screenshot (from Chrome on windows)

It is also happening on iPad and definitely funny (attached a screenshot from my project for additional info)

 

Tiptopweb
Top achievements
Rank 2
 answered on 04 Aug 2015
3 answers
247 views

We are facing formatting issue while pasting content in editor from other sources like word file.

1. Color of text get remove and default black color shows. If content is in bold, it maintain the boldness of text.

2. Alignment of text get remove and show left alignment where as actual alignment is center.

3. Many time headers of paragraphs get repeat and shows duplicate header (e.g. H1, H2 etc..).

Looking for solution to deal with such scenarios. Please suggest some available solutions for above cases.

Regards

Ramesh D.

 

 

Konstantin Dikov
Telerik team
 answered on 04 Aug 2015
1 answer
131 views

I have a grid editable 'incell'. One of the columns is displayed as checkbox at all times, the others are static, but their editors are set to kendoComboBox.

The checkbox column is bound so that the current ':checked" state is applied to the underlying dataItem, like so:

$(".checkbox").unbind("change");
$(".checkbox").bind("change", function (e) {
    var $row = $(e.target).closest("tr"),
        di = grid.dataItem($row),  // grid is a ref to kendoGrid defined
        state = $(e.target).is(':checked');
    console.group('change', $row, di.uid);
    console.log(di);
    di.set('group', state);
    console.log(di);
    console.groupEnd();
});​

Now the problem I'm facing is that when I select an item in a ComboBox column and hit escape, the ComboBox choice is cancelled but so is the checkbox state. Even though the state has been applied, and even though the dataSource.hasChanges returns false.

What could I do to make escape cancel the targeted cell only? I wish we could have cancelCell method (equivalent of cancelRow in inline mode).

Thx, Artur

Artur
Top achievements
Rank 1
 answered on 04 Aug 2015
1 answer
156 views

Hello,

Could  you advice me here on how to get Legend working with dynamic data in pie charts. I did look at this sample example  http://dojo.telerik.com/UGIjo where Legend is nor working as well.

 

Best Regards,

Devendra

Iliana Dyankova
Telerik team
 answered on 04 Aug 2015
3 answers
175 views

how do you bind Data Source to normalized data?  I know I can take the fields and data2 arrays and construct something that looks like data1 but that will be time consuming.

 

// Denormalized
var data1 = [{"name":"John", "age":20},{"name":"Tom", "age":25}];
 
// Normalized
var fields = ["name","age"];
var data2 = [["John",20],["Tom",25]];

Alexander Popov
Telerik team
 answered on 04 Aug 2015
5 answers
571 views

Hi,

 I need to know the performance implications of using "Server" method vs "Ajax" method.I had to change all code to point to the Server method because using the tabstrip control does not work with Ajax Data.

Please find below my code.

Thanks

@(Html.Kendo().Grid(Model)

.Name(

"EscrowsGrid")

.Columns(columns =>

{

columns.Bound(p => p.Status);

columns.Bound(p => p.Name);

columns.Bound(p => p.Available);

columns.Bound(p => p.Balance);

})

.Sortable()

.Scrollable()

.Groupable()

.DataSource(dataSource => dataSource

 .Server()

.Read(read => read.Action(

 

"EscrowData","Escrows"))

Dimiter Madjarov
Telerik team
 answered on 04 Aug 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?