Removing extra spaces between "With Selected" and image

Talk about implementing of customized templates

Moderators: ne_moj, zewa

metier
Expert
Expert
Posts: 56
Joined: Jan 24th, '09, 03:14

Removing extra spaces between "With Selected" and image

Postby metier » Aug 30th, '12, 18:18

Hello,

I am using version ( 6.4.1 ).
The view mode is at a width of 70%.
## +---------------------------------------------------------------------------+
## | 6. View Mode Settings: |
## +---------------------------------------------------------------------------+
## *** set view mode table properties
$vm_table_properties = array("width"=>"70%");
$dgrid->SetViewModeTableProperties($vm_table_properties);

How do we remove the extra spaces between "Check All" and "With selected" and the "Delete" image ( ie delete.gif ) in the MultiRow options on the datagrid?
Appreciate your help in resolving this issue.

Please find a snapshot of the datagrid showing the extra spaces.

I tried altering values in the DrawMultiRowBar function in datagrid.class.php, but to no avail.
foreach($this->arrMultirowOperations as $key => $val){
if($this->arrMultirowOperations[$key]['view']){
//echo "<img src='".$this->directory."images/spacer.gif' width='6px' height='5px' alt='' />";
$curr_url = $this->CombineUrl($key, "");
$flag_name = isset($val['flag_name']) ? $val['flag_name'] : "";
$flag_value = isset($val['flag_value']) ? $val['flag_value'] : "";
$tooltip = isset($val['tooltip']) ? $val['tooltip'] : $this->lang[$key.'_selected'];
$image = isset($val['image']) ? $val['image'] : $key.".gif" ;
$this->SetUrlString($curr_url, "filtering", "sorting", "paging");
$curr_url = str_replace("&", "&amp;", $curr_url);
$http_get_vars_part = ($this->methodPostBack != "get") ? $this->GetHttpGetVars() : "";
$this->DrawModeButton($key, $curr_url, $tooltip, $tooltip, $image, "\"return jsVerifySelected('".$this->uniquePrefix."', '".$this->rowLower."', '".$this->rowUpper."', '".$this->methodPostBack."', '".$this->GetRandomString(20)."', '$curr_url', '$key', '$flag_name', '$flag_value', '$key', '$http_get_vars_part');\"", false, "", "image");
}
with_selected.PNG
with_selected.PNG (14.04 KiB) Viewed 883 times

administrator
Site Admin
Site Admin
Posts: 5943
Joined: Jan 7th, '09, 23:18
Contact:

Re: Removing extra spaces between "With Selected" and image

Postby administrator » Sep 2nd, '12, 05:52

Can you please send us a link to your page online, so we could check this issue?

metier
Expert
Expert
Posts: 56
Joined: Jan 24th, '09, 03:14

Re: Removing extra spaces between "With Selected" and image

Postby metier » Sep 2nd, '12, 14:26

Thanks Admin.

Unfortunately, it's hosted on intranet.

administrator
Site Admin
Site Admin
Posts: 5943
Joined: Jan 7th, '09, 23:18
Contact:

Re: Removing extra spaces between "With Selected" and image

Postby administrator » Sep 3rd, '12, 07:33

So the only one way is to play with CSS + you may add a border to this table to understand what exactly happens.

Without access to your page we cannot say what the problem is.


Return to “Add/Edit/View Mode Templates Implementing”