How to create bootstrap table with custom column width -


i trying create table using bootstrap. code given below:

.aspx page

<asp:gridview id="grduserslist" runat="server" cssclass="table table-hover" allowpaging="true" pagesize="20" headerstyle-cssclass="info"></asp:gridview> 

now, through jquery binding grid, shown below:

function populateuserslist(response) { console.log(response); //alert(response[0].firstname); //$('#respval').html(response[0].firstname);  $('#childcontent_grduserslist').empty();  if (response.length > 0) {     $('#childcontent_grduserslist').append('<tr><th class="col-lg-4 info">name</th>\                             <th class="col-lg-3 info">login id</th>\                             <th class="col-lg-3 info">email id</th>\                             <th class="col-lg-3 info">phone no.</th>\                             <th class="col-lg-3 info">designation</th>\                             <th class="col-lg-4 info">reporting to</th>\                             <th class="col-lg-3 info">business</th>\                             <th class="col-lg-3 info">user type</th></tr>');     $.each(response, function (index, itemdata) {         $('#childcontent_grduserslist').append('<tr><td class="text-left">' + itemdata.username + '</td>\                                  <td class="text-left">' + itemdata.loginid + '</td>\                                  <td class="text-left">' + itemdata.emailid + '</td>\                                  <td class="text-left">' + itemdata.phone + '</td>\                                  <td class="text-left">' + itemdata.designation + '</td>\                                  <td class="text-left">' + itemdata.reportingto + '</td>\                                  <td class="text-left">' + itemdata.businessassigned + '</td>\                                  <td class="text-left">' + itemdata.usertype + '</td></tr>');     }); } 

}

i have used "col-lg-" in tag of table. now, want change width of columns. tried removing "col-lg-" , applying custom css (width). but, not getting changed.

can guide me how change width of bootstrap tables?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -