or
Hey all.
I have this problem, when i resize the browser and the searchboxs parent div has display:none; When i display the searchbox again, position of the buttons, and the textfield is pushed in.
i've created a small snippet, to show you what i mean.
The problem first occurred when i was implemented the searchbox into a bootstrap navigation.
Any help would be appreciated!
<
div
class
=
"testClass"
>
<
telerik:RadSearchBox
ID
=
"RadSearchWebTimetable"
runat
=
"server"
SearchContext-ShowDefaultItem
=
"false"
HighlightFirstMatch
=
"True"
OnSearch
=
"SearchBox_OnSelected"
MinFilterLength
=
"2"
Width
=
"100%"
EmptyMessage
=
"Søgetekst"
>
<
DropDownSettings
Height
=
"300"
Width
=
"400"
>
<
ClientTemplate
>
<
div
class
=
"#= DataItem.cssClass #"
>
#= Text #
<
p
style
=
"margin-bottom: 0px; margin-top: -15px;"
>
<
small
class
=
"text-muted text-small"
>
#= DataItem.Description #
</
small
>
</
p
>
</
div
>
</
ClientTemplate
>
</
DropDownSettings
>
<
WebServiceSettings
Method
=
"UMS_Search"
path
=
"WebServices/Search.asmx"
/>
</
telerik:RadSearchBox
>
</
div
>
<
asp:Button
runat
=
"server"
OnClientClick
=
" $('.testClass').hide();return false; "
Text
=
"Hide"
/>
<
asp:Button
runat
=
"server"
OnClientClick
=
" $('.testClass').show();return false; "
Text
=
"Show"
/>
<telerik:RadChart ID="RadChart3" runat="server" Width="800" Height="600px" DataSourceID="ssDatasource" |
DefaultType="Line" SeriesOrientation="Vertical" Skin="Office2007" > |
<ChartTitle> |
<Appearance Position-AlignedPosition="Top"> |
<FillStyle MainColor=""></FillStyle> |
</Appearance> |
<TextBlock Text="Application Usage"> |
<Appearance TextProperties-Font="Tahoma, 13pt" TextProperties-Color="Black"></Appearance> |
</TextBlock> |
</ChartTitle> |
<Series> |
<telerik:ChartSeries Name="PeakUsages" Type="Line"> |
<Appearance ShowLabels="False"> |
<LabelAppearance Visible="false"></LabelAppearance> |
</Appearance> |
</telerik:ChartSeries> |
<telerik:ChartSeries Name="LicenseCount" Type="Line"> |
<Appearance ShowLabels="False"> |
</Appearance> |
</telerik:ChartSeries> |
</Series> |
<Appearance TextQuality="AntiAlias"> |
</Appearance> |
<Legend Visible="False"> |
</Legend> |
<PlotArea> |
<Appearance Dimensions-Margins="18%, 5%, 25%, 5%"> |
<FillStyle MainColor="White" FillType="Solid"></FillStyle> |
<Border Color="134, 134, 134"></Border> |
</Appearance> |
<XAxis LayoutMode="Inside" AutoScale="false" DataLabelsColumn="UsageDate"> |
<Appearance ValueFormat="ShortDate" MajorGridLines-Visible="false"> |
<MajorGridLines PenStyle="Solid" Color="209, 222, 227" Visible="False" Width="0"></MajorGridLines> |
<LabelAppearance RotationAngle="300" Position-AlignedPosition="Top"> |
</LabelAppearance> |
<TextAppearance TextProperties-Color="51, 51, 51"></TextAppearance> |
</Appearance> |
</XAxis> |
<YAxis AutoScale="false" IsZeroBased="true" AxisMode="Normal" MinValue="0" MaxValue="35"> |
<Appearance Color="134, 134, 134" MinorTick-Color="134, 134, 134" MinorTick-Width="0" MajorTick-Color="134, 134, 134"> |
<MajorGridLines Color="209, 222, 227"></MajorGridLines> |
<MinorGridLines Color="233, 239, 241"></MinorGridLines> |
<TextAppearance TextProperties-Color="51, 51, 51"></TextAppearance> |
</Appearance> |
</YAxis> |
</PlotArea> |
</telerik:RadChart> |
<br /> |
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!IsPostBack)
{
dsMAV.SelectCommand =
"SELECT IDRendicontazione, [Matricola], [CodiceFiscale], [Nominativo], [Importo], [F_Scrigno], [DataIncasso], [DataContabile], Disposizione, Transazione, [Causale], [NProvvisorio], [MavKey] FROM [Rendicontazioni]"
;
}
}
...
aRadGrid.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.Semicolon;
aRadGrid.ExportSettings.FileName = aFileName;
aRadGrid.ExportSettings.HideStructureColumns =
true
;
aRadGrid.ExportSettings.ExportOnlyData =
true
;
aRadGrid.ExportSettings.IgnorePaging =
true
;
aRadGrid.ExportSettings.OpenInNewWindow =
true
;
private
void
Export()
{
((GridClientSelectColumn)aRadGrid.MasterTableView.GetColumn(XarcT.UN_S)).Visible =
false
;
foreach
(GridDataItem item
in
aRadGrid.Items)
{
if
(item.ItemType == GridItemType.AlternatingItem)
{
item.BackColor = Color.LightGray;
};
TableCell cell = (TableCell)item[XarcT.UN_L];
bool
aBool = (cell.Text == @
"True"
);
cell = (TableCell)item[XarcT.UN_Limg];
cell.Text = (aBool ? @
"L"
:
null
);
};
if
(dataContainer.xarcUaLstPrm.currentAction == XarcUaLstPrm.Action.Excel)
{
aRadGrid.MasterTableView.ExportToExcel();
}
else
{
aRadGrid.MasterTableView.ExportToCSV();
};
}