Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
299 views
i'm trying to apply this tooltips control to the drop down list, but the thing is that my dropdown is dynamic, it populates by database. so now my ddl has this for example
1
2
3
4
5

what i wnat to do is when you hover mouse a value on the ddl, it will pop up a description of what the value means on the ddl. how do i do that anyone help would really appreciate it.
Svetlina Anati
Telerik team
 answered on 12 Nov 2008
1 answer
88 views

Hi,

 

How can I place the toolbar of RadEditor into a named container on my page. Basically I don’t want to have the toolbar right on the top of the editor, but rather in a separate div on the page. I remember this was possible in earlier versions with from what I can remember “tollbarcontainerid” (or something similar to this) property. How/can this be achieved in RadEditor for ASPNET AJAX?

 

Cheers

Rumen
Telerik team
 answered on 12 Nov 2008
4 answers
226 views
Hey guys.

I haven't looked into it much, but before I do, I figured I would ask around and see if you have any ideas. 

I'm including other Telerik controls, like a ComboBox and RadGrid inside of the SchedulerDefaultForm of the Advanced Templates and, so far, any event fired from either of these controls gives this error:
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
The stack trace is something like this:

"   at System.Web.UI.Page.GetDataItem()\r\n   at ASP.taskbuilder_advancedscheduler_schedulerdefaultform_ascx.__DataBindingradddlGroupName(Object sender, EventArgs e) in c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\integrationnode\\5a4379f7\\123b663a\\App_Web_si58sjnd.0.cs:line 0\r\n   at System.Web.UI.Control.OnDataBinding(EventArgs e)\r\n   at Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e)\r\n   at Telerik.Web.UI.RadComboBox.PerformSelect()\r\n   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()\r\n   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()\r\n   at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e)\r\n   at Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e)\r\n   at Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e)\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Control.PreRenderRecursiveInternal()\r\n   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)" 

The ComboBox is declared thusly:

<telerik:RadComboBox ID="radddlGroupName" runat="server" Skin="Outlook" Style="margin: 0.8em 0pt 0pt 15px;" Width="400px" HighlightTemplatedItems="true" DataSourceID="TaskGroups_DS" DataTextField="Name" DataValueField="GroupId" SelectedValue='<%# Bind("GroupId") %>' OnSelectedIndexChanged="radddlGroupName_SelectedIndexChanged"
            <HeaderTemplate> 
              <table> 
                <tr> 
                  <td width="40" valign="top">Name</td> 
                  <td>Description</td> 
                </tr> 
              </table> 
            </HeaderTemplate> 
            <Items> 
              <telerik:RadComboBoxItem runat="server" Text="[-- Select a Group to Execute With This Item --]" Value="-1" /> 
            </Items> 
            <ItemTemplate> 
              <table style="height: 40px;"
                <tr> 
                  <td style="width: 50px; height: 21px;"
                    <asp:Label ID="lblGroupNameLabel" runat="server" Text='<%# Eval("GroupId") + "-" + Eval("Name") %>'></asp:Label> 
                  </td> 
                  <td style="height: 21px;"
                    <asp:Label ID="lblGroupDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label> 
                  </td> 
                </tr> 
              </table> 
            </ItemTemplate>          
          <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </telerik:RadComboBox> 

GroupId in the Header is coming from the overall combo data source, and the GroupId to bind the SelectedValue to is a custom attribute.

The only difference in the way I've handled GroupId here vs Description in the Telerik example project is that I do not pass GroupId down through the control chain, with Bindable properties and the like.  Is this the problem?

If not, how do you suggest handling PPP inside the template given the highly volatile binding situation presented with this nested control structure?

Thanks,

Adam.g



Adam
Top achievements
Rank 1
 answered on 12 Nov 2008
1 answer
115 views
In my page I have a search form above the grid.  The previous version 2008 Q2 displayed an empty box that when I clicked on the submit button would render the RadAjaxManager.  I have updated to Q3 2008 and the empty Grid is gone.  When someone clicks submit you don't see anything until the grid returns results.  This is a problem because it looks like the submit is not doing anything, because it is a rather large query and can take 5-10 seconds to return results. 

There are two alternatives that could resolve this issue for me.

1. Disable the button to let the user know something is happening.
2. Expand the empty container again for the grid so the user sees the RadAjaxManager with the loading graphic.

How can I preform either?  The ajax in the page is keeping the submit button from being enabled after the results come back.  I would like to re-enable it but if not at least show the empty grid before results are returned.

I look forward to your responses.
Mike
Top achievements
Rank 1
 answered on 12 Nov 2008
1 answer
120 views
Hi,
We are currently evaluating the grid to be used on our backoffice financial system.
One of the pages requires 2 grids to be displayed, one containing up to 3000 records, and another around 300.
When paging is enable everything works perfectly fine, however we require both grids to be without paging, and use scrolling on them.
The page renders fine, but grid scrolling becomes very irresponsive, and so does page performance in general.

Is there any way to make it work? Maybe i should change some settings?
Princy
Top achievements
Rank 2
 answered on 12 Nov 2008
1 answer
134 views
Hi, I need to add node client side only, without any loadondemand, etc. Just some cliet side method like .AddNode(ParentNode, NewNode). 
Atanas Korchev
Telerik team
 answered on 12 Nov 2008
2 answers
169 views
Im doing a prof of concept with the Telerik grid but i've hit a wall. I'm unable to access the userControl of the edit form. Here is a sample of my code.

ASPX
<form id="form1" runat="server">  
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">  
    </telerik:RadScriptManager> 
    <div> 
    </div> 
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None">  
        <HeaderContextMenu EnableTheming="True">  
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </HeaderContextMenu> 
        <MasterTableView EnableHeaderContextMenu="True">  
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridEditCommandColumn> 
                </telerik:GridEditCommandColumn> 
                <telerik:GridTemplateColumn HeaderText="500226" UniqueName="ikSpecialty">  
                    <ItemTemplate> 
                        <cc1:Label ID="lblSpecialtyRad" runat="server" Text='<%# GetListString("specialite", "ikspecialite", Container.DataItem("ikspecialite"), "cspecial", True) %>'></cc1:Label> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <EditFormSettings UserControlName="uscProcedure.ascx" EditFormType="WebUserControl">  
                    <EditColumn UniqueName="EditCommandColumn1">  
                    </EditColumn> 
                </EditFormSettings> 
        </MasterTableView> 
        <FilterMenu EnableTheming="True">  
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </FilterMenu> 
    </telerik:RadGrid> 
    </form> 

In the code behind, I am trying to access the user control but it always return 'nothing'.

Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
 
        If Not IsPostBack Then 
            SetDatasource()  
            RadGrid1.DataSource = GetIntervAss()  
        End If 
    End Sub 
 
Private Sub RadGrid1_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource  
        RadGrid1.DataSource = GetIntervAss().DefaultView  
    End Sub 
 
 Private Function GetIntervAss() As DataTable  
        Return DirectCast(Session("dsData"), DataSet).Tables("interventions_associees")  
    End Function 
 
' The MyUserControl is always = NOTHING  
Private Sub RadGrid1_EditCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.EditCommand  
          Dim MyUserControl As UserControl = CType(e.Item.FindControl(Telerik.Web.UI.GridEditFormItem.EditFormUserControlID), UserControl)  
    End Sub 
 

Can anyone help me on this?
Alexandre
Top achievements
Rank 1
 answered on 12 Nov 2008
1 answer
325 views
Hello,

I am looping through controls on the client and need to know the type of control.  For example, control.type returns whether it is text or a checkbox.  However, I cannot get the type if it is a RadComboBox.  Is there another way to achieve this?

Thanks.
Atanas Korchev
Telerik team
 answered on 12 Nov 2008
1 answer
167 views
Hello,

I'm working with a treeview control and the expand and collapse buttons (+/-) seem to dissapear every now and then.  

On the development side this problem is rare whereas on staging and production it happens once or twice a day.  The only solution I've found is to "refetch" the page from the server by holding "shift" + clicking refresh.  It seems to only be occuring on the the tree controls.  I do use on-demand node population based on expand and collapse.  

Attached is a screenshot of the problem.  Let me know if you need more information from me.


Thanks in advance!
Atanas Korchev
Telerik team
 answered on 12 Nov 2008
3 answers
140 views
Hello we actually moving all our "asmx" to "svc (WCF)" webservice, but some Telerik controls such as Tooltip does'nt work.
When i go in debug mode the method is called, but the "object" paramters is a string valus "{object}" instead of a "IDictionary<string, object>" so we cannot get the values. The tooltip will show the "return string" but in reallity we need to got some data base on context parameters and we can't...

Does Telerik support WCF webservice?
Thanks

SimpleService.svc
-----------------------------
[ServiceContract]  
[AspNetCompatibilityRequirements(  
        RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]  
public class SimpleService
{
    [OperationContract]  
    public string GetToolTipData(object context)
    {
        return "Hello World My My";
    }
}

Page.aspx
---------------------------
         <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomRight"
                Animation="Fade" Skin="Web20" Width="400px" Height="250px" Style="font-size: 18px;
                text-align: center; font-family: Arial;" Sticky="true" AutoCloseDelay="500" BorderStyle="Dotted" ContentScrolling="Auto" ShowDelay="150" HideDelay="300" ManualClose="True">
                <WebServiceSettings Method="GetToolTipData" Path="SimpleService.svc" />
                <TargetControls>
                    <telerik:ToolTipTargetControl TargetControlID="Button1" Value="1" />
                    <telerik:ToolTipTargetControl TargetControlID="Button2" Value="2"/>
                </TargetControls>
        </telerik:RadToolTipManager>
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <asp:Button ID="Button2" runat="server" Text="Button" />

SimpleSerc

Alexandre
Top achievements
Rank 1
 answered on 12 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?