C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Infragistic Controls with Java script


Posted Date: 22 Apr 2008    Resource Type: Articles    Category: General

Posted By: Abhishek Arya       Member Level: Diamond
Rating:     Points: 10



In this document we are adding the tricks and ideas about the Controls in Infragistics.
1) Web Html Editor
It is the WYSWYG type of html editor provided by the Infragistic. Most of the functions which I used this control is in JavaScript only.
That’s how you can set the value in the editor using java script
1) Java Script to write the values in the Control
// Find the id of the control
var oEditorQuestion = iged_getById('ctl00_PageContentPlaceHolder_uwgFAQCollection_ctl00_wheQuestion');
//Now check if the value about to assign this control is null or not.
if(row.getCell(3).getValue()!=null)
{
// If value is not null then use the function Set text to set the value in the control.
if(oEditorQuestion)
oEditorQuestion.setText(row.getCell(3).getValue());
}
Else
// If value is null then Set the text as “”
oEditorQuestion.setText("");
2) Java Script to Read the values from the Control
// Find the id of the control
var oEditorQuestion =iged_getById("ctl00_PageContentPlaceHolder_uwgFAQCollection_ctl00_wheQuestion")
if(oEditorQuestion!=null)
{
// Use the function Get text to get the value from the control
activeRow.getCellFromKey("Question").setValue(oEditorQuestion.getText());
}

2) Web image Button
I have to disable this button in one of my functioanlity. I don’t want to do it on the serve side or at design time. So what I have done is I called a javacript function which will enable the button. Here is the javascript
// Find the id of the image control and then set the enable property as false and the button will be disable.
ig_getWebControlById("ctl00_ContentPlaceHolder1_lbtnPlaceAnOrder").setEnabled(false);









Responses

Author: Sebastian    13 Jun 2008Member Level: Gold   Points : 1
I was looking for the details based on this topic.Thanks for sharing it with me.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Advantage aned disadvantage of CSS
Previous Resource: Client Side Script to Export to Excel 2003
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

internet fax

Contact Us    Privacy Policy    Terms Of Use