473,385 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Update textbox in datagrid on client side

Hi,

Working with ASP.NET 2.0 with Masterpages.

Here is my datagrid...

<asp:DataGrid ID="dgSelectedFields" runat="server"
BorderStyle=None
GridLines="None"
CssClass="grdData"
AutoGenerateColumns="False" >
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label id="lblColumnID" runat="server"
Visible="False" Text='<%# DataBinder.Eval(Container.DataItem,
"Column_ID") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Display">
<ItemTemplate>
<asp:CheckBox ID="chkDisplay"
runat="server" checked='<%# DataBinder.Eval(Container.DataItem,
"Display") %>' />
</ItemTemplate>
<ItemStyle Font-Bold="False"
Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"
HorizontalAlign="Center" />
<HeaderStyle Font-Bold="False"
Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"
HorizontalAlign="Center" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Sort">
<ItemTemplate>
<asp:TextBox id=txtSort runat="server"
CssClass="txtBox"
Text='<%#
DataBinder.Eval(Container.DataItem, "Sort_Order") %>'
Width="20px"
/>
</ItemTemplate>
<ItemStyle Font-Bold="False"
Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"
HorizontalAlign="Center" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Field">
<ItemTemplate>
&nbsp;<asp:HyperLink ID="hypField" runat="server" NavigateUrl='<%#
Databinder.Eval(Container.DataItem,"COLUMN_DISPLAY _NAME","javascript:FilterWindow('{0}');"
) %>'><%#DataBinder.Eval(Container.DataItem,
"COLUMN_DISPLAY_NAME")%></asp:HyperLink>

</ItemTemplate>
<ItemStyle Width="150px" />
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Filter">
<ItemTemplate>
<asp:TextBox id=txtFilter runat="server"
Text='<%#
DataBinder.Eval(Container.DataItem, "Filter") %>'
Width="150px"
ReadOnly="true" CssClass="txtReadBox "
/>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Remove">
<ItemTemplate>
<asp:CheckBox ID="chkRemove" runat="server"
/>
</ItemTemplate>
<ItemStyle Font-Bold="False"
Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"
HorizontalAlign="Center" />
</asp:TemplateColumn>
</Columns>
<HeaderStyle Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" HorizontalAlign="Center"
ForeColor="Maroon" />
</asp:DataGrid>

---------------
when clicked on HyperLink ID="hypField", opens up the dialog box that
allows to set filters.
Dialogbox calls JavaScript function on parent page with filter value
and field that opened dialogbox. At this point I would like to go
through datagrid and update txtfilter box with filter value based on
field info. Like to set this value on client side to avoid round-trip
to set one filter box.

Help in this matter is greatly appreciated.

Thanks,

- Reena

Mar 27 '06 #1
0 1439

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Manish | last post by:
Hey folks I am having a weird problem in ASP .Net. My page is in C#. I have a datagrid, which populates based on selection in drop down box on ASP page. This datagrid has template textbox colum in...
4
by: CaptRR | last post by:
I think this is the right group to post to, so here goes. My problem is this, I cannot update the datarow to save my life. Been on this for 2 days now, and still am no closer to figuring it out...
7
by: Cemal Karademir | last post by:
Hello, Please forgive my simple question, but i don't know the correct synatx. From the masterpage i want to put a text in an textbox and then select an item in the datagrid. I do know how to...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
25
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
3
by: Mr Newbie | last post by:
I am using a DataGrid for Edit and Update. However, Im wondering what the best strategy for client side validation would be as I dont think the validators can reference the TextBoxes which come up...
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
13
by: shookim | last post by:
I don't care how one suggests I do it, but I've been searching for days on how to implement this concept. I'm trying to use some kind of grid control (doesn't have to be a grid control, whatever...
1
by: gabe | last post by:
How do you call a client side javascript callback method after an update panel has posted back to the server? I have two update panels (A + B) with a gridview in each panel. GridView B has a...
0
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.