How to customize add_in_form window dimensions

89 views
Skip to first unread message

karthik_krishnan

unread,
Nov 5, 2012, 11:37:04 AM11/5/12
to net...@googlegroups.com
Hi,

Am trying to customize the add_in_form window size.  But it does not seem to be possible.  The GridPanel::RecordFormWindow does not expose the dimensions as part of config_properties in the server side.  I do see them as js_properties.  How do we customize the dimensions of the add_in_form window.

Rgds,
Karthik.

pward

unread,
Nov 5, 2012, 4:41:41 PM11/5/12
to net...@googlegroups.com
In your grid panel class, do the following

class MyGridPanel < BaseGridPanel
  def preconfigure_record_window(c)
    super
    c.width = "85%"
  end
end

karthik_krishnan

unread,
Nov 5, 2012, 10:31:42 PM11/5/12
to net...@googlegroups.com
No Luck.  I could not find an existing preconfigure_record_window method,  Looks like the one you are referring to is for older version of Basepack.  The latest version does not have such facility.  

nomadcoder

unread,
Nov 5, 2012, 10:38:14 PM11/5/12
to net...@googlegroups.com
Actually, the other way around: this code is valid for master, the upcoming 0.8.0.

--
NC
@nomadcoder
author of @netzke



6 Nov 2012 11:31
No Luck.  I could not find an existing preconfigure_record_window method,  Looks like the one you are referring to is for older version of Basepack.  The latest version does not have such facility.  

On Tuesday, November 6, 2012 3:11:41 AM UTC+5:30, pward wrote: --
You received this message because you are subscribed to the Google Groups "Netzke" group.
To post to this group, send email to net...@googlegroups.com.
To unsubscribe from this group, send email to netzke+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/netzke/-/Q08SaWWgkkYJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
6 Nov 2012 05:41
In your grid panel class, do the following

class MyGridPanel < BaseGridPanel
  def preconfigure_record_window(c)
    super
    c.width = "85%"
  end
end

On Monday, November 5, 2012 10:37:04 AM UTC-6, karthik_krishnan wrote: --
You received this message because you are subscribed to the Google Groups "Netzke" group.
To post to this group, send email to net...@googlegroups.com.
To unsubscribe from this group, send email to netzke+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/netzke/-/D8S5tX47YiwJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
6 Nov 2012 00:37
Hi,

Am trying to customize the add_in_form window size.  But it does not seem to be possible.  The GridPanel::RecordFormWindow does not expose the dimensions as part of config_properties in the server side.  I do see them as js_properties.  How do we customize the dimensions of the add_in_form window.

Rgds,
Karthik.
--
You received this message because you are subscribed to the Google Groups "Netzke" group.
To post to this group, send email to net...@googlegroups.com.
To unsubscribe from this group, send email to netzke+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/netzke/-/VPEbg2ew2ocJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

karthik_krishnan

unread,
Nov 5, 2012, 10:45:25 PM11/5/12
to net...@googlegroups.com
oh!  I simply did the following to get it work 

class MyWindow < RecordFormWindow
  js_properties :width => "80%"
end

And in my add_form_window_config, I overrode the class_name

Madipally

unread,
Nov 5, 2012, 10:49:32 PM11/5/12
to net...@googlegroups.com

 Hi Kathik,

            I am using extjs3 and netzke6, i have used following properties to configure the add_in_form window width , which is working for me

    :add_form_window_config =>
    {
       :ext_config =>
       {
      :width =>'700'
       },
       :items => [
       {
         
       }]
     }

    Thanks
     Naveen Kumar Madipally

Karthik Krishnan

unread,
Nov 5, 2012, 11:13:31 PM11/5/12
to net...@googlegroups.com
Thanks Naveen.  Shall try that out as well.  But in the latest netzke if am right, ext_config way of overrides are deprecated.

Best regards,
Karthik Krishnan.
http://karthiks.in


--
You received this message because you are subscribed to the Google Groups "Netzke" group.
To post to this group, send email to net...@googlegroups.com.
To unsubscribe from this group, send email to netzke+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/netzke/-/-f9TJ3STX1cJ.

Madipally

unread,
Nov 5, 2012, 11:23:18 PM11/5/12
to net...@googlegroups.com

Hi Karthik,

          Yes you are right, but that will fire only a warning in the console.try it once.

Thanks
Naveen Kumar Madipally
Reply all
Reply to author
Forward
0 new messages