I agree that we need to stick with a method, my original method WAS to update a textbox within a datagrid row, but not knowing javascript and also beginning to realize my own issues between server/client side, we ended up with the textarea solution you had some up with on the other thread.
Once...
I have started a new thread on this
http://www.tek-tips.com/viewthread.cfm?qid=968509&page=1
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
I can fill in the text box within the grid in javascript with this:
document.getElementById('datagrid1_0_isSelected').value = '1';
So how can i do it by NOT hardcoding the index ( i am sure my syntax is incorrect):
document.getElementById('datagrid1_' + SRow.itemIndex +...
Let me know if I should start a new thread.
If I can set the value of a textbox client-side and read it server-side, then why cant I imbed a textbox in the grid and set that to '1' client-side and the read through the rows of the grid for that value server-side?
I think you trying to get that...
This is exactly what I have been trying to do All day today in some fashion or another.
What it all came down to was that I did not have runat=Server in my asp:textbox control!
This code works! And I am very glad you posted it, I know it will help others as well. I have seen a great deal of...
Thanks! This does seem to be doing something similar to what I would like to do. Is it possible for you to post both the HTML and the Server Side code?
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
That is exactly what I need to do:
TGreer:
If, for example, you want to know WHICH row was selected, in order to do further processing, you'll have to add something to the ViewState for server code to look at.
The grid (which will be a multi-select grid) can get quite large and a post-back...
I am sorry - I still cannot "read" the contents of isSelected once the "submit" type button was clicked on the vb.net server code.
Help!
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
I can barely remember but I know you have to install that Microsoft.web.ui.webcontrols and there was some twist to that. I am sorry I cannot remember the exacts on that but if you search it here or on google I think you can find it.
Also, be sure that you add microsoft.web.ui.webcontrols.dll...
I have had and am having an afternoon of meetings so as soon as I can get back on this and have a moment I will definetly visit your site and other sponsors!
Since I beleive you have given me all the information I need (and then some!) I give you a star (wish I could give you 10).
Again, thank...
I guess the topic name s/b something like Perpetuating Client Side Datagrid Row selections back to Server. But I did not know I would not be able to capture the Rows.backcolor on the server. This is how this whole nightmare started.
Per your request I posting simple HTML and vb code-behind...
I am working on it now.
I am not sure exactly what this line is doing:
var txtID = btnID.substring(0,startPos) + txtName + btnID.substring(startPos+btnName.length,btnID.length);
I do not have a button (cmdAddToShip) for user to click on. My onclick event is for the row assigned in the...
tgreer said:
I'll code up a little example for you, if that would help.
Yes, please!!! Thank you !@
PH
I was walking home one night and a guy hammering on a roof called me a paranoid little weirdo.
In morse code.
-Emo Phillips
I cannot change the table contents because at design time it is a datagrid. At run time it becomes a table.
I do see what you are saying though it makes sense. Can you help me just alittle more?
1. Could I do what you suggest in an attribute added in the VB.net code? similar to...
Wow. If it isnt obvious by now, I am self-taught and my teacher is aweful ;) - So I will TRY to answer what you have asked.
The datagrid is a the asp.net datagrid control. I just found out a few days ago that it renders itself as <TABLE><TR> etc in the HTML. So I cannot answer
Do you give...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.