Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
145 views
Hi
      I am using rad grid having paging option , i would like to change or customize  Page Size text to Report Size. So is there any way to control page size label in the Pager Panel.

Regards,
Appu
Shinu
Top achievements
Rank 2
 answered on 07 Jul 2009
3 answers
137 views
Hi,
I'm trying to do the following,
To have 3 RadComboBox inside InlineInsertTemplate ,
when selecting value inside the first of them, to enable/disable one/two of the others,
and also to have a validator that check once they are enable, if they have value selected,
I would like to accomplish all of that in client side code only.
I have been able to accomplish that in AdvancedInsertTemplate, but its loading time is too slow (modal on latest version, 2009 Q2)

Can this be done?
if so, could you guide me how

Thanks
Mickey
Genady Sergeev
Telerik team
 answered on 07 Jul 2009
12 answers
206 views
I'm using the client side drag & drop functionality and I set a flag to true when the drag starts then set my flag to false when the drag ends (on the OnClientNodeDropping and OnClientNodeDropped events).  It works great unless I drag the node back onto itself.  When I do that, the OnClientNodeDropping and OnClientNodeDropped events don't fire so I don't have a way to reset my flag.  There doesn't seem to be a "OnClientNodeDragEnd" event or any other way to determine when the dragging ended.  How can I capture an event when the node is dragged onto itself?

Thanks,
Matt
Atanas Korchev
Telerik team
 answered on 07 Jul 2009
1 answer
140 views
Hi there,

I'm currently experiencing an issue with static headers and frozen columns on a RadGrid when I replace the HTML for the RadGrid with a HTML stream from a web service which creates and renders an updated RadGrid.  I know this sounds like a very odd scenario for updating the grid, but this was the design choice due to a number of other static elements we have rendered on the page which often need to be re-rendered when the widget area is resized.

I believe the issue is the result of the client-side javascript not being hooked up to the returned elements.  Here's a basic scenario:

- Load a page with a widget on it which contains a RadGrid.
- Resize the widget.  The resize makes a call in javascript to a web service to get an updated RadGrid.
- In the service method, a Page element is created along with a ScriptManager and a RadGrid, which are added to the page.
- The page is rendered to a text stream by calling HttpContext.Current.Server.Execute.
- The resulting text then has everything but the rendered HTML for the RadGrid removed, and is sent as the result of the service method call.
- A callback handler for the completion of the web service request then replaces the innerHTML of the widget (which was the original RadGrid) with the HTML returned from the web service.

At this point, the grid renders correctly on screen and looks fine.  However, the scrolling now scrolls all data columns, including my frozen columns, and the matching column headers and footers do not move when scrolling as they would when the RadGrid is on the page from the beginning.

So, is there a good way that I can reconnect all of the client-side scripting to my returned HTML, such that it treats this HTML replacement as an actual RadGrid, along with all of the column freezing and scrolling that I get when the page is freshly loaded?

Thank you for your time,

Rich

Nikolay Rusev
Telerik team
 answered on 07 Jul 2009
10 answers
387 views
Hi All

Have a radgrid with datas. it works properly.

with a issue.

Issue is:

The MaxLength does not works.

My Code:

<

telerik:GridTemplateColumn UniqueName="Description" DataField="Description" HeaderText="Description">  

 

<ItemTemplate>  

 

<asp:TextBox ID="txtDescription1" Columns="15" MaxLength="255" Rows="2" TextMode="MultiLine" Text='<%#Bind("Description")%>'

 

runat="server" ReadOnly="true" ></asp:TextBox>  

 

</ItemTemplate>  

 

<EditItemTemplate>  

 

<asp:TextBox ID="txtDescription" Columns="25" MaxLength="255" Rows="5" TextMode="MultiLine" Text='<%#Bind("Description")%>'

 

runat="server"></asp:TextBox>  

 

<asp:RequiredFieldValidator ID="RequiredFieldValidatorDescription" runat="server" ErrorMessage="*"

 

ControlToValidate="txtDescription"></asp:RequiredFieldValidator>  

 

 

</EditItemTemplate>  

 

</telerik:GridTemplateColumn>


I have set the MaxLendth to 255, But it not working

Thank You

-Anto

 

 

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 07 Jul 2009
2 answers
109 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
59 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
432 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
127 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
90 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
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?