search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

TextBox in Resource column

Asked by Thomas OD
12 years ago.

Hi,

is there a way to add a textbox to a resource row ?

i've tried to add a <INPUT type=text/> or <TEXTAREA/> in the innerHtml property of a Row header column, but i 'm not able to get, in the code-behind, the value entered in client-side controls : Does anyone has tried to do something similar or do you have any idea?

Thanks for helping me.

Thomas

Answer posted by Dan Letecky [DayPilot]
12 years ago.

If you insert the <input> element manually you won't be able to get its value easily on the server side - it won't be mapped automatically to a server-side control because it doesn't exist.

You should be able to read the values during PostBacks using Request.Form[name]:

string value = Request.Form["inputname"];

If the purpose of inserting the <input> is to allow editing the resource, I suggest you take a look at the active areas feature introduced in 7.1:

http://www.daypilot.org/demo/Scheduler/ActiveAreas.aspx

It allows you to add a hover icon that will activate a context menu (or fire custom JavaScript).

Answer posted by Thomas OD
12 years ago.

Thank you Dan, it was just what i'm looking for !
I don't know why I didn't think of it sooner.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.