Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
119 views
Hello,

I have a RadGrid bound to a WCF service on the client side.  I am trying to set up inline editing/updating.  Is this possible out of the box?  If not, how would you go about implementing it?

Regards,
Josh Owen
Joshua Owen
Top achievements
Rank 1
 answered on 08 Oct 2009
1 answer
59 views
Hi all

I need to build site search into my current website project so I am looking for a suitable 3rd party package
that would not be incompatible with the rest of the site which is asp.net 3.5 and almost 100%
RadAjax controls.

Suggestions welcome!

I have used Sitesearchasp.net on other sites but integration with existing asp.net pages
was painful/impossible.

Thanks

Clive
Clive Hoggar
Top achievements
Rank 1
 answered on 08 Oct 2009
2 answers
96 views

Hi

We are currently using EntityDataSource to bind data to grid. Currently sorting on single column works fine.

When I enable multi column sorting on grid it gives me the below error. But Multi column sorting works fine with Object Datasource.

 

Below are the error details.

 

'QueueId' could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly., near simple identifier, line 18, column 1. 

 

Regards

Vikram

phani vikram jungali
Top achievements
Rank 1
 answered on 08 Oct 2009
5 answers
262 views
I have a scenerio that I am trying to find a solution to. 
See the attached pictures.  One shows before, the other shows what I want to acheive.

I have a 2 level nested grid.  Level 1 shows a list of products (Polo Shirt, Fleece, Mug...).  Level two shows the options that each product is available. Depending on the product, it may have a different number of features.  Ex. Shirt will have color, size, and style where as the mug will only have color.  Data rows for the second table return 10 columns label Feature1 .. Feature10. 

I want to be able to hide the columns that do not apply to that product and to rename the column to the appropriate name. Ex. Polo shirt should show columns 1-3 and hide columns 4-10 and the names of columns 1-3 should be changed color, size, style (instead of Feature1, Feature2, Feature3).  And for the Mug only column 1  should show while columns 2 - 10 are hidden. The name of the column should be changed to color. The names of the columns are available in the rows returned for the 2nd level grid.


Any help would be much appreciated.
Katie
Top achievements
Rank 1
 answered on 08 Oct 2009
4 answers
129 views
I just upgraded an app from 2008 to 2009.1.527.35.

The tooltips no longer render properly in IE 8 or FF (I haven't tested the other browsers).

A few things:

  • The width is no longer working
  • The Skin doesn't load (and I'm using your built-in Vista skin; I've also tried some of your other skins)
  • I've tried setting EnableAjaxSkinRendering to "false"
  • I've also tried copying the skin to my working path, loading the css manually with <link />, and setting EnableEmbeddedSkins to "false"

None of these work.  The tooltip is inside a panel bar.  The 2008 version worked perfect.

Please help.

Joshua

Nik
Top achievements
Rank 1
 answered on 08 Oct 2009
4 answers
214 views
Hello,

I'm getting the following javascript Ajax related error when I set up a custom iTemplate instead of using the Telerik GridTemplateColumn.  The error shows up when I click on the custom link I create instead of using the aspx GridTemplateColumn's link.

Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

The error details say it is a 500 error.


If I use the GridTemplateColumn shown below, it works fine.

<Columns> 
     <telerik:GridTemplateColumn UniqueName="Delete" AllowFiltering='false'> 
          <HeaderStyle Width="45px" /> 
          <ItemStyle CssClass="c" /> 
          <ItemTemplate> 
               <asp:HyperLink ID="DeleteLink" runat="server" Text="Delete" /> 
          </ItemTemplate> 
     </telerik:GridTemplateColumn> 
</Columns> 

But when I convert it to an iTemplate using the following code, I receive the error.

Dim type As String = "Delete" 
Dim column As New GridTemplateColumn 
column.AllowFiltering = False 
column.HeaderStyle.Width = 45 
column.ItemStyle.CssClass = "c" 
column.ItemTemplate = New HyperlinkTemplate(type) 
column.UniqueName = type 
RadGrid1.MasterTableView.Columns.Add(column) 

My HyperlinkTemplate is the following class.

Public Class HyperlinkTemplate 
    Implements ITemplate 
    Private _type As Object 
 
    Public Sub New(ByVal type As String
        MyBase.New() 
        _type = type 
    End Sub 
 
    Public Sub InstantiateIn(ByVal container As Control) Implements ITemplate.InstantiateIn 
        Dim hl As New HyperLink 
        hl.EnableViewState = False 
        hl.ID = _type & "Link" 
        hl.Text = _type 
        hl.Attributes("href") = "#" 
        container.Controls.Add(hl) 
    End Sub 
End Class 

I have an OnItemCreated event that runs the following code which adds an onclick event which I will show next and customizes the ID to make it unique:

Dim deleteLink As HyperLink = DirectCast(e.Item.FindControl("DeleteLink"), HyperLink) 
deleteLink.Attributes("onclick") = [String].Format("return Delete('{0}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)(IDcolumnIsHere)) 
deleteLink.ID &= e.Item.ItemIndex 
 

The onclick code calls the RadAjaxManager I have set up.

function Delete(id) { $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Grid,Delete," + customValue + "," + id); } 


The custom column is added during the Page_Load event.

It never reaches the Ajax Handler I have set up unless I use the aspx GridTemplateColumn instead of my custom template.

Am I doing something wrong with the iTemplate or am I not initializing something I should be that integrates it with the RadGrid?  I've tried going through the various properties available to me for the column and the iTemplate, but I haven't had any luck making the error go away so I know I'm missing something... just not sure what.


Ivan Stoilkov
Top achievements
Rank 1
 answered on 08 Oct 2009
6 answers
818 views
Hi,

I am initially loading the grid in edit mode - and when doing that, RadGrid seems to ignore the value for the DataFormatString property of my GridBoundColumn
It works if I do not load the grid in edit mode.

How can I make it work when loading in edit mode?
Daniel
Telerik team
 answered on 08 Oct 2009
2 answers
191 views

I’m having a problem with the selection of rows in a Master/Detail Grid.

 

Scenario: I have a page with two grids that are connected via a Master/Detail relationship.  It is similar to http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx, except I have two grids instead of three and my page’s pre-render event codebehind looks like:


Protected Sub Page_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.PreRender  
            If RadGrid1.SelectedIndexes.Count = 0 Then 
                RadGrid1.SelectedIndexes.Add(0)  
            End If 
        End Sub 

 

When the page loads for the first time, the first row in the Master grid is selected, but not the first row in the Detail grid. 

 

I wanted to know how to select the first row in the Detail Grid of a Master/Detail Grid on the first load of the page if the Detail grid has any rows related to that particular Master grid item at Index(0).

jgill
Top achievements
Rank 1
 answered on 08 Oct 2009
4 answers
368 views
Hi
I got permission denied error and some more script errors in telerik.web.ui.webresource.axd file for the first time i request the page from the IIS server. Once I refresh the page, it works fine without any script error. This error doesnot happen if I run the code locally from my system. This error doesnot occur if I use automatically detect setting in LAN settings. But the error happens if check proxy server for lan and add the ip of the site to advanced settings (donot use proxy option).
Please provide the solution and reason for this.
regards
Bharath
Jon
Top achievements
Rank 1
 answered on 08 Oct 2009
2 answers
184 views
Hello, I'm having a bit of trouble trying to put nested controls in a databound RadPanel. What I want is basically the same as this example:

http://www.telerik.com/help/aspnet-ajax/panel_templatesoverview.html


However, the problem is that I do not know how many items I'm going to have until run time.

If I have

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" ItemCreated="RadPanelBar1_ItemCreated">  
    <ItemTemplate>            
      <asp:TextBox ID="txtResponse" TextMode="MultiLine" runat="server" /><br /> 
      <asp:Button ID="btnSubmit" runat="server" Text="Submit" Visible="true" /> 
      <asp:LinkButton ID="lbAsk" runat="server" Visible="true" /> 
      <asp:LinkButton ID="lbNewEvisit" runat="server" Visible="true" /> 
                </ItemTemplate>                 
</telerik:RadPanelBar> 
 

and my codebehind looks like
protected void RadPanelBar1_ItemCreated(object sender, RadPanelBarEventArgs e)  
{  
      if (e.Item.Owner is RadPanelBar)  
      {  
           RadPanelItem i = new RadPanelItem();  
           e.Item.Items.Add(i);  
      }  
}  
 
/* Page Load Event and other stuff */ 
RadPanelBar1.DataSource = ds.Tables[0];  
RadPanelBar1.DataTextField = "dtEvisitStart";  
RadPanelBar1.DataBind();  
 
 

What happens is that the item template is created correctly for each item, with each item heading correct, however there's a duplicate set of controls attached to each item as seen on the attached image (each date should only have one set of controls).
I see similar behavior in static code if I remove the empty ItemTemplate place holder, but I can't seem to correct the problem for the dynamically bound panel. Any help greatly appreciated! Thank you.
Landon Martin
Top achievements
Rank 1
 answered on 08 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?