asp.net - Setting text after a bind - radtextbox -


when insert new record in grid:

<telerik:radtextbox id="txtredemptionbeforemessage" text='<%#bind("redemptionbeforemessage") %>' runat="server" /> 

i want able to:

protected void radgrid1_itemcreated(object sender, griditemeventargs e)     {         if (e.item grideditformitem && e.item.isineditmode)         {             if (e.item.ownertableview.isiteminserted)             {                 //fill in defaults messages required                 radtextbox radtextbox = (radtextbox)item.findcontrol("txtredemptionbeforemessage");                  radtextbox.text = "default redemption before message"; 

this works when there no text='<%#bind("redemptionbeforemessage") %>

problem: how default message work - suspect need @ event after bind.

the bind in there because same form code used edit.

already answered question in thread - setting text after bind - radtextbox


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -