Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
233 views
if (calendarEvent.RecurrenceParent != null && calendarEvent.ExceptionDate.HasValue)  
        {  
            DateTime exceptionDate = calendarEvent.ExceptionDate.Value;  
            RecurrenceRule rrule;  
 
            if (RecurrenceRule.TryParse(calendarEvent.RecurrenceParent.RecurrencePattern, out rrule))  
            {  
                if (!rrule.Exceptions.Contains(exceptionDate))  
                {  
                    rrule.Exceptions.Add(exceptionDate);  // Add the exception date to the parent rule  
 
                    calendarEvent.RecurrenceParent.RecurrencePattern = rrule.ToString();  
                }  
            }  
        } 

I'm having an issue when trying to manually add datetime values to a recurrences exception list.  Above you can see the code I'm using.

My problem is that when I use rrule.ToString() the date that is being generated for EXDATE in the resulting string is ahead by 4 hours.  The rest of the dates (DTSTART, DTEND, UNTIL) are all correct though.

Thanks for your help.
T. Tsonev
Telerik team
 answered on 07 May 2008
1 answer
152 views
I tried to run the demo of the following page

http://www.telerik.com/demos/aspnet/prometheus/ComboBox/Examples/Default/DefaultCS.aspx

When I click the calendar navigation button to other months, the comboBox collapse and needed to be clicked again to show the calendar.  Besides, the comboBox text becomes a string of text.

It seems to be a limitation to use Calendar in ComboBox?!?

Rosi
Telerik team
 answered on 07 May 2008
1 answer
126 views

Hi,

I want to have a ajax postback raised when the contents of an editor control changes.

I have set up the OnTextChanged event for the editor control but as expected it is not being called as there is no postback happening, what is the best way to raise an ajax request when the controls contents change on the client side?

something along the lines of .....

function
editorload(editor)
{
editor.attachEventHandler(
"onkeydown", checkkeypress);
}

function
checkkeypress(e)
{
    //ajax postback here
}

Thanks in advance

Mac

Tervel
Telerik team
 answered on 07 May 2008
1 answer
90 views
I am using RadEditor for creating Area maps.
But i want to customize the Image Map dialog.
I donot want to give the target option to the user.
I want to hide the target option for the user
I always want it to point to new window.

How to achive this?
Rumen
Telerik team
 answered on 07 May 2008
2 answers
204 views
Original App: Mix of ASP and .Net 2.0 pages using Classic Telerik ASP.NET controls

Upgraded fine to 3.5 all previous 2.0 pages with Classic controls stilled worked.

I then copied the v3.5 dll's for WebUI and Charting to the bin and checked out a page that had classic telerik charts and it gave me an error "BC30560: 'ChartTitle' is ambiguous in the namespace 'Telerik.Charting'." A page using Classic RAD Grid still worked without a problem.

I thought I could run the classic and new controls without issue. What did I do wrong?
Ves
Telerik team
 answered on 07 May 2008
1 answer
180 views
Hi,

Is it possible for me to change the size of the images in the tabstrip? They draw at 16x16 but I want to try them at 32x32?

Regards,

Mark
Paul
Telerik team
 answered on 07 May 2008
3 answers
158 views
I have a grid that allows the user to select rows clientside.
When my page loads,  I want to some of the rows to be selected. I want this by using javascript , so i wrote this

for (var i = 0; i < grid.MasterTableView.Rows.length; i++)
                   {

                          var curRowId = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.Rows[i], "column6");
          
                           var curRowSelect = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.Rows[i], "column12");
                          
                           var id =  window.opener.document.getElementById("InvoicesControl1_HdnCCinfo");
                            
                           var temp = new Array();
                           temp = id.value.split(',');
                                                  
                           if(FNArrayGetSearchLinearRowI(curRowId.innerHTML,temp))
                           {
                             grid.MasterTableView.SelectRow(grid.MasterTableView.Rows[i].Control,true);
                           }
                    }

this code selects only last row , pls suggest me how to select multiple row.

Thank's in advance


Yavor
Telerik team
 answered on 07 May 2008
0 answers
79 views

       1. try,catch
        2.CLR integration,XML integration.
        3.sql server service broker.
        4.DDL triggers
        5. Row ranking on Dml statements.
        6.CTE.
        7.DAT(data Adviser tool)
        8.we can create instances in 2005 nearly 50.
         9.Synonyms.
         10.Script generation.
         11. SQL Cmd.
niranjanarao
Top achievements
Rank 1
 asked on 07 May 2008
1 answer
121 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> 
 

Dimcho
Telerik team
 answered on 07 May 2008
4 answers
161 views
When right clicking an item in a treeview and clicking something in the context menu, the ContextMenuItemClick event handler is getting fired twice which is inevitably causing issues with some of the code in the handler. I really can't see how anything else in my code can make that happen, any ideas?
Nikolay
Telerik team
 answered on 07 May 2008
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?