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
Problem Adding text to navigation buttons
27/10/2009
10:43
Avatar
larole
Guest
Guests

Hi,

I'm having problems trying to add text (next to the icon) to the default navigation buttons(add,edit,del,refresh). I tried to do it this way but nothing happens:

.navGrid('#pagernav', { edit: true, add: true, del: true, search: false },
    {
        edittext: 'Edit', caption: 'Edit2', title: 'Edit3', height: 400, width: 600, closeAfterAdd: true, closeAfterEdit: true, modal: true, beforeShowForm: function(form) { onBeforeShowFormEditUser(form) }, afterShowForm: function(form) { onAfterShowFormEditUser(form) }, afterSubmit: onAfterSubmit
    },
...

Is this suppose to work? (maybe i have missread the documention)

If i add the text in the i18n file the text will appear but this is not an option for me. I can ofc make my own add/edit/del buttons but how do i make them react in the same way the default buttons do? (if i make my own button i get the text next to the icon.)

Thx

27/10/2009
11:30
Avatar
Mike27516
Guest
Guests

you have to set theses options in the navigator options array like so:

    }).navGrid('#equipsvcp', { addtext: "Add", edittext: "Edit", deltext: "Delete", edit: true, add: true, del: true, search: false, refresh: false },

{},{},{},{}...

//options

28/10/2009
05:42
Avatar
larole
Guest
Guests

Thx m8 that was very helpful

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
41 Guest(s)

Currently Browsing this Page:
1 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