Skip to main content

@Scripts.Render("~/bundles/jqueryval")


if you are using kendo UI web for asp.net MVC and you are getting the error when you are click on create new.






just hide/remove the code from create & Edit razor view of your controller


 @section Scripts {  
   @Scripts.Render("~/bundles/jqueryval")  
 }  


*Now This problem is resolve in VS 2013

Comments

  1. After having read heaps of other blogs an tried a many suggestions without any luck, finally I stumble upon your blog. Tried your suggestion, and everything simply works....!
    Great!
    Two things remaining:
    1. a big hand for you for this excellent suggestion!
    2. What will be the penalty? Or: why was this code there in the first place?

    ReplyDelete
  2. Thank you Peter Klein.
    Till Now i have no problem.
    Hope their is no penalty option.
    if you have any let me know.

    ReplyDelete
  3. I already reached this conclusion, no one "as far I find" told me:

    1) what this "~/bundles/jqueryval" do
    2) why its so needed
    3) why its implemented in every CREATE & EDIT page
    4) what could happen if I remove it

    So I reached my own conclusion, I just need confirmation.

    "~/bundles/jqueryval" Avoid the multiple requests from a single user in short periods of time.

    How its work?

    I assume that the application assign some kind of validation's code so its only send 1 request, regardless of how many times the request has been asked, and that validation's code just change after the request were sent.

    what could happen if this code is removed?

    Maybe in short scales nothing could happen, but with massive amount of users accessing 1 server at the same time, clicking multiple times a link that doesn't respond at the speed that they expect that its should work (just like some people do), could cause that the server's accessibility drop the user's access (all of them) and crash the server to save-self all its can (just like when your power supply shut down when it overheated).

    Sources?

    None. This is just an assumption based on what I have read around the web, I need confirmation. All I know is that if this code is here, then its should have (or had) an useful use, which one is? I don't know, but ignore it is not a solution

    By the way, I never delete, I corned it as Comment, until be 100% sure that its unuseful

    ReplyDelete
  4. Thank you for your wonderful feedback.

    The Microsoft.Web.Optimization package is now obsolete.

    http://stackoverflow.com/questions/9475893/how-to-add-reference-to-system-web-optimization-for-mvc-3-converted-to-4-app

    If Anyone want to manage it then he/she may can get direction from

    http://www.kendoui.com/forums/mvc/general-discussions/vs2012-rtm-mvc4-kendo-bundle-not-rendering.aspx

    But i think it's better to hide the error code.

    Thank you.


    ReplyDelete
  5. I removed the code and the error disappeared, but validation (date annotation) client side crashed.

    ReplyDelete

  6. currently i have done 3 application using kendo ui web. i didn't get any error on client side.

    Just removing the code
    "validation (date annotation) client side crashed."
    it will clear to me if you please share your code.

    on the other side

    The Microsoft.Web.Optimization package is now obsolete.

    http://stackoverflow.com/questions/9475893/how-to-add-reference-to-system-web-optimization-for-mvc-3-converted-to-4-app



    ReplyDelete

Post a Comment

Popular posts from this blog

mvvm double click event in listview

If you want to get the double click event on a listview item you can try with this code; <ListView Grid.Row="0" Grid.RowSpan="3" Grid.Column="0" Width="250" Height="200" HorizontalAlignment="Stretch" VerticalAlignment="Top" AlternationCount="2" BorderBrush="#FFA8CC7B" ItemContainerStyle="{StaticResource alternatingStyle}" ItemsSource="{Binding FromPayerNameList}" SelectedItem="{Binding SelectedFromPayer, Mode=TwoWay}"> <ListView.ItemTemplate> <DataTemplate> <TextBlock Width="{Binding Path=ActualWidth, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListView}}}" Text=...

WPF datagrid cell textbox change event

Entity/Class: public class FeesDetails : INotifyPropertyChanged { public int Id { get; set; } public string FeesName { get; set;} public string FeesDetailsName { get; set; } public int? PaidAmount { get; set; } public event PropertyChangedEventHandler PropertyChanged; private void NotifyPropertyChanged(System.String info) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(info)); } } public int feesAmount { get; set; } public int FeesAmount { get { return this.feesAmount; } set { if (value != this.feesAmount) { this.feesAmount = value; NotifyPropertyChanged("FeesAmount"); } } } } XAML: <DataGrid AutoGenerateColumns="False" Height="21...

The calling thread must be STA, because many UI components require this.

Using Thread: // Create a thread Thread newWindowThread = new Thread(new ThreadStart(() => { // You can use your code // Create and show the Window FaxImageLoad obj = new FaxImageLoad(destination); obj.Show(); // Start the Dispatcher Processing System.Windows.Threading.Dispatcher.Run(); })); // Set the apartment state newWindowThread.SetApartmentState(ApartmentState.STA); // Make the thread a background thread newWindowThread.IsBackground = true; // Start the thread newWindowThread.Start(); Using Task and Thread: // Creating Task Pool, Each task will work asyn and as an indivisual thread component Task[] tasks = new Task[3]; // Control drug data disc UI load optimize tasks[0] = Task.Run(() => { //This will handle the ui thread :The calling thread must be STA, because many U...