Hi all,
I have a tab control on some page. the tab contains more controls. now for the first time if i try to scroll down in the tab control the tab heading is moving along. please find the screen shots in attachments.
Please help me out in this.
Thanks in advance.
| protected void Grid_ExcelMLExportRowCreated ( object source, Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowCreatedArgs e ) |
| { |
| if ( e.RowType == GridExportExcelMLRowType.HeaderRow ) |
| { |
| RowElement myNewRow = new RowElement(); |
| CellElement myNewCell = new CellElement(); |
| myNewCell.StyleValue = "myNewStyle"; |
| myNewCell.MergeAcross = e.Row.Cells.Count - 1; |
| //is there something like the property below? |
| myNewCell.Width = 200; |
| //etc... |
| } |
| } |
I have a combobox with a treeview ( tvCategory) inside it. ON the same web page I have a asp panel and on which I have a user Control.
I am trying to use AJAXManagerProxy control. ON treeview node change I want to update panel on the web page. Following code I have used for this.
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="tvCategory">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="tvCategory" />
<telerik:AjaxUpdatedControl ControlID="pnlDetail" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="txtNAme" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</telerik:RadAjaxManagerProxy>
On NodeClick event I am trying to set properties of user control.
Protected Sub tvCategory_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs)
If e.Node.Value.ToString <> vbNullString Then
Category1.CategoryID = New Guid(e.Node.Value.ToString) 'setting up User control's categoryId property
Category1.LoadCategory = True
End If
pnlDetail.Visible = True
End Sub
Page Load of the user control is called before NodeClick event and I am not able to get the data because I need to know the node selected value to set up on the user control.
How do I do this?
Thanks is advance!!!
| Dim btPrev As New Button |
| btPrev.Attributes.Add("CssClass", "rgPagePrev") |
| <telerik:RadGrid ID="grd" runat="server" |
| AllowPaging="True" |
| PageSize="20" |
| Skin="Vista" |
| GridLines="None" |
| AllowSorting="true" |
| OnExcelMLExportRowCreated="grdBundles_ExcelMLExportRowCreated" |
| OnExcelMLExportStylesCreated="grdBundles_ExcelMLExportStylesCreated" |
| onsortcommand="grdBundles_SortCommand" |
| Visible="true" |
| DataSourceID="dsBundleReport" |
| OnDataBound="grdBundleReport_DataBound" |
| > |
| <PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric"> |
| </PagerStyle> |
| <ExportSettings> |
| <Excel Format="ExcelML" /> |
| </ExportSettings> |
| <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" AllowExpandCollapse="true" > |
| <Resizing AllowColumnResize="true" ClipCellContentOnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="false" /> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" ScrollHeight="200px" /> |
| </ClientSettings> |
| <MasterTableView AllowPaging="true" AllowCustomSorting="true" AutoGenerateColumns="false" |
| AlternatingItemStyle-CssClass="alernatingItemStyle" DataSourceID="dsBundleReport" UseAllDataFields="true"> |
| <Columns> |
| <telerik:GridBoundColumn SortExpression="BenefitId" ItemStyle-Width="100" HeaderStyle-Width="100" DataField="BenefitId" ReadOnly="true" HeaderText="Benefit Id" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="verdana" HeaderStyle-HorizontalAlign="Center" /> |
| <telerik:GridTemplateColumn |
| HeaderText="Image" |
| UniqueName="Image"> |
| <ItemTemplate> |
| <asp:Image ID="Image1" runat="server" src="images/binoculars.gif"/> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn SortExpression="Id" ItemStyle-Width="100" HeaderStyle-Width="100" DataField="Id" ReadOnly="true" HeaderText="Id" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="verdana" HeaderStyle-HorizontalAlign="Center" /> |
| <telerik:GridBoundColumn SortExpression="Cd" ItemStyle-Width="100" HeaderStyle-Width="100" DataField="Cd" ReadOnly="true" HeaderText="Cd" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="verdana" HeaderStyle-HorizontalAlign="Center" /> |
I have a radgird that will be displaying support tickets. Within the grid I am using the telerik:GridImageColumn to display either a green, yellow or red image.
I am current trying to achieve this with itemdatabound, using findcontrol. I keep getting an error “Object reference not set to an instance of an object.”. Can some let me know what I am doing wrong?
Thanks
If
TypeOf e.Item Is GridDataItem Then
Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem)
Dim dataBoundItem As GridDataItem = e.Item
Dim calcdate As Date
Dim tsTimeSpan As TimeSpan
Dim iNumberOfDays As Integer
calcdate = dataItem.DataItem(
"SubmitDate")
tsTimeSpan = Now.Subtract(calcdate)
iNumberOfDays = tsTimeSpan.Days
If iNumberOfDays < 2 Then
dataBoundItem.FindControl(
"imggreen").Visible = True
ElseIf iNumberOfDays = 2 Then
dataBoundItem.FindControl(
"imgyellow").Visible = True
dataItem(
"SubmitDate").BackColor = Color.Yellow
ElseIf iNumberOfDays >= 3 Then
dataBoundItem.FindControl(
"imgred").Visible = True
dataItem("SubmitDate").BackColor = Color.Red
End If
End If
)