Jump to content

Grid Edit As Default


Recommended Posts

Hello Olivier,

 

Welcome to Caspio Forum!  :) 

 

I think, you can use the following Java Script code (you can add Header&Footer element to the Result Page of your DataPage, select the Footer element, click the "Source" button and enter the code):

<script type="text/javascript">function f_dispatchEvent(v_element, v_type){
 ///<summary></summary>
 ///<param name="v_element" type="HTMLElement"></param>
 ///<param name="v_type" type="String"></param>
 if(v_element.dispatchEvent) {
  //var v_e = new Event(v_type);
  var v_e = document.createEvent('MouseEvents');
  v_e.initEvent(v_type, true, true);
  v_element.dispatchEvent(v_e); //new Event(v_type, {"bubbles":true, "cancelable":true})
 } else if(v_element.fireEvent){
  v_element.fireEvent('on' + v_type);
 }
};

setTimeout(function(){
 var v_element = document.getElementsByName("GridEditButton")[0];
f_dispatchEvent(v_element, "click");
}, 5);
</script>

I hope, it helps.

 

Also you can add your idea to the Ideabox. From my point of view, it is a very good idea.
Link to comment
Share on other sites

Hi Jan!

 

Thank you for the welcome. yes I am knew at Caspio :-) 

I thought I was missing a stupid botton that I should click but couldn't find. I see there is no such botton.

 

thanks a lot for your great answer, it works perfectly!

 

I will suggest it in the ideabox as per your suggestion.

 

now I have to figure out how to change the size of columns as I am having trouble with it

 

thanks again,

Olivier

Link to comment
Share on other sites

  • 1 year later...
  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...