EasyUI Forum
May 04, 2024, 05:41:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Initialise datebox on: July 03, 2018, 10:55:57 PM
Thank you for your response!

I did this way as I dont want to set value to second/end datebox

Code:
$('#dg').datagrid({
  onBeginEdit: function(index,row){
var db1 = $(this).datagrid('getEditor', {index:index,field:'datebox1'});
var db2 = $(this).datagrid('getEditor', {index:index,field:'datebox2'});
$(db2.target).textbox('textbox').bind('focus',function(e){

var db1Date = $.fn.datebox.defaults.parser($(db1.target).datebox('getValue'));
if(undefined != $.trim(db1Date) && $.trim(db1Date) != ''){
$(db2.target).datebox('calendar').calendar('moveTo', new Date(db1Date));
}
});
  }
})

Thanks!
2  General Category / EasyUI for jQuery / Initialise datebox on: July 01, 2018, 11:49:43 PM
Hi,

I would like to initialize databox in Editable datagrid.

I have a grid with two datebox  - startDate and endDate. When I click on datebox then calendar is initialised with current date.
If I select start date as 15-Jul-2015 [which is not current date] then I need to initialise endDate calendar to July 2015 rather than current date.

Can you please help me with this!

Thanks!
3  General Category / EasyUI for jQuery / Re: Custom validation on textbox blank value on: May 21, 2018, 02:03:53 AM
OK. Thanks!
4  General Category / EasyUI for jQuery / Custom validation on textbox blank value on: May 17, 2018, 11:19:51 PM
Hi

I have defined custom validation which are not getting fired on blank or empty value.

Is there any workaround for same?

Thanks
Niketa


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!