Hi, I need help please.
No clue in xml & WebtextEdit, I am editing an xslt stylesheet that creates asp controls.
Below is the WebTextEdit control, I want to add an mousemove event:
<xsl:element name="igtxt:WebTextEdit"> <xsl:attribute name='id'><xsl:value-of select='$Name' /></xsl:attribute> <xsl:attribute name='runat'>server</xsl:attribute> <xsl:attribute name='Text'><xsl:value-of select='$Value' disable-output-escaping="yes" /></xsl:attribute> <xsl:attribute name='MouseMove'>"<xsl:value-of select='@name' />".style.color = '#006AB6';</xsl:attribute> <xsl:for-each select="$Attributes/Attribute"> <xsl:if test=". != ''"> <xsl:attribute name='{@name}'><xsl:value-of select='.' /></xsl:attribute> </xsl:if> </xsl:for-each> <xsl:copy-of select="$Events" /> </xsl:element>
The code works to change the style as it works on other objects.
Please assist with how i can add a mouseover event to WebTextEdit control
I've never tried setting up ASP.NET controls using XSLT before.
You want to set the MouseMove attribute of the ClientSideEvents element underneath the WebTextEdit. The value of this attribute should be the name of the JavaScript function you want called when the event is raised.
As you've already seen, setting a MouseMove attribute on the WebTextEdit itself has no effect. Our controls listen to client-side events in a different manner than most ASP.NET controls, since we need to render information to different places in the HTML output for certain events.
Thank You very much, I found the methods within my app.
But for some reason I can't change the style of a current WebTextEdit object.
Thank You
I believe you've asked about changing the style of WebTextEdit in this thread:http://forums.infragistics.com/forums/t/14794.aspx