Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8348363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:40:06+00:00 2026-06-09T07:40:06+00:00

I try to create an html helper with a control from Telerik but to

  • 0

I try to create an html helper with a control from Telerik but to do that, I must have this directive at the top of the file:

@using Telerik.Web.Mvc.UI

The problem is in html helper, when I type ‘@using’ and then try to typed ‘Telerik’, visual studio tells me that the namespace don’t exist even if I already use this directive in many other places in the same project.

enter image description here

As you can see with the words in red, Telerik namespace produce errors; ‘Cannot resolve symbol …

This is the same code in one of my EditorTemplates folder of the same project but in this case, without errors:

enter image description here

Is it because it’s not possible to have control other than the MVC framework or I missed something?

Thank you.

EDIT:

After searching and with the help of Darin, I finally found the problem. You can look in the comments of Darin answer.

Also, this this my final code that works:

@using System.Web.Mvc
@using Telerik.Web.Mvc.UI

@helper IntegerTextBox(System.Web.Mvc.HtmlHelper html, string id, int? value, bool enable = true)
{
   @(html.Telerik().IntegerTextBox()
        .Name(id)
        .InputHtmlAttributes(new {style = "width:200px"})
        .Spinners(false)
        .EmptyMessage("")
        .MaxValue(int.MinValue)
        .MaxValue(int.MaxValue)
        .Value(value)
        .Enable(enable)
        )
}

Like I said, you cannot use a @using directive to System.Web.Mvc to reduce the fully qualified type of the first parameter. I don’t know why… ‘HtmlHelper’ looks like ‘html helper’ or ‘@helper’ … the word is in conflict with something in the framework of MVC? I don’t know!? 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:40:07+00:00Added an answer on June 9, 2026 at 7:40 am

    I guess that’s due to the lousy Razor Intellisense support in Visual Studio. Your code should work fine when you run it. You could try reopening the view, restating VS, disable plugins and if it is your lucky day you might even get Intellisense working.

    By the way, you could use the <namespaces> section of your ~/Views/web.config (not to confuse with ~/web.config) and add the Telerik.Web.Mvc.UI namespace. This will avoid you the need to add it to every single Razor view that needs it. Obviously for changes to take effect after modifying this file don’t forget to reopen the razor page (as I already said Razor Intellisense sucks badly in VS).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want try to create this screen, but text fields on the right side
I read this http://developer.android.com/resources/tutorials/notepad/index.html and now try to create my own simple example. For
I try create a map for open ~/.vimrc, but open the ~/.vimrc only when
I try to create styles with first-child and last-child items but I encountered a
I try to create my own linux bash script that calls truecrypt for mounting.
Im try to create a spinner dynamically on press of a button. this is
I try to create the simplest WinAPI window using assembly NASM. I have problem
I try to create a new file inside a JSP and try to save
I've created a few html helper methods for asp.net mvc that I would like
I have a button_to helper method in a view table that I cannot get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.