Telerik Forums
Kendo UI for jQuery Forum
1 answer
7.0K+ views
Ok, I'm missing something somewhere.

I need to be able to set focus to a specific cell (cellIndex) when a grid is in inline edit mode.

Is it possible to do this?

Jerry
Iliana Dyankova
Telerik team
 answered on 18 Jul 2012
2 answers
84 views
Using MVVM, how can I set the column widths for a bound grid (using templates)?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 18 Jul 2012
1 answer
170 views
Hi,

Initially i am having 4 tabs.Now i am have a button addTab when ever i am clicking a addTab it is adding a newTab with some content.
I have declared only one <div> tag and i am adding the tabs dynamically.it works fine.But, when ever i am clicking the newly added tab and going back to the already defined tabs it is displaying two contents.How can i rectify that problem.Is any thing wrong with the div tags.Please provide me any samples.



Thanks
Harut
Top achievements
Rank 1
 answered on 18 Jul 2012
3 answers
377 views
how get the upload progress (0-100) using the API? or another way
T. Tsonev
Telerik team
 answered on 18 Jul 2012
4 answers
814 views
Hello Good People,

i've been fan of telerix product for so long but honestly this kendo ui has blown my mind. Kudos to the team behind it.I choose kendo over wijmo and pure jquery ui especially because of component as the grid.BUT my first attempt to the grid has turn out be a challenge for me.so many hours trying to figure out why my code is not working. am using,php 5.3.5, kohana 3.2 with mysql jquery 1.7.2., firefox 9.0.1, chrome 20.0.1132.57 m .So am pulling data from mysql . with firebug activated i could not find any reason why my codo should not work. i even copy the code from one of the example file just to be sure am not the cause of it. the data is returned as one would expect , a valid json format string as shown on the attached file. i use northwind database for my trial.

Can anyone give a hand? there is something am not doing right ?

here is a snippet of the clientside file. 

<div style="height: 35px"></div>
<div id="clientsDb"> 
    <div id="grid"></div>
</div> 
<script type="text/javascript">
    $(function(){
        $("#grid").kendoGrid({
            dataSource: {
                type: "odata",
                transport: {
                    read: {url: "read", datatype: "json", contentType: 'application/json'}
                },
                schema: {
                    model: {
                        fields: { 
                              CompanyName: {type: "string"},
                              ContactName: {type: "string"}                       
                        }
                    }
                },
                pageSize: 10,
                serverPaging: true,
                serverFiltering: true,
                serverSorting: true
            },
            height: 250,
            filterable: true,
            sortable: true,
            pageable: true,
            columns: [
 
                  {field: "CompanyName", title: "Company Name"},
                  {field: "ContactName", title: "Contact Name"}
            ]
 
        });
    });
</script>

here is my php/kohana/mvc action 
public function action_read()
{
 
        $query = DB::select("ContactName","CompanyName")->from("customers")->offset(0)->limit(10);
        $accounts = $query->execute("northwind");
        $toSend = array();
        foreach($accounts as $acc){
            $toSend[] = $acc;
        }
//        $data = "{\"results\":". json_encode($toSend)."}";
        $data =  json_encode($toSend);
        $this->auto_render = false;
        echo $data;
    }
joseph
Top achievements
Rank 1
 answered on 18 Jul 2012
3 answers
349 views
Is it possible to open kendo window within a container(workspace,div ...). I need to open multiple windows within a workspace (say a ..div ). The windows should be movable only inside the container and not beyond that. Is there a way of achieving this.
Dimo
Telerik team
 answered on 18 Jul 2012
0 answers
95 views
Hi There

I am extremely extremely new to kendo and i am really having a problem with the kendo buttons for a web page.

I have the bottons where I need them etc but I need the buttons to call functions in another class.

Where do I do that? Usually I'd just double click on the button and it would show me the coding place but these buttons do not.

How do I do it?

Please please help I am desperate.

Thank you.
Syanne
Top achievements
Rank 1
 asked on 18 Jul 2012
0 answers
177 views
Hello, I trying to implement a delete and edit links in a custom column in Kendo grid (razor engine ), 
I have images for the buttons and I want to use them so that I can trigger the appropriate actions in my controller.
The two buttons (as I implemented them in regular HTML) are as follows 
<td class="edit_td">
                        <a href="@Url.Action("DataSourceEdit", "Configuration", new { dataSourceID = item.DataSourceID })" title="edit" class="button_edit_icon">
                        </a>
                        @Ajax.ActionLink(" ", "DataSourceDelete", "Configuration", new { dataSourceId = item.DataSourceID, version = item.VersionOfTypeString },
                        new AjaxOptions
                        {
                            HttpMethod = "POST",
                            Confirm = "Are you sure you want to delete " + item.Name.ToString() +" Data Source?",
                            OnSuccess = "deleteConfirmation"
                        }
                            , new { @class = "button_delete_icon" }
                            )
                    </td>

As you can see the Edit is simple URL (with class it will attach correct image) 

but the delete is an Ajax call to the action with parameters, on success it will cal JS function and remove a marked  row from my HTML table. Here is my question how can I implement this in Kendo UI Grid for mvc (Razor Engine )

Thank you in advance
Vitali
Top achievements
Rank 1
 asked on 18 Jul 2012
0 answers
198 views
Hi

 We are getting the error  "No parameterless constructor defined for this object" when we try to bind collection to the Kendo grid and obviously the business objects that we have in our business layer has private constructors and it worked fine with Telerik. 

Here is the stack trace of the error 

Line 171:    {
Line 172:        //@(Html.Kendo().Grid<City.Australia.Framework.BL.UserInfo>()
Line 173:        @(Html.Kendo().Grid(Model.Users)
Line 174:            .Name("UserGrid")
Line 175:            .EnableCustomBinding(true)


Source File: d:\Development\City.Australia.Admin\City.Australia.Admin\Views\User\Search.cshtml    Line: 173 

Stack Trace: 

[MissingMethodException: No parameterless constructor defined for this object.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
   Kendo.Mvc.UI.ModelDescriptor.CreateDataItem(Type modelType) +131
   Kendo.Mvc.UI.ModelDescriptor..ctor(Type modelType) +40
   Kendo.Mvc.UI.DataSource.ModelType(Type modelType) +31
   Kendo.Mvc.UI.Grid`1..ctor(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, IGridHtmlBuilderFactory htmlBuilderFactory) +822
   Kendo.Mvc.UI.Fluent.WidgetFactory.Grid() +114
   Kendo.Mvc.UI.Fluent.WidgetFactory.Grid(IEnumerable`1 dataSource) +55
   ASP._Page_Views_User_Search_cshtml.Execute() in d:\Development\City.Australia.Admin\City.Australia.Admin\Views\User\Search.cshtml:173
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81
   System.Web.WebPages.StartPage.RunPage() +19
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +65
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8969117
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

Thanks
Rasika Perera
Rasika
Top achievements
Rank 1
 asked on 18 Jul 2012
0 answers
142 views
I am trying to use the buttongroup to switch between two views that contain charts on mobile device. However, my code is not working. All that is rendered are the two buttons and the nav bar at the top. The charts are not showing up. I tried the code for drawing the charts in stand alone views and that worked fine. I am attaching my code snippets. Please let me know what is the best approach for this.

Thanks,
Anu
Anu
Top achievements
Rank 1
 asked on 18 Jul 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
AICodingAssistant
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
+? 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?