Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
76 views
Hi
I changed  culture for radscheduler but name of days is still in English
How can I change that?
Mahdi
Top achievements
Rank 1
 answered on 08 Feb 2014
8 answers
203 views
I have a treeview and I have enabled the checkbox next to each node. The problem I am facing - is with multi select . Users dont want the 'Multiselect' feature. For example , if you select USA (parent)  user should only be able to selct One State e.g TEXAS and not more than that. If he wants to select NEW York then the previous selection TEXAS should be unchecked and New York should be checked.

I am using the following in my ASPX. I see that multiselect= true / false is working only when the user clicks the 'NODE' (I mean on the text e.g TEXAS) .. But in my case I have checkbox next to each node .. I mean checkbox next to TEXAS , NEWYORK.... I am not able to restrict users from checking multiple checkboxs in the same level. I mean users are able to select TEXAS and New york checkboxes irrespective of multiselect= true / false settings.

I am using webservice ondemand load feature to load the XML (I am using a physcial XML file)

Please provide me an example , how to do it . If not atleast provide me an sample how to highlight LAST selected NODE.

                                <telerik:RadTreeView ID="RadTreeView1" runat="server" Width="100%" Height="475px"
                                                     OnNodeCheck="RadTreeView1_NodeCheck"
                                                     PersistLoadOnDemandNodes="true" LoadingStatusPosition="BelowNodeText"
                                                     OnClientNodeChecked="CheckboxChecked"
                                                     OnClientNodeCollapsed="nodeCollapsed"
                                                     CheckBoxes="true" TriStateCheckBoxes="true" MultipleSelect="false" OnClientMouseOver="onMouseOver" style="white-space:normal;" >
                                                     <ExpandAnimation Type="none"></ExpandAnimation>
                                                     <CollapseAnimation Type="none"></CollapseAnimation>
                                                     <WebServiceSettings Path="NodeWebService.asmx" Method="GetTreeViewNodes">
                                                     </WebServiceSettings>
                                                     <Nodes>
                                                        <telerik:RadTreeNode Text="Pipeline" Value="Pipeline" ExpandMode="WebService">
                                                        </telerik:RadTreeNode>
                                                     </Nodes>
                                </telerik:RadTreeView>

Thanks
Sri
Srikrishna
Top achievements
Rank 1
 answered on 07 Feb 2014
7 answers
117 views
I am using 2013.3.1324.35, and have a RadGrid where databinding occurs on the client using javascript and webservices calls, i.e.  location and method attributes are not set declaratively.   The grid's height needs to expand to fill the browser's client area, so setting fixed height is not possible.

When there is no need for a scrollbar, then loading, sorting and paging all work flawlessly.   The headers align perfectly as seen in Image 1.

Next case is when the grid dimensions are changed, or the page size is changed, such that a vertical scrollbar appears.  Again using the same databinding as described above, the headers are now misaligned.  See Image 2.

In attempt to fix this, I discovered that if I perform the initial databind in the codebehind, and then allow all subsequent databind to occur clientside as described above, then I get the result as shown in Image 3.  Here all the headers align, there is a small rectangular place holder in the header above the scrollbar, and this is all good.

My guess is that there is some grid initialization occuring in the codebehind that is not available during clientside binding.  Is that the case?  

I don't want to mix databinding methods.  Most of the examples for clientside binding, just allow the height to increase to accomodate larger page sizes.  In my case, the grid height is already full screen, so the scrollbar appears.  I'm wondering if I need to caldulate and set the grid height programmatically prior to the initial binding on the client.

From the images, etc. can you shed any light on this behavior?
Dave
Dave
Top achievements
Rank 1
 answered on 07 Feb 2014
2 answers
35 views
Hello, 

Is there any way I can control the order in which the items appear in tree view . 

Is there any function in Kendo which lets me control it 

Thanks 
Vikram
Top achievements
Rank 1
 answered on 07 Feb 2014
2 answers
133 views
In my App_Themes folder, I have a file called TelerikCustomSkin.skin.  In it, I set the default skins for the Telerik controls.  A sample of the contents is as follows:

...
<
telerik:RadScheduler runat="server" Skin="Office2007" EnableEmbeddedSkins="true" />
<telerik:RadToolBar runat="server" Skin="Custom" EnableEmbeddedSkins="false" height="23px"/>
<telerik:RadTreeView runat="server" Skin="Custom" EnableEmbeddedSkins="false" Font-Names="Arial" Font-Size="9pt" />
<telerik:RadDock  runat="server" Skin="Custom" EnableEmbeddedSkins="false" />
<telerik:RadTabStrip runat="server" Skin="Custom" EnableEmbeddedSkins="false" />
...


I am attempting to use the radTreeView on a page similar to your demo page showing examples for each of your controls.  So in my .aspx page I have the following:

<telerik:RadTreeView ID="rtvTree" runat="server" EnableEmbeddedSkins="True" Skin="Silk">
    <Nodes>
        <telerik:RadTreeNode runat="server" Text="Top Ten" Value="pnlTopTen"/>
        <telerik:RadTreeNode runat="server" Text="Topic Areas" Value="pnlTopicAreas"/>
    </Nodes>
</telerik:RadTreeView>

However, my radTreeView is still being rendered using my custom skin, not the embedded skin.  I have removed the custom skin from the TelerikCustomSkin.skin and it works then.  However, I would now have to change all the other locations radTreeView is being used and add the skin attribute.

I am using Telerik 3.5 from release 2013_3.1114.

Any help is appreciated.
Ed
Top achievements
Rank 1
 answered on 07 Feb 2014
2 answers
191 views
Dear Sir:
   I tried to override the existing embedded skin in the page... it is fine and it works.... but if i tried to put it into the separated css file and it didn't work anymore.... is there anything i have to take care with it?


<head id="Head1" runat="server">  
 
    <link href="~/css/common.css" type="text/css" rel="stylesheet"/>      
    <link href="~/css/customize.css" type="text/css" rel="stylesheet"/>   //<-- Not work to put it inside      
      
 
        
      
    <style type="text/css">  
        .rfdDecorated    
        {    
            text-align: center !important;  
            padding-left: 6px !important;    
            border: 1px solid red !important;    
        }     
          
        div.RadComboBox_Outlook,                  //<-- fine to just put it in the page
        div.RadComboBox_Outlook .rcbInput,  
        div.RadComboBoxDropDown_Outlook  
        {  
            font: 10px  Arial,"Segoe UI", sans-serif;  
            color: #333;  
        }  
    </style>  

I don't wanna to put the code into the page separately.....

thank you for your kindly help

From edl0022
Mishal
Top achievements
Rank 1
 answered on 07 Feb 2014
3 answers
302 views
Hello, a new post just to share an issue I have solved and that gave me an headache.
All RadEditor dialogs returned me the error
"Cannot deserialize dialog parameters. Please refresh the editor page."

The problem had nothing with encryption (as suggested in other threads).
The problem was an incompatibility with a URL rewriting rule in web.config, a rule that is suggested on Microsoft MSDN.
<!--Redirect HTML with query parameters to lowercase URLs-->
<rule name="ForcePagesWithParametersLowercase" stopProcessing="false">
  <match url=".*[A-Z].*\.(aspx|htm|html)" ignoreCase="false" />
  <conditions>
    <add input="{QUERY_STRING}" pattern=".*[A-Z].*" />
  </conditions>
  <action type="Redirect" redirectType="Permanent" url="{ToLower:{R:0}}?{ToLower:{QUERY_STRING}}" appendQueryString="false" />
</rule>


The SEO rule forces a permanent redirect on lower case URLs... but it is also responsible of the RadEditor problem.
What's the solution if you don't want to remove the rule?
Change it with the following one
<!--Redirect HTML with query parameters to lowercase URLs-->
<rule name="ForcePagesWithParametersLowercase" stopProcessing="false">
  <match url=".*[A-Z].*\.(aspx|htm|html)" ignoreCase="false" />
  <conditions>
    <add input="{QUERY_STRING}" pattern=".*[A-Z].*" />
    <add input="{REQUEST_FILENAME}" pattern=".*Telerik\.Web\.UI\.DialogHandler.*" negate="true"/>
  </conditions>
  <action type="Redirect" redirectType="Permanent" url="{ToLower:{R:0}}?{ToLower:{QUERY_STRING}}" appendQueryString="false" />
</rule>


Ianko
Telerik team
 answered on 07 Feb 2014
11 answers
76 views
Hi,

We are still using moss 2007 for developing some website. I would like to know if the most recent version of Telerik ASP.NET is compatible with MOSS 2007.

Do you have some links for installation help and/or integrations ?

Thanks and have a great day !
Denis
Top achievements
Rank 1
 answered on 07 Feb 2014
5 answers
129 views
There were many questions today.
When i use example DBContentProvider and use Swedish characters like Ã¥, ä and ö in a file name it no problem to upload the file.
But I can not open it?
When i click on a filename like "Ã…land.doc" I go to a page with url: www.MyDomainNam.se/Handler.ashx?path=dokument%2fArbetsledare%2f%c3%85land.doc

I use Collation: Finnish_Swedish_100_CI_AS and MS SQL 2008.
In web.config i use:
<globalization fileEncoding="iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1" culture="sv-SE" uiCulture="sv-SE" />

How can I solve it?

If i use FileExplorer with no DBContentProvider, i have no problem to open file with Swedish characters in the filename...
Vessy
Telerik team
 answered on 07 Feb 2014
1 answer
171 views
Hi.

I have a RadGrid (see attachment - 01 - Grid.jpg). 
The first few columns (bold headers) have their columns declared declaratively.

RadGrid ID is GV_DailySales

           <telerik:GridTemplateColumn 
                    HeaderText="Gross Sales<br/>&nbsp;"
                    SortExpression="GrossSales">

and their data comes from a generic List<DailySales>. The Sort Expression value of "GrossSales"
is a property of this generic list and I am able to sort this column using the basic column sorting procedure.
This is true for the first few columns (from column "DAY" to "Average Check" because they are properties
defined in the DailySales object so no problems there. File attachment 01 - Grid.jpg shows an example
of the sorting that works fine.

--------------------------------------------------------------------------------------
For the next few columns they are of type GridTemplateColumn but had been added dynamically.

Here's the code snippet on how I added them dynamically.
           
            GV_DailySales.DataSource = ds.getDailySalesForTheMonth(DailySales_Date);  //source data for the columns that sorts fine

            #region dynamically add GridTemplateColumns for ATP

            List<PL_StoreSupport.Products> P = ds.getAllProductsForDailySales();   //my source data for the dynamic columns

            for (int i = 0; i < P.Count; i++)
            {
                TL.GridTemplateColumn gridTemplateColumn = new TL.GridTemplateColumn();
                TL.RadButton b = new TL.RadButton() { Width = Unit.Pixel(25) };
                b.Icon.PrimaryIconUrl = "~/ScriptsStylesItems/Images/icon_trends2.png";
                Label l = new Label() { Text = "<br/>" + P[i].Product_Name };
                gridTemplateColumn.HeaderTemplate = new CreateItemTemplate(b, l);
                gridTemplateColumn.HeaderStyle.Width = Unit.Pixel(85);
                gridTemplateColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
                gridTemplateColumn.UniqueName = Guid.NewGuid().ToString(); //or whatever name?
                //gridTemplateColumn.SortExpression = "SortExpression";//to determine which --> does not work
                GV_DailySales.MasterTableView.Columns.Add(gridTemplateColumn);
            }

            #endregion

----------------------- here's the code snippet how i defined my ITemplate----------------------------
//just a matter of adding a label and a RadButton on the header 

#region CreateItemTemplate
    public class CreateItemTemplate : ITemplate
    {
        private TL.RadButton RadButton_viewStat;
        private Label label;
        
        public CreateItemTemplate()
        {
             
        }
        public CreateItemTemplate(TL.RadButton b, Label l)
        {
            this.RadButton_viewStat = b;
            this.label = l;
        }

        public void InstantiateIn(Control container)
        {
            container.Controls.Add(RadButton_viewStat);
            container.Controls.Add(label);
        }
    }
    #endregion


----------------------- I created a Label for the dynamically created columns to hold the row data ---------------------------
 protected void GV_DailySales_ItemCreated(object sender, TL.GridItemEventArgs e)
        {
            TL.GridDataItem ITEM = e.Item as TL.GridDataItem;

            switch (e.Item.ItemType)
            {
                #region add numberic text box | asp labels

                case TL.GridItemType.Item:
                case TL.GridItemType.AlternatingItem:

                    for (int i = 9; i < ITEM.Cells.Count; i++)
                    {
                        #region RAD NUMERIC TEXT BOXES & LABELS

                        //..generic controls - dataLabel - asp labels
                        Label dataLabel  = new Label();
                        dataLabel.ID = "dataLabel_" + i.ToString();
                        dataLabel.Text = "85";
                        ITEM.Cells[i].Controls.Add(dataLabel);

                        //..adjust alignment
                        ITEM.Cells[i].HorizontalAlign = HorizontalAlign.Center;

                        #endregion

                        
                    }
                    break;

                #endregion
            }

--------------------------------- I populated the rows with random integers to simulate data ---------------------------
protected void GV_DailySales_ItemDataBound(object sender, TL.GridItemEventArgs e)
        {
            if ((e.Item.DataItem != null) && (e.Item is TL.GridDataItem))
            {
                #region DYNAMIC COLUMNS

                for (int i = 9; i < ITEM.Cells.Count; i++)
                {
                    Label dataLabel = ITEM.FindControl("dataLabel_" + i.ToString()) as Label;
                    dataLabel.Text = (i * i * ITEM.RowIndex).ToString();

                }

                #endregion
            }
        }


------ 
I did not use the the GV_DailySales.Databind() method anymore because I am already handling this via the 
GV_DailySales_NeedDataSource event handler as I've read this to be "recommended practice."

I'd like to ask for some help how I can possible sort these dynamically added columns.







Angel Petrov
Telerik team
 answered on 07 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?