Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
Hello,
I need to develop a new control which I need to place in a column of a Grid.
The control should look like a measuring container which shows me in a graphical way the liquid level of a tank. I would like to bind two values to the control, one value for the actual liquid level and one value which represents the maximum liquid level. According to the first value the control should show me how much liquid is my measuring container.

Any idea how I could start to develop such a control or does this control in a way already exists?

Cheers
Guenter
Guenter
Top achievements
Rank 1
 answered on 07 Jul 2009
1 answer
58 views
I've reviewed the help text in the PDF for the .NET controls and done some looking online and unfortunately I'm not having any luck with a closer code review of the interval settings in the datetime selector control.

I'd like to be able to set the interval for our selection settings to 2 hours but not sure I can?

Anyone have any experience with this control in doing something similar?

Thanks,
Chris

Spoke too soon...

Essentially can set interval in the properties to my 2 hour interval and other settings pretty much fall into place on my RadDateTimePicker

Georgi Krustev
Telerik team
 answered on 07 Jul 2009
4 answers
428 views

Hi I need to create a multicolumn menu similar in design to the demo(https://www.telerik.com/demos/aspnet/prometheus/Menu/Examples/MultiColumnMenu/DefaultCS.aspx)

I need to populate the values dynamically though. I have been playing with it for awhile now and really came up with what seems like a hack. It almost works, I still have a lot to clean up and figure out. Before I waste a lot of time doing that… This is what I did so far. I have to create a class based on itemplate then build the template and add it to the radmenu control collection. Is this the right way to do it? Do you have examples of how to create the multi column menu dynamically (from a database). I couldn’t find anything.

This is what I have..

HTML:

<telerik:RadMenu ID="MainMenu" runat="server" Skin="Web20" CssClass="qsfexMenu">

<Items>

<telerik:RadMenuItem Text="TopMenuItem">

<Items>

<telerik:RadMenuItem CssClass="ProductsSection">

<ItemTemplate>

<div class="qsfexCustomMenuSection">

<a class="alink" style="color:Blue;" href="" id="SubMenuItemCol1" runat="server" >ddd</a>

</div>

</ItemTemplate>

</telerik:RadMenuItem>

</Items>

</telerik:RadMenuItem>

</Items>

</telerik:RadMenu>

 

Code:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

     If Not Page.IsPostBack Then

           SetupMenu()

      End If

End Sub

 

Sub SetupMenu()

 ' get menu items

Dim items As MenuItems = New MenuItems("989", "/M/C/MainMenu.ascx", DateTime.Today, "154")

For Each mItem As MenuItem In items

Dim item As RadMenuItem

      item = New RadMenuItem

      item.Text = mItem.MenuText

      item.NavigateUrl = mItem.MenuUrl

      If mItem.HasSubMenus Then

            LoadChildMenus(item, mItem)

      End If

      MainMenu.Items.Add(item)

Next

End Sub

Sub LoadChildMenus(ByVal item As RadMenuItem, ByVal mItem As MenuItem)

 If Not item Is Nothing Then

   For Each m As MenuItem In mItem.SubMenuItems

           Dim mct As MultiColumnTemplate = New MultiColumnTemplate()

            mct.text = m.MenuText

            mct.url = m.MenuUrl

            Dim x As RadMenuItem = New RadMenuItem(m.MenuText, m.MenuUrl)

            x.ItemTemplate = mct

            x.CssClass = "ProductsSection"

            item.Items.Add(x)

      Next

      End If

End Sub

Class MultiColumnTemplate

      Implements ITemplate

      Public text As String

      Public url As String

      Public Sub InstantiateIn(ByVal container As System.Web.UI.Control) Implements System.Web.UI.ITemplate.InstantiateIn

      Dim menuText As String = text

      Dim menuUrl As String = url

      Dim a As HtmlAnchor = New HtmlAnchor()

      a.InnerHtml = menuText

      a.HRef = menuUrl

      container.Controls.Add(a)

End Sub

End Class

Thanks for your help. 

Anthony
Top achievements
Rank 1
 answered on 07 Jul 2009
2 answers
124 views
Hi Telerik community !

I have a little problem : i want to put a grid in a panel bar like this :

<

 

telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="400px" Height="280px" ExpandMode="FullExpandedItem">

 

 

    <Items>

 

 

        <telerik:RadPanelItem Text="XXX">

 

 

            <Items>

 

 

                <telerik:RadPanelItem>

 

 

                    <ItemTemplate>

 

 

                        (...)
                    </
ItemTemplate>

 

 

                </telerik:RadPanelItem>

 

 

            </Items>

 

 

        </telerik:RadPanelItem>

 

 

    <telerik:RadPanelItem Text="Here a RadGrid">

 

 

        <Items>

 

 

            <telerik:RadPanelItem>

 

 

                <ItemTemplate>

 

 

                    <telerik:RadGrid (...)  DataSourceID="SqlDataSource1">
                        <MasterTableView DataSourceID="SqlDataSource1" >

 

 

                            <Columns>

 

 

                                (...)
                            </
Columns>

 

 

                        </MasterTableView>

 

 

                    </telerik:RadGrid>
                    
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="MyConnectionString"  SelectCommand="MySQLRequest"></asp:SqlDataSource>

 

 

                </ItemTemplate>

 

 

            </telerik:RadPanelItem>

 

 

        </Items>

 

 

    </telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelBar>

IT WORKS !

But now I want to set my connectionString and my SelectCommand in my code behind..
I remove them from the aspx page and add them into the aspx.vb page
but... when I write SqlDataSource1.ConnectionString ="MyConnectionString" or SqlDataSource1.SelectCommand ="MySQLRequest",
Visual Studio say me SqlDataSource1 is not declared ! But I haven't remove it in the aspx page !
What happend ? How can I resolve this problem ? Please let a little code snippet, if is exists !
Thanks in advance !

 

Paul
Telerik team
 answered on 07 Jul 2009
1 answer
85 views
hello All,

           Firstly I had installed a trial version of telerik rad controls for my application and now deleted those earlier references and  now installed a developer version of rad controls on my computer,And now I am getting the following error :

  Error Creating Control - RadMenu1Failed to create designer 'Telerik.Web.UI.RadMenu,
Telerik.Web.UI, Version=2009.2.701.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4'

Please help me fast.
Thanks
Ritzie
Daniel
Telerik team
 answered on 07 Jul 2009
1 answer
472 views
Hi
       I am using RadGridm also RadCombobox for a filtering purpose.
My Question is can we have seperator between each items in Radcombobox to be look like seperator between menu items.



Appu
Princy
Top achievements
Rank 2
 answered on 07 Jul 2009
2 answers
220 views
Hi, I use a grid control as usual and redefine the SQL clause during the load of the page.
When compiling the code, I got the erro message Name 'RadGrid1' is not declared...
RadGrid1 is in my locals during debuging thus far I don't understand where my error...
Can somebody give me an idea how to fix this?
Regards,
David
David
Top achievements
Rank 1
 answered on 07 Jul 2009
2 answers
153 views
Hi,

  I would like to show  all records in Radgrid on  mouseover in a particular row using tooltip..
How? any idea

Nirmal
Thanks in Advance
Nirmal
Top achievements
Rank 1
 answered on 07 Jul 2009
4 answers
237 views
Hello,

Using last 2009 527 version, I have following problem.
My app uses Forms authentication and some folders could only be accessed by authenticated users with ssl protection.
I use classic asp.net
<authentication mode="Forms"/>  
<forms loginUrl=https://www.myportal.com/secure/login.aspx?PageID=200 defaultUrl="DefaultModulesPage.aspx" requireSSL="false" /> 
</authentication> 
         

Until ajax.net and Telerik, this was working Ok, redirecting non authenticated users to login.aspx with https.

Now I am using .net 3.5 with radajax.net and lot of related more declarations in web.config, like
<httpRuntime useFullyQualifiedRedirectUrl="true" ... enableVersionHeader="false" /> 
         

and I don't know why but my browser ( Fiddler traced it) receive something strange
http://www.myportal.com/secure/login.aspx?PageID=200&ReturnUrl=My_original_url_with_query_encoded&Doubled_querystring

First and main pb: it is no more https ???
Calling directly https://same url works perfectly, certificate is installed under IIS6 (W2K3) and ssl working Ok.

Next I get a double value for my original query string added to the end of request, even if the return url parameter already contains it.
??

My question, is somebody playing with 'location' in ajax.net or radajax.net ?

What could I check ?

Thanks for help.

CS



Pavel
Telerik team
 answered on 07 Jul 2009
3 answers
260 views
Hi,

Iam using the below code to display a Rad Alert box and redirecting to a new page
string message="Displkay Alert Message";

radAjaxManager.ResponseScripts.Add("radalert('" + message + "', 250, 100);

 

For redirecting we are using the javascript redirect: window.location.href ="NewPage.aspx".

The issue here is the page gets redirected first and is not waiting for the OK button click on the Radalert.
When we use normal alert the page is actually waiting for the user to click the OK button and then the new page is getting loaded

Any help on this greatly appreciated
Thanks and Regards
V.Balamurali

Georgi Tunev
Telerik team
 answered on 07 Jul 2009
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?