This is a migrated thread and some comments may be shown as answers.

[Solved] Change offset client side

1 Answer 118 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
chp
Top achievements
Rank 1
chp asked on 17 Jun 2009, 08:06 AM
Hi,

is it possible to change the properties offesetx and offsety on client side programming? How can i access this values client side?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Jun 2009, 09:33 AM
Hello,

Have a look at the following example that shows how to get and set the OffsetX and OffsetY properties from client side.

ASPX
 
<telerik:RadComboBox ID="RadComboBox1" runat="server">  
    <Items> 
     . . .  
    </Items> 
</telerik:RadComboBox> 

JavaScript
 
<script type="text/javascript">  
function SetOffset()  
{  
    var combo = $find("<%= RadComboBox1.ClientID %>");  
    alert(combo.get_offsetX());  
    alert(combo.get_offsetY());  
    combo.set_offsetX(200);  
    combo.set_offsetY(200);  
}  
</script> 

Thanks,
Princy.
Tags
ComboBox
Asked by
chp
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or