Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hi
I have three tabs (tab1, tab2, and tab3). When I click on tab2, _TabClick event is fired, which is ok.
The problem is how can I fire this event when I click tab2 again? 

Thanks
Brew
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2010
3 answers
163 views

Hi,

I couldn't find any help on this. I was wondering if there's a client-side event I can use that will change the bar's color in a Bar chart on client mouse over. Thanks.

Han

Ves
Telerik team
 answered on 13 Aug 2010
1 answer
573 views
Hello Telerik
I seem to be having a problem with a ListView control after upgrading from 2010.1.309 to 2010.2.713.  The following error occurs when attempting to load a page with a ListView on it:

Error Message:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Method 'get_ProductListViewControl' in type 'Overlord.Product.Views.Search' from assembly 'Product.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

Other telerik controls like the RadMenu, RadGrids etc all seem to work fine.  Just the ListView is not working properly.

I also have a support ticket open for a production problem we are having with our ListView causing a timeout when paging or sorting.  We thought that upgrading to 2010.2.713 might solve the problem, but now we have two problems!

Any help would be greatly appreciated.

The HTML markup for the listview is below.  Note that everything was working OK before the upgrade. 

<telerik:RadListView ID="ProductListView" runat="server" AllowPaging="true" DataSourceID="ProductObjectDataSource"
                Skin="Sitefinity">
                <AlternatingItemTemplate>
                    <div id="prdcontainer">
                        <div id="prdimg">
                            <a href='<%# Eval("CLICK2COMPARE_URL") %>' class="pdctimg">
                                <telerik:RadBinaryImage ID="img" runat="server" DataValue='<%# Bind("PDCT_IMG_BIN") %>'
                                    Height="100px" Width="100px" ResizeMode="Fit" />
                            </a>
                        </div>
                        <div id="prdinfo">
                            <a href='<%# Eval("CLICK2COMPARE_URL") %>' class="prdname">
                                <asp:Label ID="name" runat="server" CssClass="prdname" Text='<%# Bind("PDCT_NAME") %>'></asp:Label></a>
                            <br />
                            <asp:Label ID="prddesc" runat="server" CssClass="prddesc" Text='<%# Bind("PDCT_DESC") %>'></asp:Label>
                            <br />
                            <asp:Label ID="prdmaxrank" runat="server" CssClass="prdmaxrank" Text='<%# Bind("MAX_RANK") %>'></asp:Label>
                            <br />
                            <asp:Label ID="prdminprice" runat="server" CssClass="prdminprice" Text='<%# Bind("MIN_PRICE") %>'></asp:Label>
                        </div>
                        <div id="prdpricecontainer">
                            <div id="prdprice">
                                <asp:Label ID="prdprice" runat="server" CssClass="prdprice" Text='<%# Bind("PRICE_RANGE") %>'></asp:Label>
                            </div>
                            <div id="prdgo">
                                <asp:Label ID="lblNumPdct" runat="server" CssClass="numpdct" Text='<%# Bind("NUM_PDCT") %>'></asp:Label>
                                <br />
                                <asp:Label ID="lblNumStores" runat="server" CssClass="numstores" Text='<%# Bind("NUM_STORES") %>'></asp:Label>
                                <br />
                                <asp:Button ID="btnGo" runat="server" Text="Compare Prices" CommandName='<%# Bind("PDCT_ID") %>'
                                    CommandArgument='<%# Bind("CLICK2COMPARE_URL") %>' OnCommand="ProductClick" CausesValidation="False" />
                            </div>
                        </div>
                        <div id="prdoptions">
                        </div>
                    </div>
                </AlternatingItemTemplate>
                <ItemTemplate>
                    <div id="prdcontainer">
                        <div id="prdimg">
                            <a href='<%# Eval("CLICK2COMPARE_URL") %>' class="pdctimg">
                                <telerik:RadBinaryImage ID="img" runat="server" DataValue='<%# Bind("PDCT_IMG_BIN") %>'
                                    Height="100px" Width="100px" ResizeMode="Fit" />
                            </a>
                        </div>
                        <div id="prdinfo">
                            <a href='<%# Eval("CLICK2COMPARE_URL") %>' class="prdname">
                                <asp:Label ID="name" runat="server" CssClass="prdname" Text='<%# Bind("PDCT_NAME") %>'></asp:Label></a>
                            <br />
                            <asp:Label ID="prddesc" runat="server" CssClass="prddesc" Text='<%# Bind("PDCT_DESC") %>'></asp:Label>
                            <br />
                            <asp:Label ID="prdmaxrank" runat="server" CssClass="prdmaxrank" Text='<%# Bind("MAX_RANK") %>'></asp:Label>
                            <br />
                            <asp:Label ID="prdminprice" runat="server" CssClass="prdminprice" Text='<%# Bind("MIN_PRICE") %>'></asp:Label>
                        </div>
                        <div id="prdpricecontainer">
                            <div id="prdprice">
                                <asp:Label ID="prdprice" runat="server" CssClass="prdprice" Text='<%# Bind("PRICE_RANGE") %>'></asp:Label>
                            </div>
                            <div id="prdgo">
                                <asp:Label ID="lblNumPdct" runat="server" CssClass="numpdct" Text='<%# Bind("NUM_PDCT") %>'></asp:Label>
                                <br />
                                <asp:Label ID="lblNumStores" runat="server" CssClass="numstores" Text='<%# Bind("NUM_STORES") %>'></asp:Label>
                                <br />
                                <asp:Button ID="btnGo" runat="server" Text="Compare Prices" CommandName='<%# Bind("PDCT_ID") %>'
                                    CommandArgument='<%# Bind("CLICK2COMPARE_URL") %>' OnCommand="ProductClick" CausesValidation="False" />
                            </div>
                        </div>
                        <div id="prdoptions">
                        </div>
                    </div>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <div class="RadListView RadListView_Sitefinity">
                        <div class="rlvEmpty">
                            Your search did not match any products.
                            <br />
                            <br />
                            Suggestions:
                            <ul>
                                <li>Make sure all words are spelled correctly.</li>
                                <li>Try different keywords.</li>
                                <li>Try more general keywords.</li>
                            </ul>
                        </div>
                    </div>
                </EmptyDataTemplate>
                <LayoutTemplate>
                    <div id="productlistviewcontainer" runat="server" class="RadListView RadListView_Sitefinity">
                        <ol>
                            <li id="itemPlaceholder" runat="server"></li>
                        </ol>
                        <telerik:RadDataPager ID="RadDataPager1" runat="server">
                            <Fields>
                                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                            </Fields>
                        </telerik:RadDataPager>
                    </div>
                </LayoutTemplate>
            </telerik:RadListView>

Stack Trace:
Event Type: Warning
Event Source:   ASP.NET 2.0.50727.0
Event Category: Web Event 
Event ID:   1310
Date:       13/08/2010
Time:       4:55:43 PM
User:       N/A
Computer:   MAGICMINDSTEST
Description:
Event code: 3006 
Event message: A parser error has occurred. 
Event time: 13/08/2010 4:55:43 PM 
Event time (UTC): 13/08/2010 6:55:43 AM 
Event ID: 4f20e6dc0d9d4e6988bed1fb68e38331 
Event sequence: 53 
Event occurrence: 2 
Event detail code: 0 
   
Application information: 
    Application domain: /LM/W3SVC/1073077206/Root-5-129261559167671250 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Projects\Overlord\WebSites\Overlord\ 
    Machine name: MAGICMINDSTEST 
   
Process information: 
    Process ID: 9996 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
   
Exception information: 
    Exception type: HttpParseException 
    Exception message: Method 'get_ProductListViewControl' in type 'Overlord.Product.Views.Search' from assembly 'Product.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. 
   
Request information: 
    Request path: /Product/Search.aspx 
    User host address: 127.0.0.1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
   
Thread information: 
    Thread ID: 12 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)
   at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
   at System.Web.UI.TemplateParser.ParseInternal()
   at System.Web.UI.TemplateParser.Parse()
   at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)
   at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
   at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
   at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   
   
Custom event details: 
  
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Adam
Top achievements
Rank 1
 answered on 13 Aug 2010
1 answer
180 views
Hello Telerik Team,

I am trying to bind the xml to the Grid but having issues rendering the child nodes from the xml properly.
Please have a look at my xml and code snippet and help me in resolving the issue.

I have referred this blog to achieve this functionality

<?xml version="1.0" encoding="utf-8"?>
<root>
  <Products>
    <Product>
      <Items ItemID="1" ItemNo="1232">
        <Description ManufactureDate="2010/05/26" ID="11"></Description>
      </Items>
      <Items ItemID="2" ItemNo="1231">
        <Description ManufactureDate="2010/05/12" ID="12"></Description>
      </Items>
      <Items ItemID="3" ItemNo="1270">
        <Description ManufactureDate="2010/05/1" ID="21"></Description>
      </Items>
      <Items ItemID="4" ItemNo="1129">
        <Description ManufactureDate="2010/05/4" ID="30"></Description>
      </Items>
    </Product>
  </Products>
</root>

Below is my code snippet:

Imports Telerik.Web.UI
Imports System.Xml
Imports System.IO
 
Public Class Test
    Inherits System.Web.UI.Page
    Dim xmlDoc As New System.Xml.XmlDocument()
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
        DefineGridStructure()
 
        Dim Grid1 As RadGrid = CType(PlaceHolder1.FindControl("RadGrid1"), RadGrid)
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(Grid1, Grid1)
 
        If Not IsPostBack Then
            Grid1.SelectedIndexes.Add(1, 0, 0)
            Grid1.DataBind()
            '  Grid1.MasterTableView.Items(0).Expanded = True
        Else
 
        End If
         
        Grid1.DataBind()
    End Sub
 
    Private Sub DefineGridStructure()
        Dim RadGrid1 As RadGrid = New RadGrid
        RadGrid1.ID = "RadGrid1"
 
 
        xmlDoc.Load(Server.MapPath("test.xml"))
 
        xmlDoc.SelectSingleNode("//Product").Attributes.RemoveAll()
 
        Dim ndlSingleParentNode As XmlNodeList = xmlDoc.SelectNodes("//Product/node() [descendant::node()][position()=1]")
 
 
        Dim ndl As XmlNodeList = xmlDoc.SelectNodes("//Product/node()[descendant::node()]")
 
        RadGrid1.DataSource = ConvertXmlNodeListToDataTable(ndlSingleParentNode, ndl, RadGrid1)
        RadGrid1.DataBind()
        Me.PlaceHolder1.Controls.Add(RadGrid1)
        ' Dim ndList As System.Xml.XmlNodeList = xmlDoc.SelectNodes("//Product/node()")
    End Sub
 
    Private Function ConvertXmlNodeListToDataTable(ByVal ndlProduct As XmlNodeList, ByVal ndl As XmlNodeList, ByVal RadGrid1 As RadGrid) As Object
 
        Dim dt As DataTable = New DataTable()
 
        Dim TempColumn As Integer = 0
        For Each ndSubChild As XmlNode In ndlProduct
            For attrCoun As Integer = 0 To ndSubChild.Attributes.Count - 1 Step 1
                TempColumn = TempColumn + 1
                Dim dc As DataColumn = New DataColumn(ndSubChild.Attributes(attrCoun).Name, System.Type.GetType("System.String"))
                If dt.Columns.Contains(ndSubChild.Attributes(attrCoun).Name) Then
                    dt.Columns.Add(dc.ColumnName = dc.ColumnName + TempColumn.ToString())
                Else
                    dt.Columns.Add(dc)
                End If
            Next
        Next
        Dim ColumnsCount As Integer = dt.Columns.Count
 
        Dim ndCount As Integer = 0
        For ndlCount As Integer = 0 To ndl.Count - 1 Step 1
            Dim dr As DataRow = dt.NewRow()
            For ndCount = 0 To ColumnsCount - 1 Step 1
                If Not ndl(ndlCount).Attributes(ndCount).Value = "" Then
                    dr(ndCount) = ndl(ndlCount).Attributes(ndCount).Value
                Else
                    dr(ndCount) = ndl(ndlCount).Attributes(ndCount).Value
                End If
            Next
            dt.Rows.Add(dr)
        Next
 
        Dim tableView As GridTableView = New GridTableView(RadGrid1)
        Dim childGrid As New RadGrid()
        Dim boundColumn As GridBoundColumn
 
        For ndlCount As Integer = 0 To ndl.Count - 1 Step 1
            Dim dsChild As New DataSet
            Dim attrCount As Integer = 0
            If ndl(ndlCount).ChildNodes.Count > 0 Then
 
                'Dim gridtempCol As GridTemplateColumn = New GridTemplateColumn()
                'gridtempCol.DataField = "test"
                'gridtempCol.HeaderText = "test"
                'gridtempCol.ItemTemplate.InstantiateIn(childGrid)
                'RadGrid1.MasterTableView.TemplateControl.LoadTemplate(gridtempCol.ToString())
 
                Dim ndSelect As XmlNodeList = xmlDoc.SelectNodes("//Product/node()[@RowID=" & ndlCount + 1 & "]")
                Dim ndSelectNode As XmlNode = xmlDoc.SelectSingleNode("//Product/node()[@RowID=" & ndlCount + 1 & "]")
 
                tableView.AutoGenerateColumns = False
 
                'dsChild.ReadXml(New StringReader(ndSelectNode.InnerXml))
                'childGrid.DataSource = dsChild
 
                'childGrid.DataBind()
 
                For Each tableViewNode As XmlNode In ndl(ndlCount).ChildNodes
 
                    For attrCount = 0 To tableViewNode.Attributes.Count - 1 Step 1
                        boundColumn = New GridBoundColumn
                        boundColumn.DataField = tableViewNode.Attributes(attrCount).Name
                        boundColumn.AllowSorting = True
                        boundColumn.ShowSortIcon = True
 
                        boundColumn.HeaderText = tableViewNode.Attributes(attrCount).Name
                        tableView.Columns.Add(boundColumn)
                    Next
                    tableView.DataBind()
                Next
                ' tableView.DataSource = dsChild
            End If
        Next
        ' tableView.Controls.Add(childGrid)
        RadGrid1.MasterTableView.DetailTables.Add(tableView)
 
        RadGrid1.DataBind()
 
        Session.Add("dt", dt)
        Session.Add("ctrlListing", RadGrid1)
        Return dt
 
    End Function
 
End Class
Veli
Telerik team
 answered on 13 Aug 2010
1 answer
66 views
Hai Team,
I try To Sample in Telerik Demo .But Comes One Message alter "Erro Loading radChart Image"..Please Give Good sample..How do i draw the Chart.. Give the Corretct Sample..And Type Charts are i need..

With Regards,
S.Kannadasan
Yavor
Telerik team
 answered on 13 Aug 2010
5 answers
743 views
Hi all:

I have a web project I just porrted to VS 2010 and the "Q12010 NET40" RadControls. Now for some reason row selection in the grids, which was working fine in the project, has stopped working. I have pasted the code for the grid below, and I did not make any changes to the grid code in teh new project...

Can anyone offer any suggestions?

<telerik:RadGrid runat="server" AllowPaging="True" PageSize="15" ID="grdFilteredHotels" OnNeedDataSource="grdFilteredHotels_NeedDataSource"
Width="1020px" Height="365px" OnRowDrop="grdFilteredHotels_RowDrop" AllowMultiRowSelection="true" AllowSorting="True" BackColor="White"
Style="z-index: 103; left: 0px; position: absolute; top: 27px">
<PagerStyle Mode="NumericPages"></PagerStyle>
<MasterTableView DataKeyNames="Hotel" Width="100%" CellSpacing="-1">
</MasterTableView>
              <ClientSettings AllowRowsDragDrop="True">
                <Selecting AllowRowSelect="True" />
                <ClientEvents OnRowDropping="onRowDropping" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
              </ClientSettings>
              </telerik:RadGrid>
Tsvetoslav
Telerik team
 answered on 13 Aug 2010
2 answers
1.0K+ views
How to get selected value of Radcombobox?
Like in Dropdownlist when we say
string str = Dropdownlist1.SelectedValue.ToString();

in str we can get the selected value of the dropdownlist, so the same way how can i get the selected value of Radcombobox.
cause it has the property selectedvalue but i am getting null there, can anyone help me how to do this.
i want this because based on the selected value of the first Radcombobox i am loading the next so inputs required......
Senthil ramna
Top achievements
Rank 1
 answered on 13 Aug 2010
1 answer
95 views
Is it possible to create a RadGrid solely on the client side?  I know I wont' have access to all the usual server side events and data binding, but if I do all the events and data binding on the client, is this possible?
Princy
Top achievements
Rank 2
 answered on 13 Aug 2010
5 answers
197 views
Hi,

Please treat this as high priority!

When we launch a RadWindow from inside a RadGrid Cell click event, RadWindow shows but after content loading is complete, the IE Progress bar (in the main window) still shows .. like as if the response still is not complete...

Are you guys aware of this issue? Any help would be great.

Hi,

We've almost similar issue , the IE Status bar never stops the progress bar...
This happens (only) when we launch a RadWindow from inside a RadGrid Row or Cell click event.

The content of the Radwindow is shown and then the IE progress bar starts displaying the bar and increasing...
the IE status bar stops when we close the RadWindow.

Can you help to fix this issue?

Update: If we set this property ShowContentDuringLoad = true, the the IE progress bar shows only for the very first click, any subsequent click, the Status bar goes away!  We also use ReloadOnShow=true.

Thanks,

Gopi
Radoslav
Telerik team
 answered on 13 Aug 2010
1 answer
132 views
I have a main page with a radgrid. In that page is a button that opens up a RadWindow where the user can make some changes that will affect the radgrid. The user hits 'save and close' and I process those changes in the codebehind and then I close the radwindow. Right before closing the radwindow, I'd like to rebind the radgrid that's in the main page.

Is that possible? I'm able to close the radwindow, but not rebind at the moment. That's what I'm missing.
Shinu
Top achievements
Rank 2
 answered on 13 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?