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 6212853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:35:28+00:00 2026-05-24T06:35:28+00:00

I am using the Telerik MVC controls (which at first glance are impressive) to

  • 0

I am using the Telerik MVC controls (which at first glance are impressive) to build an MVC3 Razor application, and have a question about the Window control. I am trying to assign an ID to the Window when I create it from JavaScript so that I may reference it at any time using JQuery … $(‘WindowID’) … but can’t seem to be able to do so.

In short, here is my window:

var windowElement = $.telerik.window.create({
        title: "Window opened from JS",
        html: "<strong>Inserting an image...</strong>",
        contentUrl: '',
        modal: false,
        resizable: false,
        draggable: true,
        scrollable: false,
        width: 150,
        onClose: function () { }
    })

I would like to later, from some other random button or event, be able to move, resize, or close the Window by using it’s ID. The problem is, I haven’t been able to assign the Window any ID when creating it in JavaScript.

Note:
When I create the Window in the Razor view, I can assign a “Name” to the Window which DOES allow me to do exactly what I want to. However, I need to be able to create the Window in JavaScript. I guess I could create a bunch of Windows in Razor, then Hide/Show them as needed, but I would like that to be a last resort.

  • 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-05-24T06:35:29+00:00Added an answer on May 24, 2026 at 6:35 am

    Ok, for anybody else interested, I eventually figured this out …

    After creating my window in JavaScript (like this):

    var windowElement = $.telerik.window.create({
        title: "Window opened from JS",
        html: "<strong>Inserting an image...</strong>",
        contentUrl: '',
        modal: false,
        resizable: false,
        draggable: true,
        scrollable: false,
        width: 150,
        onClose: function () { }
    })
    

    I used the .attr() jQuery method to assign the ‘id’ attribute of the Window (like this):

    windowElement.attr('id', 'myChatID');
    

    And that did the trick.

    Note: Of course, I needed to have the jQuery library referenced for this to work …

    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have develop small Asp.net MVC3 application using Telerik rad Controls with in that
I have an ASP.NET application using the Telerik Q1 2009 controls. I have a
I am using the latest version of Telerik MVC controls on my ASP.NET MVC3
We're using the Telerik Rad Controls for ASP.Net Ajax on an ASP.Net MVC project.
I am using the Telerik MVC Extensions and have moved my Scripts folder in
Currently using Telerik ASP .NET MVC Controls version 2011.2.712 Hello all, I am trying
I am using the latest version Telerik MVC controls . I am using ASP.NET
Will using MVC enabled Telerik controls with ASP.NET MVC violate the MVC model? And
I am using Telerik Date Picker for ASP.Net MVC Razor Form. In this form
I'm using Telerik's Grid control from the MVC Extensions. I have it set up

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.