Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Add/Edit dialog form
28/11/2010
19:39
Avatar
jorg.grape@gmail.com
New Member
Members
Forum Posts: 1
Member Since:
28/11/2010
sp_UserOfflineSmall Offline

Hi Tony,

I would like to have different dialog forms depending on if add or edit button is clicked in the grid.

The cell in add form should be editable while the cell should be read only in the edit dialog form.

Here is an example:

1: User pressed the add button and the add dialog form appears

2: User inputs all the required fields (for example "location").

3: When the user tries to edit their input, the "location" field should be readonly in edit dialog form.

Looking forward to your reply.

Thanks in advance

Cheers,

Joe

28/11/2010
22:40
Avatar
AJ
New Member
Members
Forum Posts: 1
Member Since:
28/11/2010
sp_UserOfflineSmall Offline

Hello. I don't know if it's the best way, but I think it'll work. Using the event onInitializeForm:

onInitializeForm: function() { $('#location').attr("readonly","readonly")

-=AJ=-.

jorg.grape@gmail.com said:

Hi Tony,

I would like to have different dialog forms depending on if add or edit button is clicked in the grid.

The cell in add form should be editable while the cell should be read only in the edit dialog form.

Here is an example:

1: User pressed the add button and the add dialog form appears

2: User inputs all the required fields (for example "location").

3: When the user tries to edit their input, the "location" field should be readonly in edit dialog form.

Looking forward to your reply.

Thanks in advance

Cheers,

Joe


29/11/2010
12:00
Avatar
waiting
Member
Members
Forum Posts: 40
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

is it simply works:

   {name: 'col2', index:'col2', width: 120, align: 'center', editable: false, sortable: true   },

waiting

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
42 Guest(s)

Currently Browsing this Page:
2 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information