Author Topic: hyperlink when i click on edit button  (Read 3173 times)

ruchabhutada

  • Newbie
  • *
  • Posts: 10
    • View Profile
hyperlink when i click on edit button
« on: July 26, 2016, 11:38:18 am »

Hello sir,

I have question and need your help.

When I click on edit button,
one particular column should have hyperlink,
that is, I want hyperlink in edit mode.
it is coming when there is display view of the grid.

In this hyperlink, I have pop up. Pop up comes, then I update some fields on grid on pop up itself. Then I call to API "updateRow"...
Even the row is also getting updated. But then some fields on grid are getting disabled which should not be. Because I am not editing every column of grid on pop up..

Please reply with your kind help.
Awaiting for your response.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6264
    • View Profile
Re: hyperlink when i click on edit button
« Reply #1 on: July 26, 2016, 05:20:56 pm »
1. Hyperlink in editor: Please check the custom editors demo. Custom editors can be defined in column.editor.type callback.

http://paramquery.com/demos/editing_custom

2.
Quote
But then some fields on grid are getting disabled which should not be

Please check editable property/ callback to find out why the columns are disabled
« Last Edit: July 26, 2016, 05:31:15 pm by paramquery »

ruchabhutada

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: hyperlink when i click on edit button
« Reply #2 on: July 28, 2016, 02:00:04 pm »
I have tried with your code as below:
{ title: "Status", dataIndx: "statusDataIndx, width: 120,
                editor: {
                    type: autoCompleteEditor
              },

Then I have declared as follows :
var autoCompleteEditor = function (ui) {
            //debugger;
            var $cell = ui.$cell,
                rowData = ui.rowData,
                dataIndx = ui.dataIndx,
                width = ui.column.width,
                cls = ui.cls;
            var dc = $.trim(rowData[dataIndx]);

            var $inp = $("<a href='#' id='myLink' class='MyClass'>"+rowData[17]+"</a>")
                .width(width - 6)
                .appendTo($cell)
                .val(dc);
      }

but I am not able to see any effect on that particular column except editor : textBox
.
Please tell me where I am wrong.

ruchabhutada

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: hyperlink when i click on edit button
« Reply #3 on: July 30, 2016, 10:15:43 am »
Sir, I am waiting for your reponse.