Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
65 views
Ignore this post please...
Anders
Top achievements
Rank 1
 asked on 29 Jan 2010
5 answers
301 views
I now spent hours to solv this dilemma. Reading posts on this forum, but nothing helps...

I add a new project, "RadControls CSharp WebApplication", wizard say for  Telerik.Web.UI: "v.2009.3.1314.35 [Installation Folder] "

But I get "Error Creating Control" on scriptmanager and AjaxManager. And I can't add any Rad Controls in DesignView (if I add a RadGrid in SourceView I get "Error Creating Control" on that to.

I'm running Windows 7 32-bit, and have VS2008 SP1 (I reinstalled SP1 to be sure). I uninstalled Telerik and installed again "RadControls_for_ASP.NET_AJAX_2009_3_1314_dev"

In Windows/assembly I see two "Telerik.Web.Design" (2009.3.1314.20 & 2009.3.1314.35) and a "Telerik.Web.Design.VSX"

Please help me, I'm so wanna start coding...
Schlurk
Top achievements
Rank 2
 answered on 29 Jan 2010
3 answers
51 views
Hi,

I have an issue with RadGrid Column Sorting.

As the columns does sort if I don't specify HeaderImageUrl for the grid Headers, but as soon as I try to insert image instead of the header text, sorting stops working.

I have tried using GridTemplateColum and GridBoundColumn. As soon as I remove HeaderImageUrl="images/car.png" it works.


 

 <telerik:GridTemplateColumn DataField="CarSpace" ShowSortIcon="true" HeaderImageUrl="images/car.png"

 

ReadOnly="true" SortExpression="CarSpace" HeaderTooltip="CarSpaces" UniqueName="CarSpace"

ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="20" HeaderText="Car Space">

<ItemTemplate>

<%#Eval("CarSpace") %>

</ItemTemplate>

</telerik:GridTemplateColumn>

 


 

 

<telerik:GridBoundColumn DataField="CarSpace" SortExpression="CarSpace" UniqueName="CarSpace"

 

 

AllowSorting="true" HeaderImageUrl="images/car.png" HeaderStyle-Width="20" ReadOnly="true"

 

 

ItemStyle-HorizontalAlign="Center" HeaderText="CarSpace" >

 

 

 <FilterTemplate>

 

   <%

#Eval("Carspace") %>

 

 

 </FilterTemplate>

 

 

</telerik:GridBoundColumn>


Am I missing something or is that known issue already?

Regards.

 

Martin
Telerik team
 answered on 29 Jan 2010
2 answers
83 views
RadRating for example I want to pass over a couple asp control ClientIDs into the Rated event...so I can use them in the external .js code.  Now I cant really find the ids by [id*=] because there might be multiples...

What I've been doing in my other events is setting the OnClientClick in the code behind so I can pass in the ClientIDs I need...

Any ideas? :)
Steve
Dimo
Telerik team
 answered on 29 Jan 2010
2 answers
191 views
I am using a RadTreeview with a LINQ (to SQL) datasource. I would like to know is there a way to detect when the data has completely loaded? I need to have certain nodes prechecked and realize I can do this within the nodedatabound event, but I want to basically:

-Wait until the full data load has completed (so all children are present)
-Check a node like a user/client would have (and have all of the corresponding actions to happen)
robertgalvinjr
Top achievements
Rank 1
 answered on 29 Jan 2010
2 answers
181 views
I have an XmlHttpPanel that I am loading a User Control into by the callback method.  I have a RadScriptBlock inside the user control.  This code does not get evaluated even though I have the XmlHttpPanel.EnableClientScriptEvaluation=True.  How do I include control level client script to be evaluated after a callback?

I know Telerik does it somehow because my control has a RadComboBox that has OnClientIndexChanged set to my Custom Client Script and when the Init is run on the combobox it can't find the function.  The init function is in the same callback response as my custom script.  It works but my script does not.  It doesn't make sense to me.

Thanks,
Doug
Pero
Telerik team
 answered on 29 Jan 2010
3 answers
191 views
Every time the page loads it sets the starting month to the current month, how do you override this? I simply want to be able to tell the Telerik.Web.UI.RadCalendar to start at a given month, can you please point me in the right direction?

Thanks,
Derek Bemis
Ziaur Rahman
Top achievements
Rank 1
 answered on 29 Jan 2010
3 answers
59 views
I found that meta tag content is removed upon save when using Firefox (3.5).  Entering and saving meta tag content works fine from IE (8). I was able to verify the problem in one of your online demos:
  1. Open this link with FireFox 3.5 http://demos.telerik.com/aspnet-ajax/editor/examples/saveindatabase/defaultcs.aspx
  2. Switch html mode and enter a meta tag like the following and click save.  

    <meta content="my description"

    name="description"/>

  3. Observe that only white space is saved to the database (see grid).

I saw one post kind of related to this issue:
http://www.telerik.com/community/forums/aspnet-ajax/editor/html-refresh-tag.aspx
It sounds like the staff response may be saying that meta tags are supposed to be removed but I am not certain.

So I am wondering, is this meta-tag removal in FireFox intentional and if not then do you plan to fix it (and how soon)? If this is intentional then please let me know why and if there is any workaround to allow for passing meta-tag content any other way for both IE and FF.

Thanks for you time.

Rumen
Telerik team
 answered on 29 Jan 2010
2 answers
92 views
Is there a way to make the scheduler(or for that any other telerik control) have the resources vertical and the time horizontal?
ala
       07:00 07:30 08:0008:30 ....
Amy
Andy
Arthur
Edward
....

I haven't had a need in the past for this kind of functionality but I do now...
Michael
Top achievements
Rank 1
 answered on 29 Jan 2010
1 answer
231 views

hello,

 

Here is my query:

 

-          We have developed our own Grid(custom control) derived from the RadGrid. We are trying to build in 3 buttons/options for displaying the columns – ‘Show All’, ‘Default’ and ‘Custom’ – wherein Show All – displays all the columns, Default – shows a set number of columns and Custom option – allows you to select columns from a checkbox list.

-          On first load, the default columns are visible. If you try to select columns using the Custom option, it works only with a sub-set of the default columns and not if the selected column is not the one in the default list. Which means it allows you to remove a column from the default list of columns but doesn’t allow you to add any column to the default list. This is true even for the Show All option when I try to bring back all the columns.

-          Following is the code is in the overridden OnPreRender event of the custom control, which drives the above functionality.

-          Can you have a look at the code and tell me if this is how you get the hidden columns back ? Also can you confirm if PreRender is the correct place to handle this? Because code here works for remove the columns, so presume it works for adding the columns as well.

-          Also are there any mandatory events or other code snippets to implemented for a custom control derived from a Telerik RadGrid control?

 

 

========START CODE========

public class MyGrid : Telerik.Web.UI.RadGrid

{

......

......

//PreRender – overridden event

 

switch (this.ShowHidePanelState)

            {

                case ShowHideColumnPanelStates.All:

                    {

                        for (int i = 0; i < this.Columns.Count; i++)

                        {

                            this.Columns[i].Visible = true;

                        }

                        break;

                    }

                case ShowHideColumnPanelStates.Default:

                    {

                        Hashtable defaultColumns = new Hashtable();

                        foreach (DefaultColumn column in this.DefaultColumns)

                        {

                            if (this.Columns.FindByUniqueName(column.UniqueName) != null)

                            {

                                this.Columns.FindByUniqueName(column.UniqueName).Visible = true;

                            }

                            defaultColumns.Add(column.UniqueName, column.UniqueName);

                        }

 

                        for (int i = 0; i < this.Columns.Count; i++)

                        {

                            if (!defaultColumns.ContainsKey(this.Columns[i].UniqueName) )

                            {

                                this.Columns[i].Visible = false;

                            }

                        }

                        break;

                    }

                case ShowHideColumnPanelStates.Custom:

                    {

                        for (int i = 0; i < this.CustomShowHideColumns.Items.Count; i++)

                        {

                            if (this.Columns.FindByUniqueName(this.CustomShowHideColumns.Items[i].Value) != null)

                            {

                                if (this.CustomShowHideColumns.Items[i].Selected == true)

                                    this.Columns.FindByUniqueName(this.CustomShowHideColumns.Items[i].Value).Visible = true;

                                else

                                    this.Columns.FindByUniqueName(this.CustomShowHideColumns.Items[i].Value).Visible = false;

                            }

                        }

                        break;

                    }

            }

 

 

//CustomShowHideColumns - property

 

       private CheckBoxList _customShowHideColumns;

        private CheckBoxList CustomShowHideColumns

        {

            get

            {

                if (_customShowHideColumns == null)

                {

                    _customShowHideColumns = new CheckBoxList();

                    _customShowHideColumns.ID = "CustomShowHideColumns";

                    for (int i = 0; i < this.Columns.Count; i++)

                    {

                        string text = this.Columns[i].HeaderText;

                        string value = this.Columns[i].UniqueName;

                        ListItem item = new ListItem(text, value);

                        //item.Attributes.Add("onclick", string.Format("showHideColumn('{0}',{1},this.checked)", this.ClientID, i.ToString()));

                        _customShowHideColumns.Items.Add(item);

                    }

                    _customShowHideColumns.RepeatDirection = RepeatDirection.Horizontal;

                    _customShowHideColumns.RepeatColumns = this.ShowHideRepeatColumns;

 

                    bool overideDefaults = false;

                    for (int i = 0; i < _customShowHideColumns.Items.Count; i++)

                    {

                        string checkboxClientName = String.Format("CustomShowHideColumns${0}", i);

                        if (this.FormItems[checkboxClientName] != null)

                        {

                            _customShowHideColumns.Items[i].Selected = true;

                            overideDefaults = true;

                        }

                    }

                    if (overideDefaults == false)

                    {

                        this.SetCheckBoxListDefaults();

                    }

                }

            

                return _customShowHideColumns;

            }

        }

 

        private void SetCheckBoxListDefaults()

        {

            foreach (DefaultColumn column in this.DefaultColumns)

            {

                for (int i = 0; i < this.CustomShowHideColumns.Items.Count; i++)

                {

                    if (this.CustomShowHideColumns.Items[i].Value == column.UniqueName)

                    {

                        this.CustomShowHideColumns.Items[i].Selected = true;

                        i = this.Columns.Count;

                    }

                }

            }

        }

 

.

.

.

}//Class ends

======End CODE============

 

Any help will be much appreciated.........


Schlurk
Top achievements
Rank 2
 answered on 29 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?