Hi,
i have hidden variable which is update when the row is selected in GridView, and i need this value in java script, we are trying to modify in igf_grid.js
this.selectRow=function(domNode,select){
......}}this.customFLT()};
in the customFLT() method just i am tring to print value using alert(of javascript) method, which works fine and i am able to see the value i have seleted from GridView, and i have to use this variable to some other method, when i removed the alert method than i am not able to get the selected value. if i add alert method than its works fine. and i have set " immediate="true" " of hiddenvariable in JSF.
please let me know what is causing this problem.
thanks in advance.
dayananda b v
Hi, dayanandabv!
I think I was clear but if not it is probably my fault. Let me explain again what I am doing to reproduce your sample. Since I necessarily don't have all your classes, I made a simple application realizing the functionality you describe, namely to select a value selected from a WebGrid row in a message box. For that aim I have a JSP page with WebGrid and a hidden field. The WebGrid sends a SelectedRowsChangeEvent that is being caught by a listener method where I added your code. In the igf_grid.js file I replace the Infragistics code in the this.selectRow = function(domNode, select) with your customer code and I made the necessary changes (described so far) so that the value of the hiddenField element displayed in the message updates (this was also explained). This configuration works as it is supposed to.
Hi Bozhidar,
is it working for you? for me it is not working, so that's what i asked is there anything i need to change?
daya
I just added this line ig.onPartialRefreshDefault(httpReq); into the igf_grid.js file at the place shown. I did not change anything else.
HI Bozhidar Dedov.
thanks for your replay, i appreciate your continues help.
has you told i have changed the following code according to your suggestion, but it is not working.
is there anything else i need to change? in backing bean? or in design i.e. in JSP design ?
this.selectRow=function(domNode,select){var row=this.getTargetRow(domNode);if(!ig.isNull(row)){if(select){row.select();}else{row.unselect();}var grid=this.getGrid(domNode);if(!ig.isNull(grid)&&grid.isImmediateRowsChangeEvent()){ig.smartSubmit(grid.elm.id,null,null,null,this.customFLT);}}};this.customFLT=function(httpReq){ ig.onPartialRefreshDefault(httpReq); alert("hello"); var value = document.getElementById("form1:hiddenField1").value; alert(value); };
ig.onPartialRefreshDefault(httpReq);
};
I hope this will help you. Yet I think this topic has gone a little bit farther than the purpose of this forum supposes since this is functionality not provided with our product and involves modifying files that should not be modified. For those aims customers are supposed to submit feature requests.