Hi,
GridView control that is released by Microsoft with VS2005, I can easily get the value of any cell with in the selected row (Server side)
Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
Dim ItemValue As String
ItemValue = GridView1.SelectedRow.Cells(1).Text
End Sub
Can I do it using the rad grid control in simlier way.
Please Help me on this...
Thanks
<telerik:RadToolTipManager ID="slideToolTipMan" runat="server" OffsetY="-1" ShowEvent="FromCode" OnClientBeforeShow="OnClientBeforeShow" EnableShadow="true" Sticky="false" RelativeTo="Mouse" Position="MiddleRight"></telerik:RadToolTipManager><ItemTemplate> <img onmouseout='HideSlideToolTip(this);' onmouseover='ShowSlideToolTip(this);' id="thumbnailImg" alt="X" src='...' /></ItemTemplate>function ShowSlideToolTip(element) { var tooltipManager = $find("<%= slideToolTipMan.ClientID %>"); if (!tooltipManager) return; var tooltip = tooltipManager.getToolTipByElement(element); if (!tooltip) { tooltip = tooltipManager.createToolTip(element); tooltip.set_position(Telerik.Web.UI.ToolTipPosition.MiddleRight); // <here I insert content into the tooltip> tooltip.show(); tooltip.set_autoCloseDelay(0); tooltip.set_contentElement(imgElement); } tooltip.set_position(Telerik.Web.UI.ToolTipPosition.MiddleRight);}function OnClientBeforeShow(sender, args) { sender.set_position(Telerik.Web.UI.ToolTipPosition.MiddleRight);}function HideSlideToolTip(element) { var controller = Telerik.Web.UI.RadToolTipController.getInstance(); var tooltip = controller.get_activeToolTip(); if (tooltip) tooltip.hide();}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 SelectNextHello,
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