Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views
If we put a noscript tag in our html code and we publish the page (MOSS 2007), it is being deleted by the telerik Rad editor (full version).

Is this a known bug? if yes, can i fix this?

Thanx,
greetings,

Martijn
Martijn
Top achievements
Rank 1
 answered on 26 Jul 2010
4 answers
197 views
Hello,

I wanted to try the new property in Q2 "UpdatePanelHeight=100%". Guess what ? it didnt work.

Rendered HTML:

<div id="ctl00_ctl00_ctl00_ctl00_contentHolder_contentHolder_pnlMainNavPanel" style="display: block;" class="RadForm RadForm_Vista rfdButton"><div style="height: 100%; width: 100%; visibility: visible; overflow: hidden;" class="RadPanelBar RadPanelBar_Vista" id="ctl00_ctl00_contentHolder_contentHolder_pnlMainNav">
    <!-- 2010.2.713.35 -->

<telerik:AjaxSetting AjaxControlID="btnDoStuff">
             <UpdatedControls>
                 <telerik:AjaxUpdatedControl ControlID="pnlMainNav" LoadingPanelID="pnlLoading" UpdatePanelHeight="100%" />
             </UpdatedControls>
         </telerik:AjaxSetting>

Above are the settings for that.

So where is my 100% ?
Dimo
Telerik team
 answered on 26 Jul 2010
1 answer
111 views

 

Hello, I have a grid that is created in runtime. The header of my grid is empty after a postback.

 

 

 

 

private void BindGrid(RadGrid _radgrid ,string[] campos)

 

{

 

List<string> parametrosCamposRetornados = new BRPesquisa().RecuperaCamposRetornados(Pesquisa.IdConsulta, Pesquisa.NumeroPesquisa);

 

 

foreach (string x in campos)

 

{

 

if (x != "")

 

{

 

 

if (parametrosCamposRetornados.Contains(x.ToUpper()) || parametrosCamposCDRRetornados.Count ==0)

 

{

 

GridBoundColumn gridBoundColumn = new GridBoundColumn();

 

gridBoundColumn.UniqueName = x;

gridBoundColumn.DataField = x;

gridBoundColumn.HeaderText = x;

 

 

_radgrid.Columns.Add(gridBoundColumn);

}

}

}

 

}

 



after that I create the columns I get the data to the grid and do the databinding

 

 

rdgResultado.DataSource = dtResultado;
rdgResultado.DataBind();

 

 

 

 


My grid works correctly, but when I do a postback in my web page, the header of my Grid is empty.

How I can resolve this problem?



Tsvetoslav
Telerik team
 answered on 26 Jul 2010
11 answers
704 views

Hi,

I'm using AsyncUpload in a RadGrid

 

<

 

FormTemplate>.

 

 

 

 

When the User makes the changes to the record I want to Change the filename when it uploads it. The below works for the first row in the radgrid. When I try to update the second row  I get object reference not set to an instance of an object.

Am i missing something?

Thanks

string filenamenew = string.Empty;
  
          
            GridEditFormItem editedItem = (GridEditFormItem)(gvContractors.MasterTableView.GetItems(GridItemType.EditFormItem)[0]);
            RadTextBox txtcustomername = (RadTextBox)editedItem.FindControl("txtcustomername");
            filenamenew = txtcustomername.Text.Replace(" ", "_");
          
          
        e.File.SaveAs(System.Configuration.ConfigurationManager.AppSettings["ContractorDatabaseUploads"] + filenamenew + "_Certificate" + e.File.GetExtension());

>

Karl
Top achievements
Rank 1
 answered on 26 Jul 2010
3 answers
76 views
I've got a DNN skin that has a horizontal RadMenu which looks fine in all browser versions except IE6. 

In IE6, the horizontal menu turns vertical, with each menu item in the root menu taking up the whole space allocated to the horizontal menu.  See here for example:  http://sgphs.gpisd.org/

Suggestions?
Jason
Yana
Telerik team
 answered on 26 Jul 2010
3 answers
83 views
Hi,

According to the documentation, OnColumnResizing should be passed a column index and a width
(http://www.telerik.com/help/aspnet-ajax/grid_oncolumnresizing.html)

However, the example provided uses sender and eventArgs, and the example demonstrates how to find the current width of the column, not the new value that should be assigned.  How do I get the new width?

Thanks,
Brad
Sebastian
Telerik team
 answered on 26 Jul 2010
1 answer
114 views
I have created a usercontrol for the grid.  I am having an issue where if you select a column to order by (click the heading), after the postbakc no rowclick, contextMenu and header contextMenu will work.  However if you sort again, they do.  So on every other postback the menu will work.

I have read on another forumk about adding the id of the contextMenu to the radajaxproxymanager, however the header contextMenu has no ID, also the rowclick also has no id as it is part of the grid.  My code is below,

<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="progressLoader">
 
 
        <telerik:RadGrid ID="RadGrid1" 
                         runat="server"
                         GridLines="Vertical"                       
                         AllowSorting="true"
                         AllowPaging="true"
                         AllowCustomPaging="false"
                         AutoGenerateColumns="false"
                         EnableHeaderContextMenu="true"                       
                         Skin="Default"
                         PageSize="15"
                         OnNeedDataSource="RadGrid1_NeedDataSource"
             
                          >           
            <ExportSettings>
                <Pdf FontType="Subset" PaperSize="A4" />
                <Excel Format="Html" />
                <Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" />
            </ExportSettings>
            <MasterTableView CommandItemDisplay="Top"  PagerStyle-AlwaysVisible="False"
                <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>         
               <CommandItemTemplate>
 
                      <asp:LinkButton ID="btn_save" runat="server" CommandName="saveGrid" ><asp:Image runat="server" ID="img_save" ImageUrl="~/_resources/images/icons/tick.png"/></asp:LinkButton>
                      <asp:LinkButton ID="btn_excel" runat="server" CommandName="excel" ><asp:Image runat="server" ID="Image1" ImageUrl="~/_resources/images/icons/xls_grey.gif"/></asp:LinkButton>                       
                     
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="True"
                            AllowDragToGroup="True"
                            AllowColumnsReorder="True"
                            EnablePostBackOnRowClick="False"
                            AllowGroupExpandCollapse="True" >
                            <Selecting AllowRowSelect="true" />
                             
                <Resizing AllowRowResize="True"
                          AllowColumnResize="True"
                          EnableRealTimeResize="True"
                          ResizeGridOnColumnResize="False">
                </Resizing>              
            </ClientSettings>
        </telerik:RadGrid>
 
</telerik:RadAjaxPanel>
Public Property Datasource() As DataTable
       Get
           Return _Datasource
       End Get
       Set(ByVal value As DataTable)
           _Datasource = value
       End Set
   End Property
 
   Public Property GridDataKeyNames() As String
       Get
           Return _GridDataKeyNames
       End Get
       Set(ByVal value As String)
           _GridDataKeyNames = value
       End Set
   End Property
 
   Public Property GridContextMenu() As Boolean
       Get
           Return _GridContextMenu
       End Get
       Set(ByVal value As Boolean)
           _GridContextMenu = value
       End Set
   End Property
 
   Public Property GridRowClick() As Boolean
       Get
           Return _GridRowClick
       End Get
       Set(ByVal value As Boolean)
           _GridRowClick = value
       End Set
   End Property
 
   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
       If Not IsPostBack Then          
           ViewState("gridData") = sectionCache
           ViewState("GridDataKeyNames") = GridDataKeyNames
           ViewState("GridContextMenu") = GridContextMenu
           ViewState("GridRowClick") = GridRowClick
       Else
           sectionCache = ViewState("gridData")
           GridDataKeyNames = ViewState("GridDataKeyNames")
           GridContextMenu = ViewState("GridContextMenu")
           GridRowClick = ViewState("GridRowClick")
       End If
 
       If Not Cache(sectionCache) Is Nothing Then
           Datasource = Cache(sectionCache)
       Else
           Cache(sectionCache) = Datasource
       End If
 
       standardGrid()
 
       If Not IsPostBack Then
 
           Dim hdn_field As HiddenField = TryCast(Page.Master.FindControl("hdn_pageId"), HiddenField)
 
           dataGrid = New DataRadGrid
           dataGrid.pageId = New Guid(hdn_field.Value.ToString())
           dataGrid.coreEntityId = Session.Item("RealId")
           Dim gridSettings As String = dataGrid.LoadSettings()
 
           If gridSettings <> "" Then
               Dim LoadPersister As New GridSettingsPersister(RadGrid1)
               LoadPersister.LoadSettings(gridSettings)
           End If
 
       End If
 
   End Sub
 
   Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
       RadGrid1.MasterTableView.VirtualItemCount = Datasource.Rows.Count
       RadGrid1.DataSource = Datasource
 
   End Sub
 
Protected Sub standardGrid()
 
       If GridRowClick Then
 
           If GridDataKeyNames = "" Then
               GridDataKeyNames = "ROWCLICK"
           Else
               GridDataKeyNames += ",ROWCLICK"
           End If
 
           RadGrid1.ClientSettings.ClientEvents.OnRowClick = "RowClick"
 
       End If
 
       If GridDataKeyNames <> "" Then
           Dim dataKeyNamesArray() As String = GridDataKeyNames.Split(",".ToArray())
 
           RadGrid1.MasterTableView.ClientDataKeyNames = dataKeyNamesArray
           RadGrid1.MasterTableView.DataKeyNames = dataKeyNamesArray
 
       End If
 
       If GridContextMenu Then
           RadGrid1.ClientSettings.ClientEvents.OnRowContextMenu = "RowContextMenu"
       End If
 
       Dim boundColumn As GridBoundColumn
 
       RadGrid1.MasterTableView.Columns.Clear()
 
       For Each column As DataColumn In Datasource.Columns
 
           If GridDataKeyNames <> "" Then
               If Not GridDataKeyNames.Contains(column.ColumnName.ToString()) Then
                   If column.ColumnName.ToString().IndexOf("_HIDDEN") < 0 Then
 
                       boundColumn = New GridBoundColumn
                       RadGrid1.MasterTableView.Columns.Add(boundColumn)
 
                       boundColumn.DataField = column.ColumnName
                       boundColumn.HeaderText = column.ColumnName.Replace("_", " ")
                       boundColumn.DataFormatString = "<nobr>{0}</nobr>"
                   Else
                       boundColumn = New GridBoundColumn
                       RadGrid1.MasterTableView.Columns.Add(boundColumn)
 
                       boundColumn.DataField = column.ColumnName
                       boundColumn.HeaderText = column.ColumnName
 
                       boundColumn.Visible = False
                   End If
 
               End If
           Else
               If column.ColumnName.ToString().IndexOf("_HIDDEN") < 0 Then
 
                   boundColumn = New GridBoundColumn
                   RadGrid1.MasterTableView.Columns.Add(boundColumn)
 
                   boundColumn.DataField = column.ColumnName
                   boundColumn.HeaderText = column.ColumnName.Replace("_", " ")
                   boundColumn.DataFormatString = "<nobr>{0}</nobr>"
               Else
                   boundColumn = New GridBoundColumn
                   RadGrid1.MasterTableView.Columns.Add(boundColumn)
 
                   boundColumn.DataField = column.ColumnName
                   boundColumn.HeaderText = column.ColumnName
 
                   boundColumn.Visible = False
               End If
           End If
 
 
       Next
 
   End Sub

Any help would be much appreciated
mabs
Top achievements
Rank 1
 answered on 26 Jul 2010
1 answer
97 views
In our application, we gave user options to store the grid settings to user. We were using 2009 Q2 Telerik RADGrid. Now that we upgraded the RADGrid to Q3, the grid settings gives error. We soon figured out that may be GridSettings are not compatiable. The end user doesn't wish to lose the already stored settings. Is there any utility or code to covert the old settings to new settings compatiable to newer RADGrid?
Maria Ilieva
Telerik team
 answered on 26 Jul 2010
6 answers
155 views
Is there any way of setting something in web.config or IIS (or anywhere) to fool FileExplorer into thinking that a file path "c:/aaa/fff" is "~/fff" so as to avoid using a custom provider?

John
Petio Petkov
Telerik team
 answered on 26 Jul 2010
5 answers
95 views
Our website needs to use:

<xhtmlConformance mode="Legacy" />

in the system.web section of our web config file.

I was not able to get the AjaxPanel to work when this is on.  Setting it to "transitional" or "strict" cause the panel to work nicely.  Unfortunately, changing this seetting at this time is not a choice for us.  Is the another way to make this work?

Maria Ilieva
Telerik team
 answered on 26 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?