How to specify the WebDropDown Current Text (Entered By User) Max Length = 3
Hello,To achieve the limitations you requested you have to add WebTextEditor to your page and set its property MaxLength to 3 as in the following code:<ig:WebTextEditor ID="WebTextEditor1" runat="server" MaxLength="3">
</ig:WebTextEditor>
and then set the EditorID="WebTextEditor1" of the WebDropDown you want to limit. However it occurs that there is an issue with this under IE and I have logged this behavior in our internal tracking system with a Development ID of 84465. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.
I will leave this case open and update you with any new information after the review. You can also continue to send updates to this case at any time.
You can view the status of the development issue connected to this case by going to the “My IG” tab on our website, hovering to the "My Support Activity" dropdown and selecting the "Development Issues" tab.
you a so as a temporary solution I will suggest you to handle one of the following events of the WebDropDown:function WebDropDown1_ValueChanging(sender, eventArgs)
{
if (sender._elements.Input.value.toString().length > 3)
eventArgs.set_cancel(true)
}
function WebDropDown1_InputKeyDown(sender, eventArgs)
Please let me know if you need further assistance.
Hi Nikifor,
Thanks for the quick Reply, above mentioned solution with using EditorID="WeTextEditor" worked perfectly. I have tested it along with all the major new released Browser(s), its working fine except IE, that you had already mentioned.Following Code :
function igdropdown_ValueChanging(sender, eventArgs) { alert("inside function"); if (sender._elements.Input.value.toString().length > 3) eventArgs.set_cancel(true) } function igdropdown_InputKeyDown(sender, eventArgs) { alert("inside function"); if (sender._elements.Input.value.toString().length > 3) eventArgs.set_cancel(true)
Doesn't hits the alert. I'm missing something.
Is there any way to pass parameters in below mentioned example:
ClientEvents-InputKeyDown="isNumeric(XXX);"
where xxx is the parameter to be passed:
function isNumeric(keycode){
//SOME CODE
Thanks Maya, For your help and Time, The Demo Code is working fine and as expected, Its working Fine Firefox, Safari and Chrome latest Versions, I'm Able to restrict user to enter only Numeric Digits and With Respective Length ,
However on IE 8 , When i Change the Value or Selected Index is Changed , It Causes page to Post Back.
Kindly Let me know what could be causing the issue.
Hi , I have Following Code in My Scenario ,
<ig:WebDropDown ID="igWebDropDown" runat="server" Width="45px" AutoSelectOnMatch="false" AutoFilterQueryType="Contains" EnableAutoFiltering="Client" DropDownContainerHeight="195px" DropDownContainerWidth="43px" EditorID="igWebNumericEditor" AutoPostBack="false"> <AutoPostBackFlags SelectionChanged="Off" ValueChanged="Off" /> </ig:WebDropDown>
<ig:WebNumericEditor ID="igWebNumericEditor" runat="server" MaxLength="3" MaxValue="500" MinValue="10" DataMode="Int" HorizontalAlign="Left" Buttons-ButtonPressedCssClass="ui-widget" Nullable="false" CausesValidation="false"> <AutoPostBackFlags CustomButtonClick="Off" EnterKeyDown="Off" ValueChanged="Off" /> </ig:WebNumericEditor>
Above mentioned Code works fine with Mozilla , Chrome , Safari, However with IE when Changing
the Value or when Value is Changed , Page PostBacks .............
I have implemented ,
in DROPDOWN
<AutoPostBackFlags SelectionChanged="Off" ValueChanged="Off" /> In WebNumericEditor, <AutoPostBackFlags CustomButtonClick="Off" EnterKeyDown="Off" ValueChanged="Off" /> and CauseValidation= "False"
<AutoPostBackFlags SelectionChanged="Off" ValueChanged="Off" />
In WebNumericEditor,
<AutoPostBackFlags CustomButtonClick="Off" EnterKeyDown="Off" ValueChanged="Off" />
and CauseValidation= "False"
Kindly Let me know what could be causing the Issue
Hello Abhishek ,
This seems to be the issue with IE that Nikifor mentioned earlier. It has been logged in our internal system and has already been resolved by the developers. It’s awaiting the next service release.
A case with number: CAS-70379-CRLWZB has been created on your behalf and the dev issue has been attached to it.You can view it’s progress by going to the “My IG” tab on our website, hovering to the "My Support Activity" dropdown and selecting the "Development Issues" tab.
You’ll be notified when the service release with this issue resolved is released.
If you need further information don't hesitate to ask.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Thanks
Hello Abhishek,
When installed the newest service release should be automatically added to your GAC and replace the old assemblies. Also the dll’s should be located under you main Infragistics Installation folder which is by default:
C:\Program Files\Infragistics\NetAdvantage 2011.1\ASP.NET
There you should have the different CLR’s and the corresponding assemblies in their Bin folder . That folder should contain all the dll’s that were present in the previous release.
For more information you can refer to our online help:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/
Let me know if you have any further questions.
In My Solution, I have following assemblies referenced:
Web.v11.1
Web.UI.Document.Excel.v11.1
Web.Ui.Document.Reports.v11.1
Web.Misc.v11.1
Web.Shared.v11.1
Web.UltraWebGrid.v11.1
Web.WebDataGrid.v11.1
Web.WebDataInput.v11.1
In Service Release Dll's I can only find 3 out my referenced dll's
Which when referenced throws an dependency error,
I have renamed 1006 to 2064 in all the location in Web.Config and page mark-up.
Kindly let me know what is causing the issue
Thanks,
Abhishek
Hi,With the latest service realease all the versions of the assemblies are 11.1.20111.2064. Your old version contained assemblies 11.1.20111.1***. All you have to do i to replace 11.1.20111.1*** with 11.1.20111.2064
I have downloaded the above mentioned service release, Kindly let me know which Dll's should i refer because I canot find
Infragistics4.Web.v11.1XXXX dll
kindly let me know am I missing Something
Regards,
I’d just like to notify you that this issue has been resolved in our newest service release version: 11.1.20111.2064.