Telerik Forums
UI for ASP.NET MVC Forum
1 answer
929 views
I have this code.  I thought that it would give an ID to the DatePicker.  However, after much debugging, it turns out it changes the name of the parameter which is used on the post.  So the Model Binding was no longer working.

Is this a bug?  I thought that the Name property specified an ID for a control.
@(Html.Kendo().DatePickerFor(m => Model.SearchInfo.StartDate).Name("start-date")

Alexander Popov
Telerik team
 answered on 21 Jan 2014
1 answer
196 views
Does anyone have Grid style issues?

I'm running a local MVC application using IIS express (VS 2012)

Once in a while (seems random) when I refresh the page the grid comes up with no styles (see screenshots)

I'm using the inline editing example with minor changes... not loading any other javascripts...
Dimo
Telerik team
 answered on 21 Jan 2014
3 answers
452 views
I have a Ajax Bound Grid with this column which works:

  
columns.Bound(c => c.Id).Title("")
.ClientTemplate(@Html.ActionLink("Download", "DownloadReport?Id=#=Id#")
.ToHtmlString());
  How do I modify this to show/hide the URL based on c.IsReportAvailable?
Dimiter Madjarov
Telerik team
 answered on 21 Jan 2014
1 answer
463 views

Hi Team,

I am using ImageBrowser as a part of editor widget in my screen . I need to delete an image only if it is not used by other resources. I wired the destroy to an action that checks whether its in use or not. If its in use I would return a message saying it could not be deleted .I got stuck on how to return this message to destroy and stop it from deleting the image from the library.
As the documentation says the configuration values will be sent to jquery.Ajax() function I tried using the success and error functions in the destroy configuration but could not handle the request. It always shows up as undefined.This is how I configured my imagebrowser.

01.imageBrowser: {
02.           path: "/BroadcastType/",
03.           transport: {
04.                read: {
05.                    url: function () { $(".k-breadcrumbs.k-textbox").css('display', 'none'); return "../ImageBrowser/Read" },
06.                    type: "POST"
07.                },
08.                destroy: {
09.                    url: "../ImageBrowser/Destroy",
10.                    type: "POST" ,
11.                    success:function(){},
12.                   error:function(){}
13.                },
14.                thumbnailUrl: "../ImageBrowser/Thumbnail",
15.                uploadUrl: "../ImageBrowser/Upload",
16.                imageUrl: "../ImageBrowser/Image?name={0}"
17.            }
18.        }
In short,
How to stop image from being destroyed from the library until I get a response from backend?
How to handle any errors while backend execution?
Can we override the callback functions in the destroy configuration or should we deal with them at the transport level?

Any pointer to the right direction will be appreciated .

Thanks,
Ramoji.




Dimo
Telerik team
 answered on 21 Jan 2014
1 answer
104 views
Hello,

I'm using a custom filter for my Grid on one specific collumn.
Since a have multiple filters on different collumns I would like to be able to clear the active filter for this single collumn.
I don't want to use dataSource.filter({}); cause this will clear all the active filters.
Could anyone help me with this?
Dimo
Telerik team
 answered on 20 Jan 2014
1 answer
44 views
Hi,
After I closed the ticket # 776594, I found that there is still a problem with your VSIX produced template for MVC 5/VS 2013.  My VS Crashes near the end of the template wizard.  I also saw that the jquery issue is fixed. I have disabled all my add ons & extensions.  Any ideas?

Anthony
Momchil
Telerik team
 answered on 20 Jan 2014
3 answers
644 views
Hi,

I have kendo grid read parameterized method, which search employees. When I as search string with "#" than it does not search. When I debug the code and check searchName value in controller, it was empty. I also checked Json request using IE developer tool, it also remove # values from query string. 

I have pasted my code below. Please guide me.

1. Controller Read Method
01.[HttpPost]
02.public ActionResult ReadEmployee([DataSourceRequest] DataSourceRequest command,string searchName){
03.var empList = GetEmployeeListByFirstAndLastName(searchName)
04.var result = new DataSourceResult
05.           {
06.                Data = empList .FirstName,
07.                Total = empList .LastName
08.            };
09.return Json(result,JsonRequestBehavior.AllowGet);
2. Kendo Grid 
@(Html.Kendo().Grid<EmployeeModel>()
     .Name("Grid")
     .DataSource(dataSource => dataSource
                       .Ajax()
                       .PageSize(20)
                       .Read(read => read.Action("ReadEmployee", "Home", "#"))
 )
      .Columns(columns =>
      {
             columns.FirstName
     })
 
      .Sortable()
      .Scrollable(scrollable => scrollable.Height("auto"))
      .Resizable(resizing => resizing.Columns(true))
      .Pageable(pager =>
      {
          pager.Refresh(true);
          pager.Numeric(true);
      }))

Alexander Popov
Telerik team
 answered on 20 Jan 2014
5 answers
136 views
Hello again!

The restriction works really well for drag & drop, but I'm having troubles with preventing recurring events to overlap. I can do this serverside, but that's not really the friendly way. Anyone got any tips?

// Pär
Vladimir Iliev
Telerik team
 answered on 20 Jan 2014
7 answers
260 views
In regards to this thread:
               
http://www.kendoui.com/forums/kendo-ui-complete-for-asp-net-mvc/general-discussions/vs2013-compatibility.aspx

I am looking for an ETA on the Kendo MVC Extensions for VS 2013 feature as its original ETA was mid-November. I am looking to upgrade my  Kendo  VS Solution from VS 2010 to  VS 2013 and have the ability to us the automatic updater as required.

Petar
Telerik team
 answered on 20 Jan 2014
2 answers
629 views
I'm using a combobox to create a searchable list of employees from where the user needs to select one.
If there is a false name entered they should get a warning (which already works) and the first person in the list needs to be selected. I Was trying to do that like this:

<div class="editor-field edit-project">
(Html.Kendo().ComboBox()
.Name("PersonId")
.HtmlAttributes(new { @class = "input-project" })
.DataTextField("Fullname").DataValueField("Id")
.DataSource(source => { source.Read(read => { read.Action("GetPeople", "Project"); }); })
.MinLength(3)
.Filter("contains")
.Events(ev => ev.Change("checkcombobox")))
</div>
And in javascript i'm doing this:

function checkcombobox(e)
{
    if (this.value() && this.selectedIndex == -1) {
        alert('Gelieve een geldige persoon te selecteren');
        var cbx = $("#PersonId").data("kendoComboBox").Selected(0);
 
    }
}
Could anyone help?

Thanks in advance
Tim
Top achievements
Rank 1
 answered on 20 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?