Before AJAX, we were able to focus a cell in a gridview during a
fullpage postback. After putting the gridview inside an UpdatePanel,
we cannot focus a cell in this gridview anymore. Does anybody know if
it is possible to make such focus? Thanks!
Bill 4 5827
Hello Bill,
I could not really understand, how you want to have focus in the cell of the
Grid. You can access the cell in the RowDataBound event and then set the
focus.
e.row.cell(0).focus()
Could you please send me the code snippet that you were using earlier to
focus on the cell in the grid, which does not seem to be working fine when
the Grid is in the UpdatePanel?
Regards,
Manish www.ComponentOne.com
"fo*******@hotmail.com" wrote:
Before AJAX, we were able to focus a cell in a gridview during a
fullpage postback. After putting the gridview inside an UpdatePanel,
we cannot focus a cell in this gridview anymore. Does anybody know if
it is possible to make such focus? Thanks!
Bill
On Jun 11, 10:49 pm, foolme...@hotmail.com wrote:
Before AJAX, we were able to focus a cell in a gridview during a
fullpage postback. After putting the gridview inside an UpdatePanel,
we cannot focus a cell in this gridview anymore. Does anybody know if
it is possible to make such focus? Thanks!
Bill
Hi Bill,
Try this:
ScriptManager.GetCurrent(this.Page).SetFocus(cell) ;
Mykola http://marss.co.ua - Casual ideas for web development
On Jun 12, 3:38*am, Manish <Man...@discussions.microsoft.comwrote:
Hello Bill,
I could not really understand, how you want to have focus in the cell of the
Grid. You can access the cell in the RowDataBound event and then set the
focus.
e.row.cell(0).focus()
Could you please send me the code snippet that you were using earlier to
focus on the cell in the grid, which does not seem to be working fine when
the Grid is in the UpdatePanel?
Regards,
Manishwww.ComponentOne.com
"foolme...@hotmail.com" wrote:
Before AJAX, we were able to focus a cell in a gridview during a
fullpage postback. *After putting the gridview inside an UpdatePanel,
we cannot focus a cell in this gridview anymore. *Does anybody know if
it is possible to make such focus? *Thanks!
Bill- Hide quoted text -
- Show quoted text -
Thank you for the reply Manish. Focus() works on a control, but not a
cell in a gridview. We need to use javascript to focus a cell.
However once the gridview is in an UpdatePanel, then the javascript
stop working. It is too complicate to post the code here.
Bill
On Jun 12, 5:50*am, marss <marss...@gmail.comwrote:
On Jun 11, 10:49 pm, foolme...@hotmail.com wrote:
Before AJAX, we were able to focus a cell in a gridview during a
fullpage postback. *After putting the gridview inside an UpdatePanel,
we cannot focus a cell in this gridview anymore. *Does anybody know if
it is possible to make such focus? *Thanks!
Bill
Hi Bill,
Try this:
ScriptManager.GetCurrent(this.Page).SetFocus(cell) ;
Mykolahttp://marss.co.ua- Casual ideas for web development
Thanks for the reply. I tried SetFocus() from ScriptManager. I works
with almost all the controls, but not the cell inside a gridview.
Bill This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: davidjgonzalez |
last post by:
I have a GridView that has paging enabled. Each item (as defined in an
ItemTemplate) includes several controls which have operations i would
like to Atlas-enable. Everything is working well except...
|
by: jmdolinger |
last post by:
Hi all,
I'm a newbie to Atlas (and recently ASP.NET) after coming from a long
Java background, also have done quite a bit with an Ajax.NET/ASP.NET
1.1 project, but it was basically all...
|
by: mark4asp |
last post by:
I moved a page to another web-site and now it's broke!
I had 5 pages in their own web-site. These pages have now been moved
to another web-site. Everything is fine except that one of the pages,...
|
by: Reinhard |
last post by:
Hi,
Need some directions on Ajax, UpdatePanel and Gridview to achive the
following:
I like to show a Gridview with Data ONLY if the user is interested in
Details, but without a full page...
|
by: jrnail23 |
last post by:
I have a user control which contains an UpdatePanel, which contains a
MultiView inside, with a GridView in one of the views.
In my GridView, I have a ButtonField which is supposed to trigger a...
|
by: SachinSachin |
last post by:
Hi All,
I am implementing a custom gridview control, that emits some javascript to blink a row whenever a new row is added in gridview. The gridview is inside the <asp:updatepanel> for...
|
by: Raymond Du |
last post by:
Hi,
I am looking for a way to use Ajax inside gridview. I am not talking about
putting a gridview inside an updatepanel and refresh the gridview, I want to
use Ajax on per row basis, when user...
|
by: pablorp80 |
last post by:
Hello,
Here is what I need:
I need the focus and the cursor set to a textbox named txtGT, every time no matter if it is the first page load or whether it is a postback.
Here is the problem:
I...
|
by: SAL |
last post by:
Hello,
I'm trying to include a popup in the ItemTemplate of a gridview row. The
ItemTemplate for the field contains a textbox and when the user clicks in
the textbox I want a popup panel to show...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |