Telerik Forums
Kendo UI for jQuery Forum
0 answers
86 views
Hi kendo,

How to bind data  to grid control in server side . My application is not an MVC arch . We are using asp.net webforms .
I need to call WCF with input paramters .
 Samle code of calling service .
yantraClient.PoolSchedule(ref serviceIdentityContract, ref poolScheduleContract, out serviceErrorContract);


How to implement the above calling method .Please Reply ASAP.


Thanks,
Nawaz




Randhir
Top achievements
Rank 1
 asked on 28 Aug 2012
0 answers
139 views
Hi,

I am trying to keep the checkboxes from the grid using a temporary buffer in javaScript,  like the Rosen example in the link:

http://www.kendoui.com/forums/ui/grid/grid-editing-issue-with-template-columns.aspx

But I am using Kendo MVC UI, with HTML Helpers, instead of pure HTML.
The problem is that the data-uid changes each time I change from page 1 to page n, and later on come back to page 1.
The data-uid is changing each time I change the page and come back to the same page, is there a way to make it fix ?

Best Regards,
Tito Morais
Tito
Top achievements
Rank 1
 asked on 28 Aug 2012
1 answer
210 views
Hi

I have a simple razor page using the Listview

   @(Html.Kendo().ListView<MVCTicketSystem.ViewModels.TicketDetail>(Model)
          .Name("listView")
          .TagName("div")
          .ClientTemplateId("list-view-template")          
          .DataSource(dataSource => dataSource
                                        .Model(model => model.Id("TicketEntryId"))                                        
                                        .PageSize(5)                                        
                                        .Create(create => create.Action("TicketDetail_Create", "Ticket").Data("TicketInfo"))
                                        .Read(read => read.Action("TicketDetail_Read", "Ticket").Data("TicketInfo"))
                                        .Update(update => update.Action("TicketDetail_Update", "Ticket"))
                                        .Destroy(destroy => destroy.Action("TicketDetail_Destroy", "Ticket"))                                        
                                        .Sort(f=>f.Add(p=>p.DetailDate).Descending())                                                                                                        
          )
          .Pageable()          
          .Editable())

The Create method works but the object is partially populated at the server side and I need to visualize this data when the object is added to the list. So I need to either trigger a refresh of the current page or of the added object or something simular after the create.

I've searched the forum but can't find an answer to this problem which is strange as I guess everyone needs this kind of behavior.

best regards
Petur Subev
Telerik team
 answered on 28 Aug 2012
4 answers
2.0K+ views
Hi I've got a grid and one of the columns is bound ta boolean value. I would like to format it to something else other than true and false (On / Off for instance), and i realize I don't know how to do that. With a format field inside the columns property? How would such a format look like? Thanks in advance!
Iliana Dyankova
Telerik team
 answered on 28 Aug 2012
0 answers
59 views

@

 

using Kendo.Mvc.UI

 

@

 

using Kendo.Mvc.UI.Fluent

 

@

 

using SpineWMS.Domain

 

@model

 

IList<SpineMenu>

 

 

@(Html.Kendo().TreeView()

.Name(

 

"Outline")

 

.BindTo(Model, (

 

NavigationBindingFactory<TreeViewItem> mappings) =>

 

{

mappings.For<

 

SpineMenu>(binding => binding

 

.ItemDataBound((item, layer) =>

{

item.Text = layer.MenuText.ToString();

 

 

}

));

 

}

 

)

)

 
Why above code is giving error "Object reference not set to an instance of an object."

in _Layout.cshtml

 

<

 

 

li>@{this.Html.RenderPartial("~/Views/Menu/Index.cshtml");}</li>

 

Abdul Batin
Top achievements
Rank 1
 asked on 28 Aug 2012
0 answers
47 views
Hi,
I  using tabstrip and create form to get data in tabstrip,I found this problem!!

after I submit form button to get data but require validationMessage dosn't show alert message

can I fix this Problem,Thankyou
Nanthaphol
Top achievements
Rank 1
 asked on 28 Aug 2012
0 answers
86 views
I defined a panelbar on left and a grid right.
and I expand the panelbar,the grid's toolbar expand the same time.Is this the css problem?
I repeat it on jsFiddle http://jsfiddle.net/9Aj9E/4/  
tan
Top achievements
Rank 1
 asked on 28 Aug 2012
2 answers
699 views
My result is a JSON object that looks like: 

[{"pk": 1, "model": "adr.country", "fields": {"codetxt": "RUS", "codeint": 643, "name": "\u0420\u043e\u0441\u0441\u0438\u044f"}}, {"pk": 2, "model": "adr.country", "fields": {"codetxt": "UKR", "codeint": 443, "name": "\u0423\u043a\u0440\u0430\u0438\u043d\u0430"}}, {"pk": 3, "model": "adr.country", "fields": {"codetxt": "BLR", "codeint": 523, "name": "\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c"}}]

My code:

$("#country").kendoComboBox({
                    placeholder: "Выберите страну...",
                    dataTextField: "codetxt", //not working
                    dataValueField: "codeint ", //not working
                    dataSource: {
                        serverFiltering: true,
                        type: "json",
                        transport: {
                            read: "http://localhost:8001/countries/"
                         }
                    }
                });

How can i get data in  kendoComboBox ?
Thanks! 

Phil
Top achievements
Rank 2
 answered on 28 Aug 2012
0 answers
67 views
Hi,

Is there a way to set read only on a per row basis?

We are using batch editing similar to this demo:

http://demos.kendoui.com/web/grid/editing.html 

We would like to add custom locking/unlocking of rows so that rows are only editable once they have been unlocked.

Thank you

Chris
Christopher
Top achievements
Rank 1
 asked on 28 Aug 2012
0 answers
211 views
I have managed to follow most of the examples and instructions regarding how to configure my Kendo UI MVC TreeView for remote data/on-demand binding.  However, I have not been able to find out what parameters needs to be setup on the server to get it to work properly.

Is there an example I can follow that shows server methods/parameters?  All of the examples I've seen so far only include client methods/parameters.

I have managed to get the call to the server to work using :
 
@Html.Kendo().TreeView().Name("treeView").DataSource(dataSource => dataSource.Read(read => read.Action("actionName", "controllerName")))

but none of the parameters and return values I've worked with on the server work at all.

Any and all C# (or even VB) server-side MVC controller method examples are appreciated!

Edit:

My apologies, but this should probably be in the Kendo MVC section of the forums.  I also think I have found my answer...the problem was that I was not allowing Get requests to my controller method.  The resulting exception was getting buried somewhere.  I have since changed my controller method and result list to a custom class as follows:

public JsonResult TreeView(string id)

which returns a list of:

    public class kendoTreeViewItem
    {
        public string id;
        public string text;
        public string imageUrl;
        public string spriteCssClass;
        public bool hasChildren;
        public bool encoded;
    }

 

Steven
Top achievements
Rank 1
 asked on 28 Aug 2012
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?