Skip to content

Replies

0
NGIT2013
NGIT2013 answered on Aug 29, 2012 2:26 PM

Michael,

Well I tried using .igdd_NullText as shown below, but it did nothing – the null text didn't change at all on any of my WebDropDowns. I have found that using the .igte_IGNullText does work for WebDropDownCalendar control null text, but I want to style the general Infragistics drop down null text .

Any other suggestions? (Note: I included this right on my ASP.NET page so it should have overridden it properly, I would believe.)

    .igdd_NullText
    {
       background-colortransparent;
       color#666666;
       font-weightnormal;
       font-size8pt;
       font-styleitalic;
       font-familyVerdana,Arial,Helvetica,sans-serif;
       border-width:0px;
       width100%;
       z-index0;
    }
0
NGIT2013
NGIT2013 answered on Nov 4, 2010 8:44 PM

Tsvetelina,

Well that explains my problem (I posted down a few from this). I was having the same issue; clearing all the selected items, but it always selecting the first item in the list. So I changed it to just a Drop Down rather than a list. True, it now doesn't select anything… BUT in the text for the control it is still showing the first line of text (i.e. the drop down shows the first selection in the list, but when I drop-down the list nothing is selected). I can erase the list and tab away, and it then looks fine (no text, nothing selected in the drop down).

Although this would work (I would really rather have a drop down list) I can make do with it IF we can figure out a way to blank out the text in the line when the form is displayed and nothing is selected. What do we have to do for this to work?

/Tom

0
NGIT2013
NGIT2013 answered on Apr 16, 2010 9:24 PM

Viktor,

Wow! That worked! It seems kinda strange that you have to do this after a delay, but at least it works.

Now, the only thing left is to set the focus to the appropriate tab field when the form is first displayed; i.e. when the form is first brought up (not a postback) how can we set the tab field focus then? In my code behind I set the focus to the WebTab? Or do I set it to the text field in the first tab? Or does this also have to be handled via JavaScript?

I would seriously suggest that you guys add an additional parameter to each tab that specifies the 'focus' field – and then have your code internally attempt to set the focus to that field when you build and switch the tabs. That way it is more consistent and developers don't have to set up this code themselves. I really believe it should be an integral part of the WebTab itself.

Anyway, if you can tell me how to get the focus set to a field inside a tab when the form/WebTab is first displayed then I will be all set. Thanks for you help!

/Tom

0
NGIT2013
NGIT2013 answered on Apr 16, 2010 7:53 PM

Viktor,

Your code does work – partially. The top part works great at finding the tab, and getting the field I want to set focus to. But doing a field.focus() doesn't work and causes catches with the following error:

    description: "'$lineinfo' is undefined"
    message: "'$lineinfo' is undefined"
    name: "TypeError"
    number: -2146823279

I even tried doing a field.select() then field.setActive() and even a field.click() – which does not error out but it doesn't set the focus to the selected textbox either. In fact the focus never gets set at all – seems like nothing I do sets the focus to the textbox in the selected tab. There seems to be something in the WebTab that is causing the focus to not take. Any ideas?

/Tom