Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
57 views
Hi,

We have customers reporting issues that the RadCombo box not working at all in IE 9 browser. When we debugged the issue we found that the ItemRequested event is not firing at all. The version that we currently use is Telerik.Web.UI, Version=2010.1.415.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4. 

I have seen in the forums that this is a known issue with older version and so please let us know if upgrading to newer version will fix it. We would like to evaluate the cost involved in upgrading to a newer version.

Kalina
Telerik team
 answered on 21 Nov 2011
1 answer
112 views

Dear Telerik Team,

I am trying to add a grid dynamically within a panelbar.The panel bar is created at design time.
I am getting the below issue  :

Radpanelbar is contained inside a div and grid is inside the panelbar. When the Panelbar item is clicked, then grid is generated and populated by the dataset.The problem is that the header of the grid is scrollable alongwith the panelbar but the grid rows do not get scrolled and remain static.

Please suggest a resolution it is very urgent.There seem to be lot of issues with Radgrid when it is used inside a panelbar by generating dynamically.

Here is the code  :

ASPX:

 

 

 

<div id="divChangeImpact" style="width:100%;height:100;overflow:auto">

 

 

 

<rad:RadAjaxPanel ID="ajPanelImpact" runat="server" ScrollBars="None" Width="100%" Height="100" LoadingPanelID="AjaxLoadingPanelAccount">

 

 

 

 

 

 

 

 

<rad:RadPanelbar ID="panelChangeImpact" runat="server" Width="100%"

 

 

 

Height="100px" ExpandMode="SingleExpandedItem" Skin="Outlook">

 

 

 

 

 

 

 

 

 

</rad:RadPanelbar>

 

 

 

 

 

 

 

 

</rad:RadAjaxPanel>

 

 

 

 

 

 

 

 

</div>

CodeBehind (VB) :

Adding items to panel:

 

Private

 

 

Sub BindTerritory()

 

 

 

'--Items added to PanelBar----------------------------------------------------------

 

 

 

 

For Each row As DataRow In dsDirs.Tables(0).Rows

 

 

 

Dim dataItem As New RadPanelItem()

 

dataItem.Text =

 

Convert.ToString(row("Sales_position_name"))

 

dataItem.Value =

 

Convert.ToString(row("Sales_pos_id"))

 

dataItem.Expanded =

 

False

 

 

 

 

 

panelChangeImpact.Items.Add(dataItem)

 

 

Dim item As New RadPanelItem()

 

dataItem.Items.Add(item)

 

 

Next

 

 

 

 

ClsGeneral.setDropDownTitle(ddlTerritory)

 

 

 

End Sub

 

Protected

 

 

Sub panelChangeImpact_ItemClick(ByVal sender As Object, ByVal e As Telerik.WebControls.RadPanelbarEventArgs) Handles panelChangeImpact.ItemClick

 

 

 

Dim ItemClicked As Telerik.WebControls.RadPanelItem = e.Item

 

 

 

Dim str As String = ItemClicked.Text

 

 

 

Dim radGridImpact As New RadGrid

 

 

 

 

 

radGridImpact.ID =

 

"rgvChangeImpact"

 

 

 

 

 

radGridImpact.Width =

 

Unit.Percentage(100)

 

radGridImpact.AllowMultiRowSelection =

 

True

 

 

 

 

 

radGridImpact.AutoGenerateColumns =

 

False

 

 

 

 

 

radGridImpact.Skin =

 

"Master"

 

 

 

 

 

radGridImpact.IsDynamic =

 

False

 

 

 

 

 

radGridImpact.SkinsPath =

 

"~/App_Themes/MasterTheme/Skins"

 

 

 

 

 

radGridImpact.MasterTableView.TableLayout =

 

GridTableLayout.Fixed

 

radGridImpact.MasterTableView.Width =

 

Unit.Percentage(100)

 

radGridImpact.MasterTableView.NoMasterRecordsText =

 

""

 

 

 

 

 

radGridImpact.ItemStyle.BorderStyle =

 

BorderStyle.Solid

 

radGridImpact.ItemStyle.BorderWidth =

 

Unit.Pixel(1)

 

radGridImpact.ItemStyle.BorderColor = Drawing.

 

Color.Black

 

radGridImpact.ClientSettings.EnablePostBackOnRowClick =

 

False

 

 

 

 

 

radGridImpact.ClientSettings.Selecting.AllowRowSelect =

 

True

 

 

 

 

 

radGridImpact.ClientSettings.Scrolling.AllowScroll =

 

True

 

 

 

 

 

radGridImpact.ClientSettings.Scrolling.ScrollHeight =

 

Unit.Pixel(140)

 

radGridImpact.ClientSettings.Scrolling.UseStaticHeaders =

 

True

 

 

 

 

 

radGridImpact.ClientSettings.Scrolling.SaveScrollPosition =

 

True

 

 

 

 

 

 

 

Dim column1 As New GridBoundColumn

 

 

 

 

 

column1.SortAscImageUrl =

 

"#"

 

 

 

 

 

column1.DataField =

 

"Rule_Violation"

 

 

 

 

 

column1.FilterImageUrl =

 

"#"

 

 

 

 

 

column1.UniqueName =

 

"Rule_Violation"

 

 

 

 

 

column1.SortExpression =

 

"Rule_Violation"

 

 

 

 

 

column1.SortDescImageUrl =

 

"#"

 

 

 

 

 

column1.HeaderText =

 

"Rule Violation"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column1)

 

 

Dim column2 As New GridBoundColumn

 

 

 

 

 

column2.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column2.DataField =

 

"Matric"

 

 

 

 

 

column2.HeaderText =

 

"<nobr>Metric Rule</nobr>"

 

 

 

 

 

column2.SortExpression =

 

"Matric"

 

 

 

 

 

column2.UniqueName =

 

"Matric"

 

 

 

 

 

column2.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column2.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column2)

 

 

Dim column3 As New GridBoundColumn

 

 

 

 

 

column3.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column3.DataField =

 

"Original"

 

 

 

 

 

column3.HeaderText =

 

"<nobr>Original</nobr>"

 

 

 

 

 

column3.SortExpression =

 

"Original"

 

 

 

 

 

column3.UniqueName =

 

"Original"

 

 

 

 

 

column3.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column3.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column3)

 

 

Dim column4 As New GridBoundColumn

 

 

 

 

 

column4.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column4.DataField =

 

"Adjusted_Approved"

 

 

 

 

 

column4.HeaderText =

 

"<nobr>Approved</nobr>"

 

 

 

 

 

column4.SortExpression =

 

"Adjusted_Approved"

 

 

 

 

 

column4.UniqueName =

 

"Adjusted_Approved"

 

 

 

 

 

column4.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column4.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column4)

 

 

Dim column5 As New GridBoundColumn

 

 

 

 

 

column5.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column5.DataField =

 

"Adjusted_Pending"

 

 

 

 

 

column5.HeaderText =

 

"<nobr>Approval Pending</nobr>"

 

 

 

 

 

column5.SortExpression =

 

"Adjusted_Pending"

 

 

 

 

 

column5.UniqueName =

 

"Adjusted_Pending"

 

 

 

 

 

column5.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column5.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column5)

 

 

Dim column6 As New GridBoundColumn

 

 

 

 

 

column6.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column6.DataField =

 

"Adjusted_Submission"

 

 

 

 

 

column6.HeaderText =

 

"<nobr>Submission Pending</nobr>"

 

 

 

 

 

column6.SortExpression =

 

"Adjusted_Submission"

 

 

 

 

 

column6.UniqueName =

 

"Adjusted_Submission"

 

 

 

 

 

column6.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column6.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column6)

 

 

Dim column7 As New GridBoundColumn

 

 

 

 

 

column7.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column7.DataField =

 

"Total_Adjusted"

 

 

 

 

 

column7.HeaderText =

 

"<nobr>Change Impact</nobr>"

 

 

 

 

 

column7.SortExpression =

 

"Total_Adjusted"

 

 

 

 

 

column7.UniqueName =

 

"Total_Adjusted"

 

 

 

 

 

column7.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column7.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column7)

 

 

Dim column8 As New GridBoundColumn

 

 

 

 

 

column8.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column8.DataField =

 

"GTotal"

 

 

 

 

 

column8.HeaderText =

 

"<nobr>Total</nobr>"

 

 

 

 

 

column8.SortExpression =

 

"GTotal"

 

 

 

 

 

column8.UniqueName =

 

"GTotal"

 

 

 

 

 

column8.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column8.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column8)

 

 

Dim column9 As New GridBoundColumn

 

 

 

 

 

column9.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column9.DataField =

 

"Change"

 

 

 

 

 

column9.HeaderText =

 

"<nobr>Total Change</nobr>"

 

 

 

 

 

column9.SortExpression =

 

"Change"

 

 

 

 

 

column9.UniqueName =

 

"Change"

 

 

 

 

 

column9.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column9.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column9)

 

 

Dim column10 As New GridBoundColumn

 

 

 

 

 

column10.DataFormatString =

 

"<nobr>{0}</nobr>"

 

 

 

 

 

column10.DataField =

 

"Allowed"

 

 

 

 

 

column10.HeaderText =

 

"<nobr>Allowed(Min, Max)</nobr>"

 

 

 

 

 

column10.SortExpression =

 

"Allowed"

 

 

 

 

 

column10.UniqueName =

 

"Allowed"

 

 

 

 

 

column10.SortAscImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Asc.gif"

 

 

 

 

 

column10.SortDescImageUrl =

 

"~/App_Themes/MasterTheme/Skins/Master/Desc.gif"

 

 

 

 

 

radGridImpact.MasterTableView.Columns.Add(column10)

 

 

AddHandler radGridImpact.ItemDataBound, AddressOf rgvChangeImpactSummary_ItemDataBound

 

ItemClicked.Items(0).Controls.Add(radGridImpact)

BindChangeSummaryDetails(radGridImpact, ItemClicked.Value)

 

 

End Sub

 

 

 

'Get call plan values.

Private

 

 

Sub BindChangeSummaryDetails(ByVal radGrid As RadGrid, ByVal strTerritoryID As String)

 

 

 

Dim sCallPalnValues As String

 

Dim ds As DataSet

 

 

 

Dim sTerrValue As String = String.Empty

 

 

 

If strTerritoryID = "" Then

 

 

 

Exit Sub

 

 

 

End If

 

 

 

'Get call plan values.

 

ds =

 

'some dataset

 

 

If ds Is Nothing OrElse ds.Tables.Count = 0 Then

 

 

 

'Dataset does not have any table.

 

radGrid.DataSource =

 

Nothing

 

radGrid.DataBind()

SbShowGridHeader(radGrid)

 

 

Exit Sub

 

 

 

End If

 

 

 

If ds.Tables(0).Rows.Count = 0 Then

 

 

 

Dim dr As DataRow = ds.Tables(0).NewRow()

 

dr(0) =

 

"No Data"

 

dr(1) = 1234

ds.Tables(0).Rows.Add(dr)

 

 

End If

 

 

 

With radGrid

 

.Width =

 

Unit.Percentage(100)

 

.MasterTableView.Width =

 

Unit.Percentage(100)

 

 

 

ClsGeneral.setSkinPathToGrid(radGrid)

 

.ClientSettings.Selecting.AllowRowSelect =

 

True

 

.AutoGenerateColumns =

 

False

 

 

 

'Sorting

 

.AllowSorting =

 

False

 

 

 

'Set the paging always true and use the page_size to max

 

.AllowPaging =

 

True

 

.AllowCustomPaging =

 

True

 

 

 

'Column Resizing

 

.ClientSettings.Resizing.EnableRealTimeResize =

 

False

 

.ClientSettings.Resizing.ResizeGridOnColumnResize = bResizingEnabled

.ClientSettings.Resizing.AllowColumnResize = bResizingEnabled

 

 

'If bResizingEnabled = True Then

 

.ClientSettings.Resizing.ClipCellContentOnResize = bResizingEnabled

.PageSize = 20

.DataSource = ds.Tables(0)

.DataBind()

 

 

End With

 

 

 

End Sub

 

Thanks
Bhaskar

bhaskar
Top achievements
Rank 1
 answered on 21 Nov 2011
1 answer
58 views
Hi all,
I'm using radgrid in my asp.net application.
I used to print the radgrid.
If I print the grid after sorting any of the column, then if I print the grid I'm seeing the sorted column indicatot as some recatngle button and some other column also not showiing column name fully.
Please help me how can I avoid this as early as possible.
Please look at the attachement.
Daniel
Telerik team
 answered on 21 Nov 2011
4 answers
68 views
i'm currently writing on a drag&drop editor for one of my webapps, the editor adds content to a tree of div-elements via jquery insert, before and after methods. When the content gets bigger than the RadSplitters Height, a random set of elements simply wont scroll up or down (just like they don't belong to the RadPane & regardless of the position inside my tree). Debugging doesn't show any errors and the scrolling works fine without the splitter. Any advice what else may cause this behaviour?
Fabian Schulz
Top achievements
Rank 1
 answered on 21 Nov 2011
1 answer
59 views
Hi

I'm struggling to work out when to bind the schedular. I want to only load the data required for the currently visible range. If I do this on Load or NavigationCommand the values set against the schedular (SelectedView, VisibleRangeStart, VisibleRangeEnd, etc) are from the previous post rather than the current values. These seem to be set later in the life cycle. At what point can I bind where I have the current view values available?

You have an example of this using a data source provider but Id rather not implement one if I don't need to.

Thanks
russell
Plamen
Telerik team
 answered on 21 Nov 2011
2 answers
157 views
I am developing a booking system by using RadScheduler.
I want to add a treeview in the 'group by' area, so that the root of treeview will be 'Floor', and the nodes will be 'Room'.
How can I do that?

Thanks.
Nick
Top achievements
Rank 1
 answered on 21 Nov 2011
1 answer
390 views
Hi,
How can I set date to RadDateTimePicker?

In browser it shows following error - 

TypeError: Object [object Object] has no method 'set_selectedDate'

My Web method returns date - 

[System.Web.Services.WebMethod]
        public static DateTime Calculate(int type, int noMonths, int noDays, int noOfWeeks, System.DateTime DateOfjoin)
        {
                  return DateTime.Now;
        }

Shinu
Top achievements
Rank 2
 answered on 21 Nov 2011
2 answers
128 views
Hi.
 I tried to use the Radmenu with cookieless and with cookies, and have observed that it does not appear in a cookies less environment, where as the top menu appears, but nothing appears for submenu items.
  Is there any config or settings that I am missing, which is required to make the rad sub menu work in a cookies less environment.

 The difference lies in making changes to the web.config.

1.  'CookieLess='useUri' --> for Cookie Less
     <sessionState mode="InProc" cookieless="useUrl" timeout="900"/>  and 'UseUri'


2. CookieLess = 'UseCookies' for working with cookies.
     <sessionState mode="InProc" cookieless="UseCookies" timeout="900"/>  and 'UseCookies'


In case 2, telerik rad menu and submenu works fine, but in case 1, When we want it to be cookieless it does not works.

Thanks in Advance.

Regards

SANDIP


forms name=".ASPXAUTH"
             loginUrl="Login.aspx"
             protection="All"
             timeout="30"
             path="/"
             requireSSL="false"
             slidingExpiration="true"
             defaultUrl="Default.aspx"
             cookieless="UseCookies"
<sessionState mode="InProc" cookieless="false" timeout="900"/>
<authentication mode="Forms">
      <forms name=".ASPXAUTH"
             loginUrl="Login.aspx"
             protection="All"
             timeout="30"
             path="/"
             requireSSL="false"
             slidingExpiration="true"
             defaultUrl="Default.aspx"
             cookieless="UseCookies" />
</authentication>

forms name=".ASPXAUTH"
             loginUrl="Login.aspx"
             protection="All"
             timeout="30"
             path="/"
             requireSSL="false"
             slidingExpiration="true"
             defaultUrl="Default.aspx"
             cookieless="UseCookies"
Tonino
Top achievements
Rank 1
 answered on 21 Nov 2011
1 answer
111 views
Hi, I dinamically generate many controls in TemplateColumn of RadGrid in  ItemCreated event.
But in every postback my object were destroy.

Can I block the life cycle of RadGrid (PreInit,Load,etc. etc.) for have a static radgrid ?

Thanks,
Marco
Princy
Top achievements
Rank 2
 answered on 21 Nov 2011
2 answers
155 views
Is a setting available for the RadFileExplorer which will allow for only single clicks on items, rather than allowing a double click on a given item?

The EnableOpenFile-"False" property is set on the RadFileExplorer, but this does not disallow double clicking;

Any insight is appreciated;  Best regards - Rob
Dobromir
Telerik team
 answered on 21 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?