Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
a problem with jqGrid-datepicker
15/01/2012
18:23
Avatar
sali
New Member
Members
Forum Posts: 1
Member Since:
14/01/2012
sp_UserOfflineSmall Offline

Dear All,
I'm new to Jquery and Jqgrid programming. wanted to know if any forum member can help me solve my problem.
I created a grid with Jqgrid and would like to add a text box that represents the date using datepicker, but not working.
Thanks very much.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My First Grid</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/mint-choc/jquery-ui-1.8.16.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" />
<link rel="stylesheet"  type="text/css"  media="screen" href="css/StylPer.css"/>
<style>

html, body {
    margin: 0;
    padding: 0;
    font-size: 75%;
}
</style>

<script src="js/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="js/i18n/grid.locale-es.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.src.js" type="text/javascript"></script>
<script src="js/src/grid.custom.js" type="text/javascript"></script>
<script src="js/src/jqModal.js" type="text/javascript"></script>
<script src="js/src/jqDnR.js"type = type="text/javascript"></script>
<script src="js/i18n/jquery-ui-timepicker.js" type="text/javascript"></script>

<script type="text/javascript">

$(document).ready(function(){             
        
$("#list").jqGrid({
    url:'example.php',
    datatype: 'xml',
    mtype: 'POST',
    colNames:['Inv No','Date','Amount','Tax','Total','Notes','destino'],
    colModel :[
      {name:'invid', index:'invid', width:55, editable:false,editoptions:{readonly:true,size:10}},
      {name:'invdate', index:'invdate', width:90,editable:true,editoptions:{size:10}},
      {name:'amount', index:'amount', width:80, align:'right',editable:true,editoptions:{size:25}},
      {name:'tax', index:'tax', width:80, align:'right',editable:true,editoptions:{size:10}},
      {name:'total', index:'total', width:80, align:'right',editable:true,editoptions:{size:10}},
      {name:'note', index:'note', width:150, sortable:false,editable:true,editoptions:{size:10}},
      {name:'destino', index:'destino', width:80, align:'right',editable:true,editoptions:{size:25}}
    ],   
    pager:('#pager'),
   rowNum:10,
   rowList:[10,20,30],
  sortname: 'invid',
 sortorder: 'desc',
   viewrecords: true,
 gridview: true,
caption :" grid ",
    

//editurl:"example.php",

});

$("#Datte").datepicker({
            showWeek: true,
            firstDay: 1,
            changeMonth: true,
            changeYear: true });        
        
});    
</script>
 
</head>
<body>
<table id="list"class="scroll"></table>
<div id="pager"class= "scroll" style="text-align:center;"></div>
<div id="pagered" class="scroll" style="text-align:center;"></div>
 <input type="text" name="TxtDatte" id="Datte" />
</body>
</html>
 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
46 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information