Good afternoon,
I am creating a WebUserControl, and it got a menu and a RadComboBox, where I created a Width property therein.
Would you like a hint of you have some method that I call the combo update for it, because when I fill my property width does not resize the combo in "Design", but when I compile the project and squeegee on the browser size the combo is in agreement with the value set in the property.
Following is the code used in the annex.
I am creating a WebUserControl, and it got a menu and a RadComboBox, where I created a Width property therein.
Would you like a hint of you have some method that I call the combo update for it, because when I fill my property width does not resize the combo in "Design", but when I compile the project and squeegee on the browser size the combo is in agreement with the value set in the property.
Following is the code used in the annex.
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="comCedente.ascx.vb" Inherits="GSaaSD.comCedente" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<
asp:Panel
ID
=
"pnCombo"
runat
=
"server"
Width
=
"276px"
style
=
"float:left;"
>
<
div
id
=
"DivMenu"
style
=
"float:left;margin-top:0px; width: 150px;height:15px;"
>
<
telerik:RadMenu
ID
=
"RadMenu1"
runat
=
"server"
EnableRoundedCorners
=
"true"
EnableShadows
=
"true"
Width
=
"13px"
Height
=
"15px"
Skin
=
"Web20"
BackColor
=
"White"
BorderColor
=
"White"
style
=
"z-index:100;"
ClickToOpen
=
"true"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
""
Width
=
"11px"
Height
=
"13px"
PostBack
=
"False"
ImageUrl
=
"../../Imagens/seta_baixo.png"
>
<
Items
>
<
telerik:RadMenuItem
Text
=
"Fornecedor"
/>
<
telerik:RadMenuItem
Text
=
"Usuário"
/>
<
telerik:RadMenuItem
Text
=
"Plano de Conta"
/>
</
Items
>
</
telerik:RadMenuItem
>
</
Items
>
</
telerik:RadMenu
>
<
asp:Label
ID
=
"lblCedente"
Text
=
""
runat
=
"server"
style
=
"z-index:101;margin-left:5px;font-family:segoe ui, arial, sans-serif;font-size:11px;"
></
asp:Label
>
</
div
>
<
p
style
=
"clear:both;width:15px;height:2px;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;"
></
p
>
<
telerik:RadComboBox
ID
=
"combo"
runat
=
"server"
EnableAutomaticLoadOnDemand
=
"True"
EnableVirtualScrolling
=
"True"
Filter
=
"StartsWith"
ForeColor
=
"#666666"
ItemsPerRequest
=
"10"
LoadingMessage
=
"Carregando..."
MaxLength
=
"50"
ShowMoreResultsBox
=
"True"
AutoPostBack
=
"True"
Width
=
"275px"
Skin
=
"Default"
style
=
"z-index:102;margin-right:0px;padding-right:0px;"
>
</
telerik:RadComboBox
>
</
asp:Panel
>
Public
Property
Width_Combo()
As
Integer
Get
Return
Width_Controle_Combo
End
Get
Set
(
ByVal
value
As
Integer
)
combo.Width = value
pnCombo.Width = value
End
Set
End
Property