Column Access

QuestionsColumn Access
Sri asked 11 years ago

Hi Abu,

I am trying the column access demo. I am trying the inline edit. When I double click the row, it is editable. But When I click on any of the editable field, I see the values are adding(getting concatenated) in the non editable column. In this case it is Gender.

One more question:
I want to have the fields non-editable in the inline edit and these non-editable fields should be available when I add a new record through inline add. Please let me know if there is a way to do it.

Thanks,
Sri

3 Answers
Abu Ghufran answered 11 years ago

For Q1:
I am unable to generate such case. If you can send some screenshot of error & the code, it would help.
You can email me at [email protected]

For Q2:
You can put readonly in edit options. It will remain editable in add.
$col["editrules"] = array("readonly"=>true);

Sri answered 11 years ago

Hi Abu,

I have emailed you the screenshot.

Thanks,
Sri

Abu Ghufran answered 11 years ago

Hello,

Thanks for identifying this issue.
It's fixed now in latest build. In jqgrid_dist.php

replace

$str_inline_access .= 'jQuery("'.$tag.'[name='.$c["index"].']:last").parent().append("<span></span>");';

with
$str_inline_access .= 'jQuery("'.$tag.'[name='.$c["index"].']:last").parent().not(":has(span)").append("<span></span>");';

Your Answer

20 + 9 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?