nihad640 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Problem using Hilites Editor in ListGrid #624

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Using attached sample
2. From the ListGrid context menù choose "Hilites Editor" item
3. Whithin Hilites Editor choose "Add Advanced Rule"
4. Choose "Customer" from field list
5. Choose "Conteins" from criteria list

What is the expected output?
Side of the criterion "Contains" should reveal a TextItem

What do you see instead?
Side of the criterion "Contains" TextItem is not available

What version of the product are you using?
SmartGWT nightly build (2011-08-28) 

On what operating system?
Windows Xp, Windows 7

What browser(s) does this happen in?
FF 4.0, FF 5.0, Crome 12.0.742.122.

Please provide any additional information below.
This only happens, in my project, in this case, with this listgrid, in all 
other cases it works perfectly, I compared the definitions of ListGrid and its 
datasource, but I have not found substantial differences, I have no errors or 
exception in devmode.

Thanks in advance.

Original issue reported on code.google.com by vlui...@tiscali.it on 29 Aug 2011 at 10:02

Attachments:

GoogleCodeExporter commented 9 years ago
A test case should be minimal - when you post a large file like this with a lot 
going on, it does not suggest a bug, but simply a subtle logic error somewhere 
in your app.  Post a minimal test case clearly indicating a bug and it will be 
looked at (and the issue marked valid again).

Original comment by smartgwt...@gmail.com on 29 Aug 2011 at 7:55

GoogleCodeExporter commented 9 years ago
Thanks for the response,
I have reduced the definition of the listgrid and its datasource, trying to 
keep the meaning of the test, I have no way to reduce further the example, this 
happens only with this definition, in other cases it works perfectly and I can 
not understand what could be the cause TextItem the loss of which should be 
available at the side of the criterion.
Thanks for your attention and I did not want to submit a sample verbose
but only as is the case.

Original comment by vlui...@tiscali.it on 30 Aug 2011 at 7:02

Attachments:

GoogleCodeExporter commented 9 years ago
By minimal we really really mean minimal.  Please narrow this down to the code 
actually necessary to reproduce the problem, and make sure you are testing in a 
standard, unmodified SDK with only this code added, otherwise, it is likely 
you're just seeing a bug in your application, not a framework bug.

Original comment by smartgwt...@gmail.com on 30 Aug 2011 at 10:15

GoogleCodeExporter commented 9 years ago
Thanks

Original comment by vlui...@tiscali.it on 31 Aug 2011 at 7:06

GoogleCodeExporter commented 9 years ago
I do not want to waste anyone's time but the case, in latest attached sample, 
shows that when
a ListGridFiels has setCanEdit(false), in my sample 
assigneeField.setCanEdit(false);,
TextItem (beside criterion) does not Appear in the Hilites Editor 
when 
setCanEdit (true)
or;
setCanEdit (null);
TextItem appears next to the criterion.
Thank you for your attention and I hope not to abuse your kindness.

Regards

Original comment by vlui...@tiscali.it on 31 Aug 2011 at 10:21

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the clear description and test case. It turns out there was a 
framework bug here.
We've now resolved this. The fix will show up in nightly builds under both the 
2.x and 3.x SmartGWT branches.

Original comment by smartgwt...@gmail.com on 31 Aug 2011 at 6:02

GoogleCodeExporter commented 9 years ago
Thanks for the concern and good work.

Original comment by vlui...@tiscali.it on 1 Sep 2011 at 1:40