I am not a web UI supporter, so I will explain myself clearly with a tag with my overflow: Auto; . Inside that divide, I have a gridview. A JQuery function that selects the clicked row in the grid, by changing only the CSS class (to change the background navigation). I would like to know that I can put a kind of anchor so that the grid is returned to the selected row when the user has a postback (with "refresh" button).
You have a code sample to show this idea. Grid:
& lt; Div id = "divGrilleConsole" class = "pnlGrilleConsole" & gt; & Lt; Asp: GridView id = "dbgListeOperations" runat = "server" CssClass = "texte-normal" width = "930px" autoconfiguration column = "wrong" showheader = "wrong" & gt; & Lt; Header style font-size = "11px" font-name = "wordana" font-bold = "true" backallore = "# E8EDF5" & gt; & Lt; / Header style & gt; & Lt; Columns & gt; & Lt; ASP: Bound column datafilled = "NO_SEQ_ACT_DEPLO" header text = "no CEC." & Gt; & Lt; Header style width = "35px" & gt; & Lt; / Header style & gt; & Lt; / ASP: BoundColumn & gt; & Lt; ASP: TemplateColumn & gt; & Lt; Header style width = "10px" & gt; & Lt; / Header style & gt; & Lt; ItemTemplate & gt; & Lt; Asp: HiddenField id = "hdfNoAction" runat = "server" /> & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateColumn & gt; & Lt; ASP: Bound column datafilled = "NOM_PROJ_DEPLO" header text = "project" & gt; & Lt; Header style width = "295px" & gt; & Lt; / Header style & gt; & Lt; / ASP: BoundColumn & gt; & Lt; ASP: Bound column datafilled = "NOM_SERVE_PHYSIQUE" header text = "body of surgery" & gt; & Lt; Header style width = "275px" & gt; & Lt; / Header style & gt; & Lt; / ASP: BoundColumn & gt; & Lt; / Column & gt; & Lt; / ASP: GridView & gt; & Lt; / Div & gt;
Partial JQuery Script:
$ (document) .ready (function () {var gv = $ ("# & lt;% = dbgListeOperations. ClientId% & Gt; "); var rows = gv.find ('Toddy & gt; tr'); // Bogal Dan tos les de la grill miter rows.eitch (function () {// on each line click event For $ (this). (Function () {$ (this) .toggleClass ("GrilleDonneesTriee_Select"); // The remainder of the argument here ... ....}};});
Do you think that when there is a postback, in the line to choose the divide Is it possible to not give up? How do I do this? I think that with anchors, but I do not really understand how it works.
After just joining a few people in this post looking for a solution, I finally used a JQuery plugin.
Comments
Post a Comment