Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
173 views

We are experiencing a problem with the RadGrid in the Q1 2009 version of the RadControls. We have setup a NeedsDataSoure method that gets the data for the grid. When a user deletes a row from the grid, the NeedsDataSoure method is called successively. However, the grid is not refreshed and the deleted item still appears in the grid. We tried calling DataBind manually, but the Grid Control won't let us do that because it takes place automatically in the NeedsDataSoure method? Is this a known bug with the Q1 2009 release? We have found quite a few problems with the Q1 2009 release, and are not sure whether we should use it. Can someone from Telerik please assist us with this issue as soon as possible. If this is a bug with the product, we are going to have to back out the release.

Anthony
Tsvetoslav
Telerik team
 answered on 23 Apr 2009
1 answer
125 views

Hi,

I want to use the same XML data source to load tabs in a RadTabStrip (used as the Menu on the page) and a RadTreeView (used as a SiteMap).

The XML file must have one (and only one) root element . Unfortunately the root element is displayed in the RadTabStrip and because of that I can only have one root tab…

The XML file looks like this:

<?xml version="1.0" encoding="utf-8" ?>

<Items Text="1" Url="">

  <Item Text="European cities" Url="" >

    <Item Text="Sofia" Url="http://en.wikipedia.org/wiki/Sofia" />

    <Item Text="Berlin" Url="http://en.wikipedia.org/wiki/Berlin" />

    <Item Text="Paris" Url="http://en.wikipedia.org/wiki/Paris" />

  </Item>

</Items>

I load the file like this:

Dim x As New XmlDataSource

x.DataFile = strVirtualFolder & "/xml/SiteMap_TelerikMenuTest.xml"

 

 

m.DataTextField = "Text"

m.DataNavigateUrlField = "Url"

m.DataBind()

And my ASPX file:

<telerik:RadTabStrip ID="m" UnSelectChildren="true" Skin="Office2007" runat="server" dir="ltr" CausesValidation="false" SelectedIndex="-1" >

    </telerik:RadTabStrip>

 

How can I have more than one ”root tab”?

Atanas Korchev
Telerik team
 answered on 23 Apr 2009
1 answer
164 views
I have some questions According to your tutorials "Customize the Advanced Form Template" at: http://www.telerik.com/help/aspnet-ajax/schedule_advancedformtemplate.html :
  1. Would it be possible to use Editor for Description Field ?
  2. Is your setting on "MultipleValuesResourceControl" from file AdvancedForm.ascx:
                <div class="rsAdvOptionsPanel"> 
                    <asp:Panel  runat="server" ID="ResourceControls"> 
                        <ul class="rsResourceControls"> 
                            <li> 
                                <scheduler:MultipleValuesResourceControl    runat="server" ID="ResourceControl1" 
                                                        Type="Room" Label="Room: " Value='<%# Bind("Room") %>' /> 
                            </li> 
                            <li> 
                                <scheduler:ResourceControl  runat="server" ID="ResourceControl2" 
                                                        Type="User" Label="User: " Value='<%# Bind("User") %>' /> 
                            </li> 
                            <!-- Optionally add more ResourceControl instances here --> 
                        </ul> 
                    </asp:Panel> 
                </div> 

    has disable the setting from file DefaultVB.aspx.vb:
            Protected Sub RadScheduler1_DataBound(ByVal sender As Object, ByVal e As EventArgs) 
                RadScheduler1.ResourceTypes.FindByName("User").AllowMultipleValues = True 
                RadScheduler1.ResourceTypes.FindByName("Room").AllowMultipleValues = False 
            End Sub 
    I'd like to keep the setting from file "DefaultVB.aspx.vb, how can i modify file AdvancedForm.ascx ?
Peter
Telerik team
 answered on 23 Apr 2009
5 answers
117 views
I would like to cross-post here something that I just posted on the ASP.Net forums.

I want to restate again that I have been and will continue to be a HUGE FAN of Telerik and the RadTreeView.  I do believe that I've improperly used your product (version 6.3.3) and am simply seeking help to resolve the problem.

Once again, the pertinent questions I have are these:
  1. With the RadTreeView, I am loading on demand so why is so much data being brought down from the server each time?
  2. With the first screenshot you see, I actually viewed the source, copied it all into Notepad, and saved it into a text file.  It was only 84K.  Why then do I have those 230K Fiddler numbers?
  3. Does Telerik's newer RadTreeView helps resolve some of these problems?  I was gearing up to upgrade to VS2008 and their latest RadTreeView but haven't as of yet.

Sincerely,

Robert Werner
Robert
Top achievements
Rank 1
 answered on 23 Apr 2009
1 answer
92 views
I have the following RadGrid:
<telerik:RadGrid ID="grdContractItems" runat="server"   
    CssClass="grdContractItems" AutoGenerateColumns="False" GridLines="Both"   
     ShowHeader="true" 
    onitemdatabound="grdContractItems_ItemDataBound" Height="250px">  
    <ClientSettings> 
        <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" FrozenColumnsCount="1" /> 
    </ClientSettings> 
 

With the following CSS:
.grdContractItems  
{  
    position: relative;  
    width: 600px;  
    float: left;  
    clear: left;  
    background-color: White;  
    border: solid 0px black;  
} 

But the resulting grid has a grey background, a border, and when a scroll appears it seems to show a grey area where the horizontal scroll would show if it is needed... though its not in my code.

What am I doing wrong?
Pavlina
Telerik team
 answered on 23 Apr 2009
1 answer
110 views

Hi
Issue #1:
   I used Rad grid with in User control.  The User Control have some set of Function . like Area Associations    wtith drop down, like wise Country, State, City.  When i Choose the Country drop down values that time loaded the related cities in Second Drop down like wise...
and Also some Dynamic Control are there for example When i Click the button that time the automatic row generated... my problem is i Edit Come text box values in Update mode. then i click this button that time the Edited values is disappear . and database values is display again.  How can i Solve this problem. the Edit Mode Code event i wrote in Code Behind C#.Net.

Issue #2
   i could not call the Ajax in edit mode drop down and another control How can i call the Ajax in edit mode Control . For example The above example area association country, state, city.  is not properly doing in Ajax in Edit Mode. and Button Click event the Auto Generated Column is not Working the Ajax. How can i Fix this Problem

Regards
G. Manikandan

Georgi Krustev
Telerik team
 answered on 23 Apr 2009
3 answers
202 views
I have a Rad Grid in my web site,here the rad grid is ajaxified using the radajax panel,inside the rad grid i have detail tables,when i select the detail tables clientselectcolumn and then click the link button inside the detail tables,the ajax modal popup is show,at that time all details tables clientselectcolumn are selected so,it will select all the detail tables record
 <DetailTables> 
                                <telerik:GridTableView NoDetailRecordsText="Contact(s) not exist to this company.." 
                                    NoMasterRecordsText="Contact(s) not exist to this company.." CommandItemDisplay="Top" 
                                    AllowSorting="False" AllowPaging="false" Name="Contacts"  ClientDataKeyNames="ContactId" DataKeyNames="ContactId,CompanyId" Width="100%" 
                                    runat="server">  
                                    <ParentTableRelation> 
                                        <telerik:GridRelationFields DetailKeyField="CompanyId" MasterKeyField="CompanyId" /> 
                                    </ParentTableRelation> 
                                    <CommandItemTemplate> 
                                        <div style="padding-top: 7px; padding-bottom: 7px;">  
                                            <asp:LinkButton ID="lnkAddNew" runat="server" CommandName="AddNewContact">  
                                        <img style="border:0px;vertical-align:middle;" alt="Add Contact" src="Images/addnew.gif" /> Add New</asp:LinkButton>&nbsp;&nbsp;&nbsp;  
                                            <asp:LinkButton ID="Lnkdeleteselected" runat="server" CommandName="DeleteSelectedContact" 
                                                CausesValidation="false">  
                                        <img style="border:0px;vertical-align:middle;"  alt="Delete Selected Contacts" src="Images/delete.gif" /> Delete Selected</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp;  
                                            <asp:LinkButton ID="LnkPrintContact" Visible="false" runat="server" CommandName="PrintContact">  
                                        <img style="border:0px;vertical-align:middle;" alt="Print" src="Images/print.gif" /> Print</asp:LinkButton> 
                                        </div> 
                                    </CommandItemTemplate> 
                                    <Columns> 
                                        <telerik:GridBoundColumn DataField="CompanyId" DataType="System.Int32" HeaderText="CompanyId" 
                                            ReadOnly="True" SortExpression="CompanyId" UniqueName="CompanyId" Visible="False">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn DataField="ContactId" DataType="System.Int32" HeaderText="ContactId" 
                                            ReadOnly="True" SortExpression="ContactId" UniqueName="ContactId" Visible="False">  
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridClientSelectColumn  Reorderable="False" UniqueName="ClientDetailSelectColumn">  
                                            <HeaderStyle Width="20px"></HeaderStyle> 
                                        </telerik:GridClientSelectColumn> 
                                        <telerik:GridTemplateColumn SortExpression="ContactName" GroupByExpression="ContactName ContactName Group By ContactName" 
                                            HeaderText="Contact Name" UniqueName="ContactName">  
                                            <ItemTemplate> 
                                                <asp:LinkButton ID="lnkContactName" runat="server" CommandName="ContactName" Text='<%#DataBinder.Eval(Container.DataItem, "ContactName")%>'></asp:LinkButton> 
                                            </ItemTemplate> 
                                            <ItemStyle Width="22%" Wrap="False" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridBoundColumn DataField="FullAddress" HeaderText="Address" SortExpression="FullAddress" 
                                            UniqueName="Address">  
                                            <ItemStyle Width="15%" Wrap="False" /> 
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridTemplateColumn SortExpression="PhoneNumber" GroupByExpression="PhoneNumber PhoneNumber Group By PhoneNumber" 
                                            HeaderText="Phone Number" UniqueName="TemplateColumn">  
                                            <ItemTemplate> 
                                                <table> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/telephone.gif" Visible="false" ID="ImgPhone1" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:Label ID="LblPhone1" Visible="false" runat="server"></asp:Label></td>  
                                                    </tr> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/telephone.gif" Visible="false" ID="ImgPhone2" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:Label ID="LblPhone2" Visible="false" runat="server"></asp:Label></td>  
                                                    </tr> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/telephone.gif" Visible="false" ID="ImgPhone3" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:Label ID="LblPhone3" Visible="false" runat="server"></asp:Label></td>  
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle Width="20%" Wrap="False" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn SortExpression="Fax" GroupByExpression="Fax Fax Group By Fax" 
                                            HeaderText="Fax Number" UniqueName="TemplateColumn1">  
                                            <ItemTemplate> 
                                                <table style="border: none;">  
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/fax.gif" Visible="false" ID="ImgFax1" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:Label ID="LblFax1" Visible="false" runat="server"></asp:Label></td>  
                                                    </tr> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/fax.gif" Visible="false" ID="ImgFax2" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:Label ID="LblFax2" Visible="false" runat="server"></asp:Label></td>  
                                                    </tr> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/fax.gif" Visible="false" ID="ImgFax3" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:Label ID="LblFax3" Visible="false" runat="server"></asp:Label></td>  
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle Width="20%" Wrap="False" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridTemplateColumn SortExpression="Email" GroupByExpression="Email Email Group By Email" 
                                            HeaderText="Email" UniqueName="TemplateColumn2">  
                                            <ItemTemplate> 
                                                <table> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/email.gif" Visible="false" ID="ImgEmail1" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:LinkButton ID="LnkEmail1" CommandName="Email1" Visible="false" runat="server"></asp:LinkButton> 
                                                        </td> 
                                                    </tr> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image ImageUrl="~/Images/email.gif" Visible="false" ID="ImgEmail2" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <asp:LinkButton ID="LnkEmail2" CommandName="Email2" Visible="false" runat="server"></asp:LinkButton></td>  
                                                    </tr> 
                                                    <tr> 
                                                        <td style="border: none;">  
                                                            <asp:Image Visible="false" ImageUrl="~/Images/email.gif" ID="ImgEmail3" runat="server" /></td>  
                                                        <td style="border: none;">  
                                                            <a><asp:LinkButton Visible="false" CommandName="Email3"  ID="LnkEmail3" runat="server"></asp:LinkButton></a></td> 
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                            <ItemStyle Width="35%" Wrap="False" /> 
                                        </telerik:GridTemplateColumn> 
                                        <telerik:GridBoundColumn Visible="False" DataField="Status" HeaderText="Status" SortExpression="Status" 
                                            UniqueName="Status">  
                                            <ItemStyle Wrap="False" /> 
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridTemplateColumn Groupable="False" UniqueName="TemplateColumn3">  
                                            <ItemTemplate> 
                                                <asp:LinkButton ID="LnkEditDetail" runat="server" CommandName="EditContact">  
                                                    <asp:Image ID="ImgEdit" runat="server" ImageUrl="~/Images/edit.gif" ToolTip="Edit contact " 
                                                        AlternateText="Edit contact" /> 
                                                </asp:LinkButton>&nbsp;&nbsp;&nbsp;  
                                                <asp:LinkButton ID="LnkDeleteDetail" runat="server" CommandName="DeleteContact">  
                                                    <asp:Image ID="ImgDelete" runat="server" ImageUrl="~/Images/delete.gif" ToolTip="Delete contact" 
                                                        AlternateText="Delete contact" /> 
                                                </asp:LinkButton> 
                                            </ItemTemplate> 
                                            <ItemStyle Wrap="False" HorizontalAlign="Center" /> 
                                        </telerik:GridTemplateColumn> 
                                    </Columns> 
                                    <ExpandCollapseColumn> 
                                        <HeaderStyle Width="20px" /> 
                                    </ExpandCollapseColumn> 
                                    <RowIndicatorColumn> 
                                        <HeaderStyle Width="20px" /> 
                                    </RowIndicatorColumn> 
                                </telerik:GridTableView> 
                            </DetailTables> 
Georgi Krustev
Telerik team
 answered on 23 Apr 2009
4 answers
387 views

I am receiving the error message"capacity was less than the current size.Parameter name: capacity"
  when selecting one of the comboboxitems and then click on the next page link (combobox bottom)


 
This is the properties which I set
<
telerik:RadComboBox ID="cbDistrict" runat="server" DataTextField="DistrictName"

 

 

 

DropDownWidth="200px" MaxHeight="200px" DataValueField="DistrictId"

 

 

EnableLoadOnDemand="true" EnableVirtualScrolling="true" ShowMoreResultsBox="true" Width="153px"

 

 

 

EnableItemCaching="true" OnClientItemsRequesting="OnDistrictItemsRequesting"

 

 

OnClientSelectedIndexChanged="OnDistrictSelectedIndexChanged" OnClientTextChange="OnDistrictTextChange"

 

 

 

OnClientLoad="OnDistrictComboBoxLoaded">

 

 

 

Atanas Korchev
Telerik team
 answered on 23 Apr 2009
10 answers
546 views
What might cause the error: "Sys.InvalidOperationException: ScriptLoader.loadScripts cannot be called while the ScriptLoader is already loading scripts."?
It happens when a user makes a few clicks on different controls pretty fast. The page contains javascript code surrounded by RadScriptBlock.
Sebastian
Telerik team
 answered on 23 Apr 2009
6 answers
482 views
Posted on the menu forum, but have not gotten a response.  There seems to be some kind of problem when using a radwindow as a response to a contextmenu item click.  Once you click on the menu item, you get a javascript error, 'type' is null or not an object, in a dynamic Telerik.Web.UI code.  This is on Q1 2009.

Here is a very simple page to reproduce the issue:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>    
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">    
    
<html xmlns="http://www.w3.org/1999/xhtml">     
<head runat="server">     
    <title></title>     
    <script language="javascript" type="text/javascript">     
    
        function onClicking(sender, eventArgs) {     
            var item = eventArgs.get_item();     
    
            var oManager = GetRadWindowManager();     
            var navigateUrl = item.get_navigateUrl();     
    
            eventArgs.set_cancel(true);     
    
            if (navigateUrl && navigateUrl != "#") {     
                oManager.open(navigateUrl, "document");     
    
            }     
        }     
    
    </script>    
</head>    
<body>    
    <form id="form1" runat="server">     
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">     
    </telerik:RadScriptManager>    
    <div>    
        <telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnClientItemClicking="onClicking">     
        <Targets>    
            <telerik:ContextMenuDocumentTarget />    
        </Targets>    
        <Items>    
            <telerik:RadMenuItem Text="Documents">     
                <Items>    
                    <telerik:RadMenuItem Text="Item 1" NavigateUrl="documents/Sample/Sample%20Lease%20Document%202008.pdf">     
                    </telerik:RadMenuItem>    
                    <telerik:RadMenuItem Text="Item 2">     
                    </telerik:RadMenuItem>    
                </Items>    
            </telerik:RadMenuItem>    
        </Items>    
        </telerik:RadContextMenu>        
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">     
        </telerik:RadWindowManager>    
    </div>    
    </form>    
</body>    
</html>    
    
 
jorge
Top achievements
Rank 1
 answered on 23 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?