For
Each
style
As
StyleElement
In
e.Styles
Select
Case
style.Id
Case
"itemStyle"
Dim
borders
As
New
BorderStylesCollection()
Dim
borderStyle
As
New
BorderStyles
For
i
As
Integer
= 1
To
4
'four borders
borderStyle.PositionType =
DirectCast
(i, PositionType)
borderStyle.Color = System.Drawing.Color.Black
borderStyle.LineStyle = LineStyle.Continuous
borderStyle.Weight = 1.0R
borders.Add(borderStyle)
Next
For
Each
border
As
BorderStyles
In
borders
style.Borders.Add(border)
Next
Exit
Select
Case
"alternatingItemStyle"
Dim
borders
As
New
BorderStylesCollection()
Dim
borderStyle
As
New
BorderStyles
For
i
As
Integer
= 1
To
4
'four borders
borderStyle.PositionType =
DirectCast
(i, PositionType)
borderStyle.Color = System.Drawing.Color.Black
borderStyle.LineStyle = LineStyle.Continuous
borderStyle.Weight = 1.0R
borders.Add(borderStyle)
Next
For
Each
border
As
BorderStyles
In
borders
style.Borders.Add(border)
Next
Exit
Select
End
Select
Next
Hello,
I have some questions about the insert, update and delete RadGrid:
1) By deleting a record, I want to display a yes/no alert. If the user confirm then the record is deleted, If not, then the alert is closed and the record stay. How can I do that?
2) I cant display a radwindow from the edit form, why? and how can I do that?
3) Before executing the delete action, I need to retrieve a specific value from the deleted record, for example the value which displayed in the "PagNam" column in order to remove the file with the name "PagNam" by deleting the record.
How can I do it?
Please, I need your hep,
It is appreciated to send me a sample code with an explaination.
Regards,
Bader
Hi,
I am using a user control in a radwindow manager. I using a simple requiredfiled validator on my user control, But if I add ny validator the rad window doesn't get open at all. Below is code on my page.
<telerik:RadWindowManager runat="server" RestrictionZoneID="offsetElement" KeepInScreenBounds="True"
Modal="True" Animation="Fade" ID="RadWindowManager1" EnableShadow="false" ShowOnTopWhenMaximized="false"
Width="425" Height="525" DestroyOnClose="True" Behavior="Default" InitialBehavior="None"
OnClientClose="OnClientClose">
<Windows>
<telerik:RadWindow ID="RadWindowContactEditor" runat="server" Width="430" Height="350">
<ContentTemplate>
<uc7:ucCustomerContactEdit ID="ucCustomerContactEdit1" runat="server" />
</ContentTemplate>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>