Advertisement
Anan_Desni

bufferview vs frozen column

May 8th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 9.89 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5.     <title></title>
  6.     <link rel="stylesheet" type="text/css" href="res/easyui/themes/bootstrap/easyui.css" />
  7.     <script type="text/javascript" src="res/easyui/jquery.min.js"></script>
  8.     <script type="text/javascript" src="res/easyui/jquery.easyui.min.js"></script>
  9.     <script type="text/javascript" src="res/easyui/datagrid-bufferview.js"></script>
  10.     <script type="text/javascript">
  11.         $(document).ready(function(){
  12.             var data = [{"id":1,"value":"Other specified injury of ulnar artery at forearm level, left arm, subsequent encounter"},{"id":2,"value":"Pedestrian on skateboard injured in collision with two- or three-wheeled motor vehicle in traffic accident, initial encounter"},{"id":3,"value":"Broken internal left hip prosthesis"},{"id":4,"value":"War operations involving unspecified explosion and fragments, civilian, initial encounter"},{"id":5,"value":"Pathological fracture in other disease, pelvis, subsequent encounter for fracture with delayed healing"},{"id":6,"value":"Displacement of internal fixation device of bones of foot and toes, initial encounter"},{"id":7,"value":"Puncture wound with foreign body of left middle finger with damage to nail, subsequent encounter"},{"id":8,"value":"Other osteonecrosis of right ulna"},{"id":9,"value":"Hereditary nephropathy, not elsewhere classified with diffuse crescentic glomerulonephritis"},{"id":10,"value":"Postprocedural seroma of unspecified eye and adnexa following an ophthalmic procedure"},{"id":11,"value":"Nondisplaced fracture of medial condyle of unspecified femur, subsequent encounter for open fracture type I or II with routine healing"},{"id":12,"value":"Quadruplet pregnancy, unspecified number of placenta and unspecified number of amniotic sacs, third trimester"},{"id":13,"value":"Fall from non-in-line roller-skates"},{"id":14,"value":"Puncture wound without foreign body of left little finger with damage to nail"},{"id":15,"value":"Abrasion of other part of head"},{"id":16,"value":"Toxic effect of venom of other African and Asian snake, accidental (unintentional), initial encounter"},{"id":17,"value":"Other traumatic nondisplaced spondylolisthesis of sixth cervical vertebra, initial encounter for closed fracture"},{"id":18,"value":"Nondisplaced fracture of shaft of first metacarpal bone, unspecified hand"},{"id":19,"value":"Laceration of other intra-abdominal organs, subsequent encounter"},{"id":20,"value":"Complete traumatic metacarpophalangeal amputation of left little finger, subsequent encounter"},{"id":21,"value":"Moderate laceration of unspecified kidney, subsequent encounter"},{"id":22,"value":"Atherosclerosis of unspecified type of bypass graft(s) of the right leg with ulceration of other part of foot"},{"id":23,"value":"Perforation due to foreign body accidentally left in body following kidney dialysis, subsequent encounter"},{"id":24,"value":"Displacement of cranial or spinal infusion catheter, sequela"},{"id":25,"value":"Breakdown (mechanical) of esophageal anti-reflux device, subsequent encounter"},{"id":26,"value":"Injury of left internal carotid artery, intracranial portion, not elsewhere classified"},{"id":27,"value":"Salter-Harris Type IV physeal fracture of lower end of humerus, right arm"},{"id":28,"value":"Excessive weight gain in pregnancy, unspecified trimester"},{"id":29,"value":"Corrosion of first degree of left lower leg, sequela"},{"id":30,"value":"Neoplasm of unspecified behavior of unspecified site"},{"id":31,"value":"Other viral enteritis"},{"id":32,"value":"Derangement of unspecified lateral meniscus due to old tear or injury, unspecified knee"},{"id":33,"value":"Burn due to unspecified watercraft on fire, subsequent encounter"},{"id":34,"value":"Toxic effect of chewing tobacco, intentional self-harm"},{"id":35,"value":"Other disorders of brain in diseases classified elsewhere"},{"id":36,"value":"Polyhydramnios, third trimester, fetus 2"},{"id":37,"value":"Traumatic hemothorax, subsequent encounter"},{"id":38,"value":"Unilateral primary osteoarthritis, right hip"},{"id":39,"value":"Nondisplaced unspecified fracture of right lesser toe(s), subsequent encounter for fracture with routine healing"},{"id":40,"value":"Pedal cycle driver injured in collision with other nonmotor vehicle in nontraffic accident, sequela"},{"id":41,"value":"Unspecified focal chorioretinal inflammation"},{"id":42,"value":"Underdosing of other drugs acting on muscles, initial encounter"},{"id":43,"value":"Nondisplaced fracture of proximal phalanx of left index finger, sequela"},{"id":44,"value":"Other juvenile osteochondrosis of hip and pelvis"},{"id":45,"value":"Spastic entropion of left upper eyelid"},{"id":46,"value":"Adverse effect of selective serotonin reuptake inhibitors, sequela"},{"id":47,"value":"Other stimulant use, unspecified with intoxication, unspecified"},{"id":48,"value":"Driver of bus injured in collision with pedal cycle in traffic accident"},{"id":49,"value":"Nondisplaced spiral fracture of shaft of ulna, right arm, subsequent encounter for closed fracture with malunion"},{"id":50,"value":"Other specified disorders of ear, bilateral"},{"id":51,"value":"ABO isoimmunization of newborn"},{"id":52,"value":"Unspecified sprain of right middle finger, subsequent encounter"},{"id":53,"value":"Superficial injury of knee and lower leg"},{"id":54,"value":"Complete traumatic amputation of penis"},{"id":55,"value":"Nondisplaced fracture of middle third of navicular [scaphoid] bone of unspecified wrist, sequela"},{"id":56,"value":"Open bite of unspecified breast"},{"id":57,"value":"Poisoning by unspecified fibrinolysis-affecting drugs, accidental (unintentional), sequela"},{"id":58,"value":"Adverse effect of histamine H2-receptor blockers, sequela"},{"id":59,"value":"Legal intervention involving injury by rubber bullet, bystander injured, subsequent encounter"},{"id":60,"value":"Unspecified traumatic displaced spondylolisthesis of second cervical vertebra, sequela"},{"id":61,"value":"Car passenger injured in collision with fixed or stationary object in traffic accident, sequela"},{"id":62,"value":"Accidental hit or strike by another person"},{"id":63,"value":"Flexion deformity, unspecified ankle and toes"},{"id":64,"value":"Melanocytic nevi of left eyelid, including canthus"},{"id":65,"value":"Corrosion of unspecified degree of male genital region"},{"id":66,"value":"Cellulitis of right orbit"},{"id":67,"value":"Foreign body in conjunctival sac, unspecified eye, sequela"},{"id":68,"value":"Salter-Harris Type I physeal fracture of lower end of right femur, sequela"},{"id":69,"value":"Tonic pupil, right eye"},{"id":70,"value":"Strain of extensor or abductor muscles, fascia and tendons of right thumb at forearm level, initial encounter"},{"id":71,"value":"Corrosion of unspecified degree of left palm, sequela"},{"id":72,"value":"Supervision of elderly multigravida, first trimester"},{"id":73,"value":"Food in respiratory tract, part unspecified causing other injury, initial encounter"},{"id":74,"value":"Radial collateral ligament sprain of left elbow, sequela"},{"id":75,"value":"Nondisplaced oblique fracture of shaft of humerus, right arm, subsequent encounter for fracture with routine healing"},{"id":76,"value":"Underdosing of other estrogens and progestogens"},{"id":77,"value":"Benign neoplasm of soft tissue of peritoneum"},{"id":78,"value":"Displaced articular fracture of head of unspecified femur, subsequent encounter for open fracture type IIIA, IIIB, or IIIC with routine healing"},{"id":79,"value":"Other accident on other gliding-type pedestrian conveyance, subsequent encounter"},{"id":80,"value":"Nondisplaced spiral fracture of shaft of unspecified femur, initial encounter for open fracture type IIIA, IIIB, or IIIC"},{"id":81,"value":"Nondisplaced unspecified condyle fracture of lower end of unspecified femur, subsequent encounter for open fracture type IIIA, IIIB, or IIIC with nonunion"},{"id":82,"value":"Corrosion of third degree of single right finger (nail) except thumb, initial encounter"},{"id":83,"value":"Cellulitis of buttock"},{"id":84,"value":"Superficial foreign body of breast, right breast, initial encounter"},{"id":85,"value":"Other fracture of shaft of radius, unspecified arm, subsequent encounter for closed fracture with delayed healing"},{"id":86,"value":"Insect bite (nonvenomous), right lesser toe(s), subsequent encounter"},{"id":87,"value":"Displaced comminuted fracture of shaft of left fibula, subsequent encounter for open fracture type IIIA, IIIB, or IIIC with delayed healing"},{"id":88,"value":"War operations involving explosion of guided missile, civilian, initial encounter"},{"id":89,"value":"Decreased fetal movements, unspecified trimester"},{"id":90,"value":"Secondary osteoarthritis, unspecified hand"},{"id":91,"value":"Nondisplaced fracture of neck of right talus, subsequent encounter for fracture with routine healing"},{"id":92,"value":"Benign carcinoid tumor of the hindgut, unspecified"},{"id":93,"value":"Strain of unspecified muscle and tendon at ankle and foot level"},{"id":94,"value":"Unspecified open wound of abdominal wall, periumbilic region with penetration into peritoneal cavity"},{"id":95,"value":"Asphyxiation due to being trapped in a car trunk, intentional self-harm, initial encounter"},{"id":96,"value":"Acute embolism and thrombosis of iliac vein"},{"id":97,"value":"Rheumatoid arthritis of unspecified elbow with involvement of other organs and systems"},{"id":98,"value":"Unspecified open wound of abdominal wall, periumbilic region with penetration into peritoneal cavity, subsequent encounter"},{"id":99,"value":"Dislocation and sprain of joints and ligaments at wrist and hand level"},{"id":100,"value":"Aneurysm of heart"}];
  13.             $('#dg').datagrid({
  14.                 width:300,
  15.                 height:600,
  16.                 data:data,
  17.                 view:bufferview,
  18.                 autoRowHeight:true,
  19.                 nowrap:false,
  20.                 frozenColumns:[[
  21.                     {title:'ID',field:'id',width:100}
  22.                 ]],
  23.                 columns:[[
  24.                     {title:'Value',field:'value',width:200}
  25.                 ]]
  26.             })
  27.         })
  28.     </script>
  29. </head>
  30. <body>
  31.     <div id="dg">
  32.        
  33.     </div>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement