Telerik Forums
Kendo UI for jQuery Forum
1 answer
397 views
I have no idea how this is happening, but when I try to set the default panel to open using class='k-state-active' the page loads and then the page loads again inside the open panel. 

The HTML: 
<ul id="strategyPanels">
    <li class="k-state-active">Asset Class Allocator
        <div id="assetClassAllocator"></div>
    </li>
    <li>Fund Allocator
        <div>investment fund stuff</div>
    </li>
    <li>Cost Calculator
        <div>cost calculator</div>
    </li>
</ul>
and the script: 
$('#strategyPanels').kendoPanelBar();
There is more JavaScript initializing a Kendo Grid using the assetClassAllocator DIV. 

Note: If I set the second panel as active it works fine: 
<ul id="strategyPanels">
    <li>Asset Class Allocator
        <div id="assetClassAllocator"></div>
    </li>
    <li class="k-state-active">Fund Allocator
        <div>investment fund stuff</div>
    </li>
    <li>Cost Calculator
        <div>cost calculator</div>
    </li>
</ul>
Same goes for the third panel. 

Another Option: 
I've even tried doing this directly via JavaScript, but it does the same thing. 
//setup panel bars
$('#strategyPanels').kendoPanelBar();
var panelBar = $('#strategyPanels').data('kendoPanelBar');
panelBar.expand($('#strategyPanels li:first-child'));
So it would seem that this has something to do with the Kendo Grid in the first panel.
What potential issues could cause the panel bar to behave like this? 

Regards,
Jacques
Jacques
Top achievements
Rank 2
 answered on 05 Nov 2013
4 answers
306 views
Hi, 
The template feature of the KendoUI DropDownList works fine, I’m very pleased with it. I can easily display a “multicolumn” view, but there is a little issue, I think. Trying to add columns headers is not that easy…


I found on the Telerik forums a brilliant idea, which consists of adding the following handler on the DataBound event:

function boundUsage(e) {
    $('<div style="overflow:auto;"/>')
      .html("<table><tr><td width='100px'>Code</td><td width='100px'>Libellé</td></tr></table>")
      .prependTo('#Poltf_Usage_id-list');
}

But the result seems to me a little confusing: the Poltf_Usage_id-list keep its size (200px), while the Poltf_Usage_id-listbox (ul) is deplaced, thus displaying the last <li> outside the div. 

As a solution (not very elegant), I tried to add on the BoundUsage function

$('#Poltf_Usage_id_listbox').css("height", "80%");

in order to force the list to fit into its parent. Another idea, please?

Thank you
Dimiter Madjarov
Telerik team
 answered on 05 Nov 2013
1 answer
370 views
Hello 

I've recently ran into some problems trying to use the Kendo CreateFilterExpression function. I am trying to build an expression that contains all filter values 
and query it to the database. The problem i had with this is the FilterExpression contains a lot of NULL checks. I don't want this.

Is there a way to create an Expression without having the NULL checks. I found out that there is a boolean LiftMemberAccessToNull that should do the trick,
but it is defined as internal.

Another question would be. Is it possible to change the implementation of the IFilterDescriptor interface?
Vladimir Iliev
Telerik team
 answered on 05 Nov 2013
1 answer
963 views
How do i get the datatype of a column in kendo Grid on the client side in javascript/Jquery? For eg i want to know whether the column is of type text or numeric or date. I checked inside $('#kendoGrid').data('kendoGrid').columns, but it does not show any detail about the column data type.
Ignacio
Top achievements
Rank 1
 answered on 04 Nov 2013
1 answer
75 views
Any ideas why after updating Kendo UI  to 2013.2.918 I get a blank white screen after the splash screen fades. It works fine on Android and in a web browser.

Thank you,

-Steven
Steven
Top achievements
Rank 1
 answered on 04 Nov 2013
4 answers
83 views
I am using Kendo UI MVVM system for my view models in Javascript, and I am loving it. But I am having an issue come up in situations where I want to set an ENTIRE view model to be filled with the data I get back from a server. For instance...

var viewModel = kendo.observable({
    Name : null,
    Properties : []
});
Let's assume for a moment that this has 17 or so more properties. Instead of doing this ...
viewModel.set("Name", $object.Name);
viewModel.set("Properties", $object.Properties);
over and over, is there a way to just set the entire thing to the data received?
Stacey
Top achievements
Rank 1
 answered on 04 Nov 2013
0 answers
156 views
...seems like a big omission to not have a selected event in the scheduler...no?

Or is it fired under another event?


ANSWERED HERE: http://www.kendoui.com/forums/kendo-ui-web/scheduler/click-or-select-event-.aspx
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 04 Nov 2013
3 answers
180 views
I  am running into an issue when trying to deploy our project to an Azure development emulator.  Is there something specific that we need to be doing in order to deploy to Azure?  The code compiles normally and runs under IIS.

The project is using Windows Azure Tools version 2.1.

I've checked the project settings and the Kendo dll is being copied locally, so it should not be missing from the Azure deployment.

The exception is:

Microsoft.WindowsAzure.ServiceRuntime Critical: 201 : Role entrypoint could not be created:
System.TypeLoadException: Unable to load the role entry point due to the following exceptions:
-- System.TypeLoadException: Method 'Insert' in type 'company.SchedulerEventService' from assembly 'company, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
 ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
   --- End of inner exception stack trace ---
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.GetRoleEntryPoint(Assembly entryPointAssembly)
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.CreateRoleEntryPoint(RoleType roleTypeEnum)
   at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum)
 

The implementation: 
using Kendo.Mvc.UI;
using System.Data;
using System.Linq;
using System.Web.Mvc;

public class EventViewModel : ISchedulerEvent
{
      //... getters and setters
}
public
class SchedulerEventService : ISchedulerEventService<EventViewModel>
{
    public virtual void Insert(EventViewModel task, ModelStateDictionary modelState)
    {
        //... code emitted
    }
     
    public virtual void Delete(EventViewModel appointment, ModelStateDictionary modelState)
    {
        //... code emitted
    }
     
    public virtual IQueryable<EventViewModel> GetAll()
    {
        //... code emitted
    }
     
    public virtual void Insert(EventViewModel appointment, ModelStateDictionary modelState)
    {
        //... code emitted
    }
     
    public virtual void Update(EventViewModel appointment, ModelStateDictionary modelState)
    {
        //... code emitted
    }
}
Petyo
Telerik team
 answered on 04 Nov 2013
1 answer
99 views
I saw that the service pack now work when the box-sizing is set to border-box.

However, in kendo.common.less (line 5413) I see that content-box is still specified for k-widget.

Is the intent of the service pack to allow us to override this safely, or was this overlooked in the change to support border-box?

Thanks,
Gary
Iliana Dyankova
Telerik team
 answered on 04 Nov 2013
1 answer
72 views
I am using the image browser (from the editor) and it works just fine as long as the amount of items in the current folder is small. If you add a new folder and the number of items in the current window alphabetically means that a new entry with a name of New Folder requires a scroll down to find it there is a problem. The scroll action causes the Create Command to be executed and a New Folder is created without letting the user name the folder. Once the folder is named there is no way that I can find to rename a folder. This is a big limitation for an otherwise elegant control. 

Is there some way to make the created New Folder appear at the top of the window or am I missing something. I have found that once you click the Add Folder button, if you click any key on the keyboard it will enter that value plus take you to the new folder without posting the name to the server. Then you can change the name, click Enter and the folder will be named what you want. This is extremely awkward and almost impossible to explain to a user. 

Can someone tell me a way around this issue please?

Terry
Dimo
Telerik team
 answered on 04 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?