Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
In depolyment (obviously not in development), is there anyway to suppress the JavaScript messages?  Occasionally, if the AJAX callback fails then I'll get a malformed header error.  I don't want my users seeing the JavaScript errors at the bottom of the browser screen.

Thanks,
Joshua
Maria Ilieva
Telerik team
 answered on 05 Dec 2008
1 answer
192 views
I have a RadAjaxManager on my masterpage, so Im using a RADAjaxManagerProxy on the content pages.
I have a Rotator that shows a larger version of a thumbnail when a user clicks the thumbnail.  When the thumbnail is clicked, I get a full page postback instead of a partial postback.  I cant see why, Ive setup the controls in the proxy manager, but I always get a full page postback;

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="thumbRotator">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="imagePreview" LoadingPanelID="LoadingPanel1" /> 
                      
                </UpdatedControls> 
            </telerik:AjaxSetting> 
         
              
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 

Heres part of the markup for the rotator

<div class="GalleryRow">  
            <div class="MiddleLeft">  
                  
            </div> 
              
            <div class="preview" runat="server" id="detailsPanel">  
            <div class="ImageContainer">  
            <asp:Image ID="imagePreview" runat="server" ImageUrl="Images/spacer.gif" AlternateText="preview" BorderWidth="0"></asp:Image> 
            </div>    
            </div> 
            <div class="MiddleRight">  
                  
            </div> 
        </div> 
        <div class="GalleryRow">  
            <div class="BottomLeft">  
            <img src="Images/left2.gif" id="img_left" height="117" width="50" alt="" style="cursor: pointer" />      
            </div> 
            <div class="BottomMiddle">  
            <telerik:RadRotator ID="thumbRotator" runat="server" RotatorType="ButtonsOver" Width="450" 
                        Height="118px" ItemHeight="118" ItemWidth="145" FrameDuration="1" ScrollDirection="Left,Right" OnItemClick="ShowImage">  
                        <ItemTemplate> 
                            <div class="itemTemplate">  
                                <img src='<%# DataBinder.Eval(Container.DataItem, "Image") %>' alt='gallery image' 
                                    class="RotatorImage" /> 
                            </div> 
                        </ItemTemplate> 
                        <ControlButtons LeftButtonID="img_left" RightButtonID="img_right" /> 
                    </telerik:RadRotator>      
            </div> 
            <div class="BottomRight">  
            <img src="Images/right.gif" id="img_right" height="117" width="62" alt="" style="cursor: pointer" />      
            </div> 
        </div> 
 anybody shed some light on this ?
Svetlina Anati
Telerik team
 answered on 05 Dec 2008
3 answers
193 views
Get the following eror by simply having a radscheduler on the page without specifying (or returning 0 resources),
for a sample, see this thread http://www.telerik.com/community/forums/aspnet-ajax/scheduler/many-issues-bugs-suggestions-sample-provided.aspx

Could someone also please look and respond to that thread, i am getting a little desperate, its been 3 days and no response, I need to show this prototype to my boss if we are to decide on ur controls.

Server Error in '/Scheduler' Application.

Specified argument was out of the range of valid values.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index]
   System.Web.UI.ControlCollection.get_Item(Int32 index) +8665582
   System.Web.UI.WebControls.TableRowCollection.get_Item(Int32 index) +27
   Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.OnPreRender(EventArgs e) +106
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Peter
Telerik team
 answered on 05 Dec 2008
6 answers
401 views
Hello,

I was wondering how could I implement a behavior where, when using a grid with EditMode="PopUp", the page except the popup would be grayed-out. Something like ModalPopup from ASP.NET Ajax Toolkit. As far as I have seen on your demo site, I don't have this option. It would be really useful because it helps with visibility of a page when you have a larger pop up.

Thanks.
Sebastian
Telerik team
 answered on 05 Dec 2008
1 answer
115 views

I’m using component RadGrid. I need to represent RadGrid like ListView for that I’m using ItemTemplate. I’m creating it (ItemTemplate) on the server-side. Because in RadGrid the columns creating dynamically. Here my code example:

SearchGridItemTemplate.cs

public enum SearchGridItemTemplateType {ReportCardTemplate, InvestigationTemplate, ReportTemplate, InvestigationObjectTemplate};

    public class SearchGridItemTemplate : ITemplate

    {

        SearchGridItemTemplateType _templateType;

        public SearchGridItemTemplate (SearchGridItemTemplateType type)

           {

            _templateType = type;

           }

        public void InstantiateIn(System.Web.UI.Control container)

        {

            Literal literal = new Literal();

            literal.DataBinding += new System.EventHandler(literal_DataBinding);

 

            container.Controls.Add(literal);

        }

        void literal_DataBinding(object sender, System.EventArgs e)

        {

             //Some code…

        }

    }

Default.aspx.cs

protected void Page_Load(object sender, EventArgs e)

      {

             //Some code…

searchResultGrid.MasterTableView.ItemTemplate = new SearchGridItemTemplate (SearchGridItemTemplateType.ReportCardTemplate);

//Some code…

}

Everything works fine, but I have some problem. The problem is in next situation. I need to get data from the selected item. I’m doing its like this:

GridDataItem[] items = searchResultGrid.MasterTableView.GetSelectedItems();

            foreach (GridDataItem item in items)

            {

                    TableCell cell = item["ID"];

//Some code…

}

But in the GridDataItem I can’t get data that I need.

How I can make it? Can you send me example or reference to that problem?

Iana Tsolova
Telerik team
 answered on 05 Dec 2008
1 answer
239 views
How can I add a confirmation dialog to the context menu for the delete menu item? I have tried the 'OnClientItemClicking' property (see below), but get runtime error: 'OnClientItemClicking' property cannot be set declaratively.

 

 

<script type="text/javascript">

 function onClicking(sender, eventArgs)
 {
    var item = eventArgs.get_item();
    var proceed = confirm("Permanently delete this Date and ALL samples under it?");

    if (!proceed)
    {
        eventArgs.set_cancel(true);
    }
 }

</script>
 

<telerik:RadTreeViewContextMenu runat="server" ID="ChemicalDateMenu" ClickToOpen="True" Skin="Vista" OnClientItemClicking="onClicking">
 <Items>
  <telerik:RadMenuItem Text="Add New Sample" Value="ChemicalAdd" runat="server"></telerik:RadMenuItem>
  <telerik:RadMenuItem Text="Delete Sample" Value="ChemicalDelete" runat="server"></telerik:RadMenuItem>
 </Items>
 <CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadTreeViewContextMenu>

Thx Marcel

 

 

 

 

 

 

 

 

 

Yana
Telerik team
 answered on 05 Dec 2008
1 answer
172 views
Dear Telerik Team
                            I am trying to use a RadTree Control as an ItemTemplate inside a RadCombo Control. I also want the treeView to get populated from the database using LoadOnDemand. For some reason I can't seem to get hold of the TreeView Control.
Strange behavior happens with different syntax.
----------------------------------------------------Problem 1------------------------------------------
If I define my ComboBox the Following Way which is Putting  
                        <Items>
                            <telerik:RadComboBoxItem Text="" Value="" />
                         </Items>

The Item_Requested Event is not firing.
<telerik:RadComboBox ID="ddlResource" runat="server" EnableLoadOnDemand="true" 
OnItemsRequested="RadComboBox1_ItemsRequested" Skin="WebBlue" Width="240px"
DropDownWidth="450" ItemRequestTimeout="500"
OnSelectedIndexChanged="ddlResource_SelectedIndexChanged">
<ItemTemplate>
   <div onclick="StopPropagation(event)">
      <telerik:RadTreeView ID="RadTreeView1" Width="100%" runat="server"                                                                                                   
              ShowLineImages="False"  Skin="WebBlue"
              Font-Names="Verdana" OnClientNodeClicked="ClientNodeClicked" Font-Size="Small">                                                                                                   
             </telerik:RadTreeView>
   </div>
 </ItemTemplate>
 <Items>
        <telerik:RadComboBoxItem Text="" Value="" />
 </Items>
 </telerik:RadComboBox>
Code Behind this way
protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{

 RadTreeView treeView = ddlResource.Items[0].FindControl("RadTreeView1") as RadTreeView;

 if (treeView != null)
 {
    LoadTreeView(treeView);

  }

}


 

----------------------------------------------------Problem 2------------------------------------------
When I take the following lines away from the RadComboBox the ItemRequested Event is firing.
<Items>
        <telerik:RadComboBoxItem Text="" Value="" />
 </Items>
But when I change my CodeBehind to ddlResource.FindControl("RadTreeView1")  
treeView is returning null

 

 

protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{

 RadTreeView treeView = ddlResource.FindControl("RadTreeView1") as RadTreeView;

 if (treeView != null)
 {
    LoadTreeView(treeView);

  }

}

 

I have tried a lot of things using <div> tag without <div>. But those did not make any difference. 

 

 

Please Help
Thanks
Himadri

 

Yana
Telerik team
 answered on 05 Dec 2008
1 answer
95 views
I have a rotator that used to work before I upgraded to Q32008.
It only rotates first image.

here is the code:

 

 

 

<telerik:RadRotator ID="RadRotator1"

 

 

                    runat="server"

 

 

                    DataSourceID="XmlDataSource1"

 

 

                    Skin="Web20"

 

 

                    FrameDuration="6000"

 

 

                    Height="300px"

 

 

                    ScrollDuration="600"

 

 

                    Width="650px" >

 

 

 

 

 

 

        <ItemTemplate>

 

 

 

                    <img alt="<%# XPath("/Files/item/title") %>" src="Images/<%# XPath("/Files/item/filename") %> " />

 

 

        </ItemTemplate>

 

 

 

 

 

 

</telerik:RadRotator>

 

 

 

 

 

 

<asp:XmlDataSource ID="XmlDataSource1" runat="server"

 

 

DataFile="~/App_Data/ImageRotator.xml" >

 

 

</asp:XmlDataSource>

 

my xml file looks like this

 

 

 


 

<?

 

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

 

<

 

Files>

 

<

 

item>

 

<

 

filename>2008.jpg</filename>

 

<

 

title>2008 Text</title>

 

</

 

item>

 

<

 

item>

 

<

 

filename>banner4.jpg</filename>

 

<title>banner Text</title></

 

item>

 

<

 

item>

 

<

 

filename>04.png</filename>

 

<title>04 Text</title>
</

 

item>

 

</

 

Files>

 

can somebody give me a hint on what am I missing?

 

 

 

 

 


thanks

 

Tania
Top achievements
Rank 1
 answered on 05 Dec 2008
4 answers
231 views
Jim
Top achievements
Rank 1
 answered on 05 Dec 2008
1 answer
132 views
I try to do like the application scenarios "My CV Wizard" into my application. I have a problem when  I call :

 

RadMultiPage multiPage = (RadMultiPage)Page.FindControl("RadMultiPage1");

multiPage is null. The control RadMultiPage is not found but it exists into the Page. do you know why ? Do you think I forgot something ?

Thanks,

 

Paul
Telerik team
 answered on 05 Dec 2008
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?