Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
hello,

i have a user control that has a 'search' link and when clicked, i need to show a modal dialog with some checkbox's. when the user closes the dialog, i need the user control with the 'search' link to refresh a grid with the values from the selected checkbox's from the modal dialog. any help would be great!
Georgi Tunev
Telerik team
 answered on 17 May 2008
1 answer
104 views
I mehran janfeshan

i use radcontrols for 1 year .all of this time i have problem with radeditor:

-1 loading of radeditor in my page is very late . when i use radeditor in my page loading of this page become very late. this with radeditor load in 2-3 minutes without radeditor load in 30 seconde.

2- when i use radajax manage for uodating of radeditor ,the page become lock for many seconde .

can you guidance me ?


Regards m.janfeshan
Rumen
Telerik team
 answered on 17 May 2008
1 answer
105 views
 

Hi,
 
 The scenario is I have a Rad Calendar inside a Rad Grid. The first time I fired the page on my local, I had the RadCalendar undefined javascript error, but when I refreshed it it never ever came back again. Same thing I deployed on our test server and I get this error every time I load the page first time. Only first time,  not after that. This has also caused my Rad Grid to throw the same error of RadGridNamespace is undefined, while I have Rad Grids in almost 10 other pages where I am not getting this error. I have tried the following ways found on Telerik forums:

  1) Set the UseEmbeddedScripts="false" so that the scripts from the Rad Controls folder at the root of the application will be used instead of loading from the browser (which actually does not make sense here because the control works fine after the first time that means it is able to access the WebResource.axd files).

2) Checked if “Check that file exists” checkbox in the IIS for .axd type files for this application is unchecked. It is unchecked.

3) Cleared the cache to make sure it’s not because of Cache.

4) I have also specifically provided the skin name in the RadCalendar along with UseEmbeddedScripts=”false” condition.

5) The version of the DLL’s in the bin and the scripts in the RadControl folder are the same.

I am using the Q12007 SP2 version of the Telerik Rad Controls. Is there something I am missing?

So in short the Rad Calendar and the Rad Grid (on this specific page only) are not picking up the webresources the first time the page is loaded, after that they are fine. And even if I have forced it to use the scripts from the RadControls folder, by setting the UseEmbeddedScripts=”false” its not making any difference.

This has been eating a lot of my time. Please do advice as to what else can be done.

Thank You,

Soumya

Iana Tsolova
Telerik team
 answered on 17 May 2008
2 answers
131 views
Hello everyone,
Is there a snippet of code that allows you to cancel out of the update (or delete, add, etc) transaction inside the OnItemCommand? I would first like to show an alert box, focus on a textbox, and leave the page as it is without updating it.

I am doing this using a grid with inline editing, ajax enabled.

Here is my code behind:

    Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)  
        If ((e.CommandName = "Update") AndAlso (TypeOf e.Item Is GridEditableItem)) Then 
            Dim editeditem As GridEditableItem = CType(e.Item, GridEditableItem)  
            Dim txtName As TextBox = CType(editeditem("NameColumn").Controls(0), TextBox)  
            If txtName.Text = "" Then 
                Utils.ShowMessage("Please enter a value for the name.", Page)  
                txtName.Focus()  
                ' Cancel out of update transaction  
            End If 
        End If 

Is there a better way of doing the exact same logic as above? If there is, please let me know too!

Thanks!
Sebastian
Telerik team
 answered on 17 May 2008
1 answer
149 views
How do you set the date input format? Lets say to 02.12.07.
Thanks
Karl
Demon
Top achievements
Rank 1
 answered on 17 May 2008
4 answers
172 views
Hi,

  I'm using my own recurrence edit control to construct the RecurrenceRule string. The asp.net ajax scheduler seems to recognize that the schedule as recurring (with the recurring icon) but it will only display the 1st schedule. How do I display all the schedules? The recurrence is for a daily recurring schedule that ends after 20 occurrences. The rrule string is:

       DTSTART:20080514T150000Z\nRRULE:FREQ=DAILY;INTERVAL=1;COUNT=20


Thanks.
Sanjay Kumar
Top achievements
Rank 1
 answered on 17 May 2008
8 answers
204 views
hi,

i am dynamically creating dock's in a single zone, the docks are dragable within the zone for repositioning, however after the respositioning is complete i want to find out the new positions in the zone.

the user would be presented with this screen and their sequence is captured.

please advise how can this be achieved..?

here is a working example of what i am trying to achieve
http://64.37.197.51/app.21online/MyListings/media_sequence.aspx?tr_key=32153146

and here is the source code
using System;  
using System.Data;  
using System.Configuration;  
using System.Collections;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
using C21Online.Solution.DAL.App;  
using Telerik.Web.UI;    
public partial class MyListings_media_sequence : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        if (Request["tr_key"] != "")  
        {  
            BuildThePage(Convert.ToInt32(Request["tr_key"].ToString()));  
        }  
    }  
 
    private void BuildThePage(int tr_key)  
    {  
        DataSet PhotosDS = new DataSet();  
        PhotosDS = Listings.GetPhotosByListing(tr_key);  
        if (PhotosDS != null)  
        {  
            Image img;  
            for (int i = 0; i < PhotosDS.Tables[0].Rows.Count; i++)  
            {  
                img= new Image();  
                img.CssClass = "thumbnail";   
                img.ID = "thumbnail_" + i.ToString();  
                img.ImageUrl = PhotosDS.Tables[0].Rows[i]["URL"].ToString().Trim();  
                img.Width = Unit.Pixel(100);  
                img.Height = Unit.Pixel(80);  
                img.ToolTip = PhotosDS.Tables[0].Rows[i]["Title"].ToString().Trim();   
                  
                RadDock rd = new RadDock();  
                rd.ID = "DockPhoto_" + i.ToString();  
                rd.DockMode = DockMode.Docked;  
                rd.Title = (i+1).ToString();  
                rd.DockHandle = DockHandle.TitleBar;     
                rd.ContentContainer.Controls.Add(img);  
                rd.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None;        
                rd.Width = Unit.Pixel(120);  
                rd.Height = Unit.Pixel(120);  
                RadDockZoneHorizontal1.Controls.Add(rd);  
            }  
        }  
    }  
}  
 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="media_sequence.aspx.cs" Inherits="MyListings_media_sequence" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!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>Photo Sequence</title> 
    <LINK href="~/css/sitestyles.css" type="text/css" rel="stylesheet">  
    <script language="javascript" type="text/javascript" src="~/JS/main.js"></script> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server" > 
    </asp:ScriptManager>      
    <div> 
        <table cellpadding="0" cellspacing="0" border="0">  
            <tr> 
                <td><img src="~/Images/Misc/spacer.gif" border="0" alt="" width="5" /></td>  
                <td style="vertical-align:top;">  
                <telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Default" > 
                    <telerik:RadDockZone runat="server" id="RadDockZoneHorizontal1" orientation="Horizontal" 
                        BackColor="#8d8d8d" height="250px" width="650px">  
                    </telerik:RadDockZone> 
                </telerik:RadDockLayout> 
                        <asp:PlaceHolder runat="server" id="phPhotos"></asp:PlaceHolder> 
                </td> 
                <td><img src="~/Images/Misc/spacer.gif" border="0" alt="" width="5" /></td>  
            </tr> 
        </table>      
    </div> 
    </form> 
</body> 
</html> 
 

Tanuj
Top achievements
Rank 1
 answered on 17 May 2008
2 answers
98 views
On the first mouseover the tooltip displays as desired.  On all mouseovers after the first one, the position changes (not a problem) and the width becomes smaller (a problem).  For example, instead of seeing
Units: Each
I see
Units:
Each

---------------------------

<rad:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="ImageButton1"  Sticky="true"  ShowCallout="false">
      </rad:RadToolTip>

protected override void OnPreRender(EventArgs e)
        {

                Label L= new Label();
                L.Text = "Initial Capacity (ACAP):";
                if (UserContext.Session.SCSInfo.IsIt.UnlimitedACAPwhenBalanced_YN)
                { L.Text += " unlimited";}
                else
                { L.Text += UserContext.Session.SCSInfo.ACAPwhenBalanced.ToString(); }

                if (UserContext.Session.SCSInfo.IsIt.UnlimitedACAPwhenBalanced_YN)
                { L.Text += " (Use all)"; }

                RadToolTip1.Controls.Add(L);

                RadToolTip1.Controls.Add(new System.Web.UI.HtmlControls.HtmlGenericControl("BR"));

                Label L2 = new Label();
                L2.Text = "Units: " + UserContext.Session.SCSInfo.ACAPUnitOfMeasureName;
                RadToolTip1.Controls.Add(L2);

John Davis
Top achievements
Rank 2
 answered on 16 May 2008
4 answers
603 views
Hi,

I'm currently implementing an outlook style notifiction popup system using the radTooltip. The current problem I'm trying to solve is what to do when notifications happen in quick succession. The simplest way to deal with this, I think, is if a tooltip is already displayed, put the new notification in another tooltip and position this directly above the already displayed one. It is possible for radToolTip to display more than one tooltip simultaneously  but to implement the functionality I require, I need to create the tooltips programmatically, client side. I can't see any mention of this in the documentation, so can you tell me if its possible?

Many Thanks,

John Rhodes.
John
Top achievements
Rank 1
 answered on 16 May 2008
3 answers
187 views
I am currently reviewing the a trial of the ASP.NET AJAX 2008 controls.  I'm having a problem with columns being automatically generated when the autogeneratecolumns is set to false.  I have a DataTable that I have "pivoted" with a function.  My RadView's datasource is set to this DataTable (in the NeedDataSource event).  I need the columns of the RadView to be in a specific order so I have put code like the following in the Page_Load event:

if

(!IsPostBack)
{
//Important: first Add column to the collection, Then set properties
GridBoundColumn boundCol = new GridBoundColumn();
this.RadGrid1.MasterTableView.Columns.Add(boundCol);
boundCol.DataField =
"CompanyName";
boundCol.HeaderText =
"Company";
}

etc.

This new bound column gets added just fine, however, all of the other columns from the DataTable are added as well. 

I've also noticed, that the code I have in my "ColumnCreated" event does not seem to fire on the columns I add dynamically.  I have a switch statement that checks the header text to decide what the background color should be set to.  This code works just fine on the other columns.

Any ideas what is causing this behavior?  Also, if I'm going to long way about either one of these two issues (Setting a specific column order, and conditionally applying a column background color) please let me know.  Thank you!

Samantha
Top achievements
Rank 1
 answered on 16 May 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?