Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Hi,
I would like to validate the selected Text's HTML in design view of RAD Editor.
For ex: I have 2 html tables on my editor with 2 rows each and each row has got some data like 1, 2, 3 etc.,
If user selects 2nd Row of First Table and 1st Row of 2nd Table, i need to alert him as INVALID selection.

    1

    2


    3


Any help would be appreciated.

Thanks,
Prat
Rumen
Telerik team
 answered on 09 Jul 2009
1 answer
85 views
hi,
  I am making dynamic chats controls, i am getting problems in settings colors of chart in plot area and text color of legend. I am passing colors in series items , the colors drawn in the chart is of gradient not solid. Secondly the legend items text color is not changed w r t skin. eg i am using black skin , all items of the chart has been changed to white except the legend color. note that i am making legend dynamically w . r. t series items.
Here is my code.

        //passing series to chart , with series items and colors
        ChartSeries csud = new ChartSeries();      
        csud.Type = ChartSeriesType.Pie;
        csud.AddItem(7000, "Total",Color.Red);
        csud.AddItem(3500, "Projected",Color.Blue);
        csud.AddItem(2000, "Used",Color.Green);
        csud.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing;

//making dynamic legend according to chart series items.
     if (RadChart1.Series.Count == 1)
        {
            int j = 0;
            for (j = 0; j < RadChart1.Series[0].Items.Count; j++)
            {
                LabelItem lblitem = new LabelItem();
                lblitem.TextBlock.Text = RadChart1.Series[0].Items[j].Label.TextBlock.Text;
                RadChart1.Legend.Items.Add(lblitem);
                RadChart1.Legend.Items[j].Marker.Appearance.FillStyle.MainColor = RadChart1.Series[0].Items[j].Appearance.FillStyle.MainColor;                
            }

        }
       

Regards.
Muhammad Shoaib
Ves
Telerik team
 answered on 09 Jul 2009
5 answers
287 views
Hello Friends

I am having a peculiar problem in my content page, one of my click event of a control I am creating the radwindows dynamically by following code :-
 for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    Telerik.Web.UI.RadWindow newWindow = new Telerik.Web.UI.RadWindow();
                    newWindow.VisibleOnPageLoad = true;
                    newWindow.OffsetElementID = "OffsetElement" + i.ToString();
                    newWindow.NavigateUrl = "http://www.sitefinity.com";
                    newWindow.Top = Unit.Pixel(Convert.ToInt32(ds.Tables[0].Rows[i][1]));
                    newWindow.Left = Unit.Pixel(Convert.ToInt32(ds.Tables[0].Rows[i][2]));
                    newWindow.Width = Unit.Pixel(Convert.ToInt32(ds.Tables[0].Rows[i][3]));
                    newWindow.Height = Unit.Pixel(Convert.ToInt32(ds.Tables[0].Rows[i][4]));
                    newWindow.Title = ds.Tables[0].Rows[i][0].ToString();
                    RadWindowManager1.RestrictionZoneID = SummaryDiv2.ClientID;
                    RadWindowManager1.Windows.Add(newWindow);
                   
                }

So they are populating fine, but when I am trying to save the window property like height, width etc I am not getting the radwindows in client side, for this please check the below mentioned javascript:-

function GetRADWinPrt()
        {
              var oManager = GetRadWindowManager(); // its coming NULL every time
              var oActive = oManager.get_windows();
             var winArray = new Array(oActive.length);  //eventually length is also NULL
              var strList = "";
            for(var i = 0;i<oActive.length;i++)
              {
                 //Check if Window is closed or Active
                 if(!(oActive[i].isClosed()))
                 {
                     var bound = oActive[i].getWindowBounds();
                     strList = strList + oActive[i].get_name() + "=" + bound.x +","+ bound.y + "," + bound.width + "," + bound.height + ";";
                 }
              }
              
              //Stored all active RADWindow properties in hidden field
              document.getElementById(strHidden).value = strList;
              alert(strList);
         }

My RadwindowManager is
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="true"
                    VisibleTitlebar="true" VisibleStatusbar="false"
                    ReloadOnShow ="true" ShowContentDuringLoad="false" RestrictionZoneID="SummaryDiv2"
                    Overlay="true" Animation="Fade"
                    MinimizeZoneID="MyMinWins" OnClientCommand="oCCWindow" >
</telerik:RadWindowManager>

Also if I create RadWindow using window.radopen() in javascript then the above function i.e. GetRADWinPrt() works fine, but not work if I created my radWindow from Server side i.e. the for loop that I shown in the code snippet.
Could you please tell me where I am going wrong.

Thanks
Arindam R
Georgi Tunev
Telerik team
 answered on 09 Jul 2009
1 answer
57 views
Dear All,

I have an application to use Raddock to provide an operation interface. In my case, I need to create docks in another created dock which obviously contains a DockZone. Then I must deal with the dynamical situation to renew objects when postbacking. I find that A dock would have A DockZoneID in the following form if I put it in the DockZone which is in a dock:
DockZoneID: "DockID"+_C_+"ZoneID"
When postbacking,I renew the dock and add it to the layout. Also I apply the DockZoneID to the dock in the LoadDockLayout Event.
But the dock couldn't find it's Zone. Is it  normal, or I missed something in my operation?  


Sincerely,
andre'
 
Pero
Telerik team
 answered on 09 Jul 2009
11 answers
151 views
enable FlashManager function ,click insert Flash button display:Could not find the command FlashManager.Please update your command list.why?
Stanimir
Telerik team
 answered on 09 Jul 2009
3 answers
101 views
Dear all,
I encountered a problem when I setuped the Dock's "forbiddenZone" property. If I setup the dock's forbiddenZone dynamically  to the Zone which "the dock has already been inside it". When I drag the dock out and drop it to it's original zone or to nothing
(I setup the DockMode property to  be Docked), the dock will return to original zone as prediction. But another "dock target space" appears in the original zone. Is it a bug? 

Sincerely,
andre'   
Pero
Telerik team
 answered on 09 Jul 2009
3 answers
152 views
Hello Friends,

I am having a slight problem with RadSplitter, what I am doing is that I am having 3 rad panes. Now on Click of 1st sliding zone of 3rd Rad Pane, I want to disable the 1st sliding zone of 1st Rad Pane. Find the code below :-

<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="950" Height="500">
           <telerik:RadPane ID="LeftPane" runat="server" Width="22px" Scrolling="none" BackColor="#BDCAF4">
                <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22px" ClickToOpen="true">
                    <telerik:RadSlidingPane ID="RadSlidingPane1" Title="Dashboard Reports" runat="server"
                    Width="150px" BackColor="#BDCAF4" >
                        <telerik:RadTreeView ID="RadTreeView1" runat="server" OnClientMouseOver= "OnClientMouseOver"
                    EnableDragAndDrop="True" OnClientNodeDropping="OnClientNodeDropping" >
                    </telerik:RadTreeView>
                    </telerik:RadSlidingPane>
//This is the first rad sliding pane
                </telerik:RadSlidingZone>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="Radsplitbar1" runat="server"></telerik:RadSplitBar>
            <telerik:RadPane ID="MiddlePane1" runat="server" Scrolling="None" BackColor="lightskyblue">
                <telerik:RadSplitter ID="Radsplitter2" runat="server" Orientation="Horizontal" VisibleDuringInit="false">
                    <telerik:RadSplitBar ID="Radsplitbar3" runat="server"></telerik:RadSplitBar>
                    <telerik:RadPane ID="Radpane2" runat="server">
                        <div id="SummaryDiv2" style="width:925px;height:480px;"></div>
                        
                        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="false"
                            VisibleTitlebar="true" VisibleStatusbar="false"
                            ReloadOnShow ="true" ShowContentDuringLoad="true" RestrictionZoneID="SummaryDiv2"
                            Overlay="true" Animation="Fade"
                            MinimizeZoneID="MyMinWins" OnClientCommand="oCCWindow">
                        </telerik:RadWindowManager>
                        
                        <telerik:RadToolTipManager Width="300px" Height="300px" RelativeTo="element"
                            ID="RadToolTipManager1" runat = "server" OffsetX="15" Skin="Telerik" Position="MiddleRight"
                            OnAjaxUpdate="RadToolTipmanager1_AjaxUpdate" >
                        </telerik:RadToolTipManager>
                
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar2" runat="server"></telerik:RadSplitBar>
            <telerik:RadPane ID="EndPane" runat="server" Width="22px" Scrolling="None">
                <telerik:RadSlidingZone ID="Radslidingzone1" runat="server" Width="22px" SlideDirection="Left" ClickToOpen="true">
                    <telerik:RadSlidingPane ID="Radslidingpane5" Title="Company Dashboards" runat="server"
                    Width="150px" BackColor="#FFC486" ForeColor="red"  CssClass="LeftPaneCSS" OnClientExpanded="DisableDashboard" > //this javascript will be used to slide the first pane i.e. RadTreeView1
                        <telerik:RadTreeView id="CompTree" runat="server" >
                    </telerik:RadTreeView>
                    </telerik:RadSlidingPane>
                    <telerik:RadSlidingPane ID="Radslidingpane6" Title="Personal Dashboards" runat="server"
                    Width="150px" BackColor="#FFE086" ForeColor="Chocolate" CssClass="EndPaneCSS">
                       <telerik:RadTreeView ID="DBDTree" runat="server" OnNodeClick="DBDTree_NodeClick" AllowNodeEditing="true"
                         OnClientContextMenuItemClicking="onClientContextMenuItemClicking"  OnClientContextMenuShowing="onClientContextMenuShowing"
                          OnClientNodeClicked="ClientNodeClicked" OnNodeEdit="DBDTree_NodeEdit"
                         OnContextMenuItemClick="DBDTree_ContextMenuItemClick" EnableDragAndDrop="true" EnableDragAndDropBetweenNodes="true"
                          OnNodeDrop="DBDTree_HandleDrop">
                        
                        </telerik:RadTreeView>
                    </telerik:RadSlidingPane>
                </telerik:RadSlidingZone>
            </telerik:RadPane>
        </telerik:RadSplitter>

What should be the javascript :-
function DisableDashboard()
{} //I am unable to figure it out. Basically I need to disable drag and drop feature of RadtreeView1 once clicked on Company dashboard i.e RadTreeview ID = "CompTree"

Please suggest me a way!

Thanks
Arindam R


Svetlina Anati
Telerik team
 answered on 09 Jul 2009
22 answers
245 views
Hi
I am using "Timeview.Enabled" to disable the TimePicker in server side  code, and it was working in previous releases...
but now it doesn't work!!!
Thank you
Malek
Top achievements
Rank 1
 answered on 09 Jul 2009
2 answers
99 views
Hi,

I have a tabstrip with two rows and the Skin="Default" applied.

I have set for the end of the First Row last tab

tab.IsBreak = True
tab.CssClass = "rtsLast"

And I set for the second row first tab

tab.CssClass = "rtsFirst"




I discover that .rtsLast is applied on the <a> which works OK.
But the .rtsFirst for the second row is also applied on the <a> which should be applied on the <li>.

See my screen1 here

See my screen2 here

Do you have any suggestions how I can show the first Tab of Row2 as rtsFirst properly?

Regards,
Marc




Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 09 Jul 2009
1 answer
81 views

Hello All,
              I have pasted y code where I want to sort the date ,But plz tell me if any property is to be added to sort the date in MM/DD/YYYY.


<

 

telerik:GridBoundColumn SortExpression ="Act_Dt" UniqueName ="Act_Dt" DataField ="Act_Dt" HeaderText="Activity Date" ShowSortIcon="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">

 

<

 

HeaderStyle HorizontalAlign="Left" ></HeaderStyle>

 

<

 

ItemStyle HorizontalAlign="Left" ></ItemStyle>

 

 

</telerik:GridBoundColumn>


Regards
Ritzie

 

Pavlina
Telerik team
 answered on 09 Jul 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?