Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
112 views
OK i have a grid with multirow edit. The issue I am running into is when i click to update 1 row and edit column 3, then click to edit row 5 the previous data is lost.

The only way around this is to click edit on ALL the row first that i desired to edit then perform my data entry.

Or place all rows in edit mode which makes the page take a LOT longer to load
Martin
Telerik team
 answered on 23 Nov 2010
1 answer
43 views
Hi,

Issue-1:
 table inside Div. both are restricted from drag/drop.
The user is still able to drag/drop beside table inside Div. (See attached explainaton Explain1.jpg)

Issue-2:
When I am using PDF Export feature i.e. ContentFilters="PdfExportFilter", it automatically changes my table widths to "0px" when I switch from Design mode to Html mode i.e.
    From <table width="100%">   to   <table width="100%" style="width:0px;">
and it also adds <Colgroup> <Cols /> tags...

How can I avoid this additional style?

Thanks,
Piyushkumar
Dobromir
Telerik team
 answered on 23 Nov 2010
1 answer
47 views
Hi Telerik,

I found a bug in the *Manager dialog. Adding a media element in the editor design mode, then you open the *Manager (FileManager, FlashManager, MediaManager and TemplateManager) dialog window, the media element you added will display over the *Manager dialog.

How to reproduce:

1. open the following link:
     http://demos.telerik.com/aspnet-ajax/editor/examples/xhtmlvalidatortrackchangesformatcodeblockdialogs/defaultcs.aspx
2. open MediaManager, choose PublicRelations -> RadNavigation.avi, insert it
3. open one of Managers ( FileManager, FlashManager, MediaManager or TemplateManager )

thanks in advance,

Lan


 
Rumen
Telerik team
 answered on 23 Nov 2010
5 answers
155 views

chart.DefaultView.ChartArea.AxisX.MajorGridLinesVisibility =

 

Visibility.Visible;

 


The above line draws the major grid lines.  Is there a way to show only every 4th major grid line?

Thanks,
--Jeff
Evgenia
Telerik team
 answered on 23 Nov 2010
1 answer
412 views
Hi All,

Can any one tell me how to apply the watermark in textbox at the runtime?



Bharat
Shinu
Top achievements
Rank 2
 answered on 23 Nov 2010
3 answers
106 views
Hi All,
I have a typical requirement... I want to disable drag drop on certain tags inside Editor.

Imagine I am in design mode (bcz I cannot draw it here) but corresponding Html will be like this:

<div id="Div1"> some Div1 content... DON'T Allow Drag Drop Here</div>
<div id="Div2"> some Div2 content... Allow Drag Drop Here</div>

In short, I want to disable certain perts of Editor. Is it possible?
If I can get client side event for Drag/Drop, it can be done (I think)

Thanks,
Piyushkumar
Dobromir
Telerik team
 answered on 23 Nov 2010
1 answer
132 views
In the following code, if I change Button to RadButton I'm getting all sorts of javascript exceptions from Telerik internal code.

private void CreateLinks(GridItemEventArgs e, SubsEntity type)
    {
        if (e.Item is GridDataItem && e.Item.ItemIndex != -1)
        {
            Button editLink = (Button)e.Item.FindControl("btnEdit");
            //editLink.PostBackUrl = "ManageSubscriptions.aspx?EditMode=true&Type=" + type + "&SubscriptionID=" + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["SubscriptionID"];
            editLink.PostBackUrl = UIMgr.GetEditSubscriptionURL(this.DataSet, type, e.Item.ItemIndex);
            Button removeLink = (Button)e.Item.FindControl("btnRemove");
            removeLink.Attributes["href"] = "#";
            removeLink.Attributes["onclick"] = String.Format("return ShowConfirmForm('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["SubscriptionID"], e.Item.ItemIndex);
        }
    }
    #endregion
 
    protected void gridProductSubs_ItemCreated(object sender, GridItemEventArgs e)
    {
        CreateLinks(e, SubsEntity.ResearchProduct);
    }
<telerik:GridTemplateColumn UniqueName="Remove">
                    <ItemTemplate>
                        <asp:Button ID="btnRemove" runat="server" CausesValidation="False"
                            ToolTip="Remove" Text="Remove" />
                    </ItemTemplate>
                    <HeaderStyle Width="35px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Edit">
                    <ItemTemplate>
                        <asp:Button ID="btnEdit" runat="server" CausesValidation="False"
                            ToolTip="Edit" Text="Edit" />
                    </ItemTemplate>
                    <HeaderStyle Width="35px" />
                    </telerik:GridTemplateColumn>

Pero
Telerik team
 answered on 23 Nov 2010
6 answers
119 views
We are using web services binding with the RadScheduler. When a new appointment is added to the scheduler, the service returns a list of appointments in the OnClientRequestSuccess method.  We would like to access the inserted appointment from this list and use it after the service has completed. However, the item is not an SchedulerAppointment object. What is the best way to convert/cast the returned item to a SchedulerAppointment object?

One option we tried was to get the appointment ID from the item and then retrieve the SchedulerAppointment directly from the Scheduler using the findByID method. However, it appears that the scheduler has not been refreshed when the OnClientRequestSuccess method is called, so the appointment is not found. At what point is the scheduler refreshed?
Peter
Telerik team
 answered on 23 Nov 2010
3 answers
104 views
I am creating the dock dynamuically and for some reason I am having trouble with the DockCommandEventHandler event firing the corresponding c# code in dock_CustomCommand. Did I miss some sort of initialization? Is what I am trying to do possible? 

C#:
public void createWinlets(string title, string position, string reference)
    {
        RadDock dock = new RadDock();
        UserControl ascx = (UserControl)Page.LoadControl(reference);
        dock.Title = title;
        dock.DockMode = DockMode.Docked;
        dock.UniqueName = Guid.NewGuid().ToString().Replace("-", "a");
        dock.ID = string.Format("RadDock{0}", dock.UniqueName);
        dock.Width = Unit.Percentage(50);
        dock.Height = Unit.Pixel(275);
        dock.Skin = "Vista";
        dock.EnableDrag = false;
        dock.CommandsAutoPostBack = true;
  
        dock.Commands.Add(new DockCloseCommand());
  
        dock.Command += new DockCommandEventHandler(dock_CustomCommand);
  
        dock.ContentContainer.Controls.Add(ascx);
  
        /*AsyncPostBackTrigger saveStateTrigger = new AsyncPostBackTrigger();
        saveStateTrigger.ControlID = dock.ID;
        saveStateTrigger.EventName = "Command";
        UpdatePanel1.Triggers.Add(saveStateTrigger);*/
  
        switch(position)
        {
            case "Left":
                dock.Width = Unit.Percentage(48);
                dock.Height = Unit.Pixel(240);
                RadDockLeft.Controls.Add(dock);
                break;
            case "Right":
                dock.Width = Unit.Percentage(48);
                dock.Height = Unit.Pixel(240);
                RadDockRight.Controls.Add(dock);
                break;
            case "Bottom":
                dock.Width = Unit.Percentage(99);
                dock.Height = Unit.Pixel(230);
                RadDockBottom.Controls.Add(dock);
                break;
            default:
                break;
        }
    }
  
    protected void dock_CustomCommand(object sender, DockCommandEventArgs e)
    {
          
        RadDock dock = (RadDock)sender;
        lbl_error.Visible = true;
        lbl_error.Text = "DEBUG: Rad Dock Closed. " + dock.ID + ", " + dock.Title;
    }
Pero
Telerik team
 answered on 23 Nov 2010
1 answer
87 views
I have a line graph with 50 points on it but I only want to display a 'point mark' for some items.  I can get all the points to show or no points to show, but I have not found a way to get a selected number to show.  I have tried setting the .visible property of each individual ChartSeriesItem.PointAppearance that as I add to the series, no luck...  I also tried setting the ChartSeriesItem.PointAppearance.Dimensions as well as the ChartSeriesItem.Appearance.PointDimentions but there doesn't seem to be any way to make some points different than others on the same line.  Am I missing something?
Evgenia
Telerik team
 answered on 23 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?