I have found my mistake, i have overridden mouseDownHandler() because
sometimes VScrollBar was not working proper due to focus . I am sorry, i
have unnecessary incresed one post here. thanks for your appreciation.
Mistake was:
private function setFocusToGrid():void {
focusManager.setFocus(this);
}
                
override protected function mouseDownHandler(event:MouseEvent):void {
    super.mouseDownHandler(event);
    setFocusToGrid();
}


DevSachin wrote:
> 
> Hi, Alex.
> I want to apply default behaviour of Flex. As when we second time click
> inside the editor, cursor will be positioned at clicked position.
>  
> 
> Alex Harui wrote:
>> 
>> On focusIn, use callLater to set the selectionBeginIndex and
>> selectionEndIndex
>> 
>> 
>> On 6/15/10 8:12 AM, "DevSachin" <talktosachin2...@rediffmail.com> wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Hi,
>> I have created a custom grid by extending ADG class. After adding many
>> extra
>> features on it, i am working on editable grid feature but in edit mode, i
>> can not able to use mouse to position the cursor in the
>> editor(UiTextField).
>> All time whole text is selected and i have to use keyboard arrow key to
>> navigate.
>> 
>> I am not sure if it the problem of Focus. Could you plz suggest me what
>> to
>> review?
>> 
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe System, Inc.
>> http://blogs.adobe.com/aharui
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/problem-to-position-cursor-in-itemeditor-by-mouse%2C-in-editable-mode-of-Grid.-tp28892589p28899266.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to