skip navigation
Telerik UI for ASP.NET AJAX
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting & Mocking
Telerik Reporting
Telerik Report Server
Telerik JustMock
Automated Testing
Test Studio
Test Studio Dev Edition
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
Fiddler Jam
FiddlerCap
FiddlerCore
Free Tools
VB.NET to C# Converter
Testing Framework
View all products
Overview
Demos
Roadmap
What's New
Roadmap
Release History
Migrate to Blazor
Docs & Support
Support and Learning
Support and Learning Hub
Docs
Demos
Virtual Classroom
Forums
Videos
Blogs
Accessibility and Security
Submit a Ticket
Productivity and Design Tools
Visual Studio Extensions
ThemeBuilder
Embedded Reporting
Pricing
Shopping cart
Login
Contact Us
Try now
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX
This is a migrated thread and some comments may be shown as answers.
Add Attributes in rad window
2 Answers
134 Views
Window
This is a migrated thread and some comments may be shown as answers.
Taran
Top achievements
Rank 1
Taran
asked on
12 Mar 2009,
06:25 AM
Hi,
Please tell me how can i add attributes in rad window from client side.
Add a comment
Submit comment
Cancel
2 Answers
, 1 is accepted
Sort by
Score
Date
0
Princy
Top achievements
Rank 2
answered on
12 Mar 2009,
09:02 AM
Hi Taran,
I hope you want to pass value as attribute of RadWindow object. I tried following aproach for this.
JavaScript in main page:
<script type=
"text/javascript"
>
function
setstatusbar()
{
var
oWnd = radopen (
"DialogWindow.aspx"
,
""
);
oWnd.newattribute=
'-hai-'
;
//set new attribute
}
</script>
JavaScript in window page:
<script type=
"text/javascript"
>
function
getattributes()
{
var
oWindow = GetRadWindow();
alert(oWindow.newAttribute);
// get the attributs.
}
function
GetRadWindow()
{
var
oWindow =
null
;
if
(
window
.radWindow)
oWindow =
window
.radWindow;
else
if
(
window
.frameElement.radWindow)
oWindow =
window
.frameElement.radWindow;
return
oWindow;
}
</script>
Thanks,
Princy.
Add a comment
Submit comment
Cancel
0
Fiko
Telerik team
answered on
16 Mar 2009,
07:36 AM
Hi Taran,
The approach that
Princy
provides is the right one. You should just make sure to use the same name of the attribute.
All the best,
Fiko
the Telerik team
Instantly find answers to your questions on the new
Telerik Support Portal
.
Check out the tips
for optimizing your support resource searches.
Add a comment
Submit comment
Cancel
Answer this question
Drag and drop files here or
browse
to attach...
Browse
for files to attach...
Supported file types: PNG, JPG, JPEG, ZIP, RAR, TXT. Max total file size - 20MB.
Submit answer
Cancel
Tags
Window
Asked by
Taran
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Fiko
Telerik team
Share this question
or
Copy link