Cursor re-positioning
-
AS in my last question the tabing is working great for the first row. the last object in the row is an event button, that causes the fields to be added to a total field on the row. The problem is when it comes back from the Command Event it is starting the cursor at the top of the page and not at the next row in the datalist. Is there a way to solve the cursor positioning problem? If so, could you supply a suggestion.. Thanks...
-
AS in my last question the tabing is working great for the first row. the last object in the row is an event button, that causes the fields to be added to a total field on the row. The problem is when it comes back from the Command Event it is starting the cursor at the top of the page and not at the next row in the datalist. Is there a way to solve the cursor positioning problem? If so, could you supply a suggestion.. Thanks...
for this u have to set focus property of the control in second row....
-
for this u have to set focus property of the control in second row....
-
Write javascript that gets a reference to the row you want, and calls focus on it. This involves making sure your rows have id attributes that you can use to select them with document.getElementById
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Write javascript that gets a reference to the row you want, and calls focus on it. This involves making sure your rows have id attributes that you can use to select them with document.getElementById
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
This sounds like a really cool way to accomplish this except I don't have a clue about how to create unique id attributes or each row. I acutally have a sample of seting the cursor on an object in Javascript is that is not a problem. the problem now is "How to create these ID's for each row?" Code sample please... thanks...
-
This sounds like a really cool way to accomplish this except I don't have a clue about how to create unique id attributes or each row. I acutally have a sample of seting the cursor on an object in Javascript is that is not a problem. the problem now is "How to create these ID's for each row?" Code sample please... thanks...
I am actually not sure, if you're using a datagrid or gridview. I've done it in the past using a repeater, which gave me complete freedom over the HTML that was generated. You may be able to get the actual row tag in an itemdatabound event and modify it from there, that seems the most likely way to do it.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I am actually not sure, if you're using a datagrid or gridview. I've done it in the past using a repeater, which gave me complete freedom over the HTML that was generated. You may be able to get the actual row tag in an itemdatabound event and modify it from there, that seems the most likely way to do it.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
I am using vb.net with this datalist, as the code behind. I have found in the past that datalist, dataGrid and repeater are simular, if you could show me what you do with repeater maybe I can figure out what to do for the datalist... I do all sorts of modifications of attributes in the itemdatabound event, lsts add another. Thanks...
-
I am using vb.net with this datalist, as the code behind. I have found in the past that datalist, dataGrid and repeater are simular, if you could show me what you do with repeater maybe I can figure out what to do for the datalist... I do all sorts of modifications of attributes in the itemdatabound event, lsts add another. Thanks...
The point is that with a repeater, you write out the HTML that is emitted verbatim, so you can build a table and set the td/tr tags to contain ids if you want. I don't think the datalist will let you, I think the itemdatabound event is your best bet
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
I am actually not sure, if you're using a datagrid or gridview. I've done it in the past using a repeater, which gave me complete freedom over the HTML that was generated. You may be able to get the actual row tag in an itemdatabound event and modify it from there, that seems the most likely way to do it.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
The problem is I don't know what you mean by a row tag, is that like the index of the row. Because the ItemCommand event gives me the e.item.index of the row that I am on, me.datalist1.Items(e.item.index) at this point there is something called UniqueID is that what I want. How do I pass it to the javascript. There is also a .Focus() method here how does that work? Thanks for all your assistance... Chuck...
-
The problem is I don't know what you mean by a row tag, is that like the index of the row. Because the ItemCommand event gives me the e.item.index of the row that I am on, me.datalist1.Items(e.item.index) at this point there is something called UniqueID is that what I want. How do I pass it to the javascript. There is also a .Focus() method here how does that work? Thanks for all your assistance... Chuck...
If you look at the source code of your actual page, those controls are all building an HTML table. You want to focus on a row, so you need to be able to select that row. The tr or td tag in question. If it has an id, the ClientID is the property you want. Then you can emit some js that passes the ClientID ( which you generate on the server ), to a method which takes that id, and selects the object and focuses on it
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
If you look at the source code of your actual page, those controls are all building an HTML table. You want to focus on a row, so you need to be able to select that row. The tr or td tag in question. If it has an id, the ClientID is the property you want. Then you can emit some js that passes the ClientID ( which you generate on the server ), to a method which takes that id, and selects the object and focuses on it
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.