Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
106 views
I am having an issue where the dropdown for the datagrid is badly formatted and the numbers are not displayed correctly. I am using the default configuration and have not changed any styles. Can anyone please help?

The dropdown list for the page size is showing both vertical and horizontal scroll bars.
Danny
Top achievements
Rank 1
 answered on 03 Sep 2009
4 answers
152 views
¿What's the best approach to use Skins and CSS simultanously in a RadControl, and specifically in RadGrid?  I would like to use the features provided from Skins but I need to customize some specific aspects, for example: ItemStyle, AlternatingItemStyle, FooterStyle, HeaderStyle, and so on, with no losing Skins capabilities.

Thanks in advance
Dimo
Telerik team
 answered on 03 Sep 2009
1 answer
105 views
Hello,

I'm opening a radwindow via the radmanager show and inside the window I have some .net controls. The window opens via an image button trigger.

The first time the window opens, everything is good, it opens smooth like a true ajaxified control.

When I close the window, returning to my main screen and then reopen the window by clicking on the image button again, it flickers the second time. All of the content inside the radwindow flickers, unlike a true ajaxified control.

I'm wondering why this issue exists on the second time around.... ?? Why would the window not flicker the first time, but flicker the second time (when closed and reopened)?

Any assistance is mucho appreciated with a BIG thank you. Thanks!
Veli
Telerik team
 answered on 03 Sep 2009
2 answers
132 views
Hi,
I'm trying to get started with the controls but am having some problems.
I installed them on one machine and kept receiving the "Can not cast" errors."  So, I installed SP1.  That did not help
So, just in case my environment was messed up,  i created a completely clean dev environment as follows:
1.  Started with a completely clean VM of XP with SP3
2. Installed VS 2008
3. Installed vs sp1
4. installed RadControls_for_ASP.NET_AJAX_2009_2_701_trial.msi

Then, just to see if I was still having the problem I created a RadCrontrols VB.Net Web Application project.
From there I did the following:
1. Drop a RadTreeView onto Default.aspx
2. Error - Unable To Cast...
3. Close Default.aspx and reopen it - it is fine
4. Use "Build RadTreeView" to add a few nodes.
5. Error - RadTreeView - RadTreeView1There was an error rendering the control.
Unable to cast object of type 'Telerik.Web.UI.RadTreeView' to type 'Telerik.Web.UI.ControlItemContainer'.
6. Close and reopen Default.aspx - it is fine
7. Add a Grid
8. Run it.
9. Delete the grid
10. Close and open default.aspx - Error in both RadTreeView sections - Error Creating Control - RadTreeView2'Nodes' could not be initialized. Details: [A]Telerik.Web.UI.RadTreeView cannot be cast to [B]Telerik.Web.UI.RadTreeView. Type A originates from 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\xpUser1\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\j4t8j5az01\telerik.web.ui.dll'. Type B originates from 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Documents and Settings\xpUser1\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies\4xzcagnf01\Telerik.Web.UI.dll'.
11. Close and open again - same errors
12. Close and open VS - everything is fine

Based on the articles I found, this should not be happening with SP1.

Does anyone know how to permanently eliminate (or at least work around in a reasonable fashion) this type of issue? 

Thanks

Pavlina
Telerik team
 answered on 03 Sep 2009
2 answers
121 views

I have a GridTemplateColumn like this:

<telerik:GridTemplateColumn UniqueName="PrsSex" GroupByExpression="PrsSex Group By PrsSex">  
    <HeaderTemplate> 
      <asp:Label runat="server">PrsSex</asp:Label> 
    </HeaderTemplate> 
    <ItemTemplate> 
      <asp:Label   
Text='<% #Eval("PrsSex").ToString()== "0" ? "Female" : "Male" %>' runat="server" />                                            </ItemTemplate>                                          
</telerik:GridTemplateColumn> 
 

I want to change its name in groupPanel from "PrsSex" to "Sex". In GridGroupsChangingEventHandler I am trying to change its HeaderText like below, but it does not work!

private void grdPrs_GroupsChanging(object source, GridGroupsChangingEventArgs e)  
    {  
        //Expression is added (by drag/grop on group panel)  
        if (e.Action == GridGroupsChangingAction.Group)  
        {  
            if (e.Expression.GroupByFields[0].FieldName == "PrsSex")  
            {  
                e.Expression.GroupByFields[0].HeaderText = "Sex";  
            }  
     }  
}  
 
Thanks.
azin ramezani
Top achievements
Rank 1
 answered on 03 Sep 2009
1 answer
110 views
Hi

I think I may be trying to do something that cannot work... can someone tell me how to do it if not?

I have a grid with a price column where the value displayed can be in £, $ or Euro depending
on the value of a cookie.

The visitor can change the display currency cookie in a RadWindow, and I want this change to be effective
when the window is closed.

Currently I have javascript to do a complete page refresh, but it would be much smoother to
only have to refresh the grid. How can this be done?  Is there an event that can retrieve the new cookie value?
Or does the whole page have to be reloaded to get the the new cookie value?

Thanks lot!

Clive
Veli
Telerik team
 answered on 03 Sep 2009
3 answers
127 views
Hello, I have a toolbar that I'm dynamically adding templates with controls (textboxes, radcombobox, etc.) to via server-side code when the page is first loaded.  The intention is to have the user fill in those controls, then click a 'Run' button on the same toolbar. My problem is that in the postback for the Run button the values for the dynamically-added controls aren't persisting.  I could easily re-setup the controls again, but how do I capture the values the user entered?

I suspect I'd have to do something with the client-side trackChanges() and commitChanges() functions, but am not sure how to make use of those in this scenario.  Most examples I've seen involve a single javascript function that wraps these around some toolbar changes that the function itself does, and I'm not sure how to use these to persist values that the user has entered into dynamically added templates.

Any help would be greatly appreciated!

-Eddie
Peter
Telerik team
 answered on 03 Sep 2009
0 answers
79 views
Hi there,

I have used right now Asp.net ajax treeview contrl....

I need to add one label in ajax control but that I have done...

Now i need to use findcontrol to find that label text on handledrop event...

So, any one can help me out.
its very urgent...

Thanks in advance.
Dhaval Shah
Top achievements
Rank 1
 asked on 03 Sep 2009
3 answers
95 views
I have an Ajax manager and a RadComboBox on a page. When the selected value of the Combobox changes the Ajax manager fires and works as it is supposed to. So far so good. But in case the Ajax manager fires for the same value of the Combobox consecutively in a row the code behind function doesn't trigger but still the GUI changes occur but with wrong values. I cant figure out the cause. Any help will be great. I am using version 2009.2.701.35.
Vlad
Telerik team
 answered on 03 Sep 2009
5 answers
195 views
Hi,

I've run across a problem when populating a Panel bar using a List as the datasource. The problem occurs when I try to set the DataTextField property of the PanelBar to the property of a child object which resides in my List. Here is a code sample (btw, I am creating the List from a Linq query, but I don't think that should matter):

                <telerik:RadPanelBar ID="MenuPanelBar" Skin="WebBlue" Runat="server"
                </telerik:RadPanelBar> 

LayoutFrameworkDataContext dc = new LayoutFrameworkDataContext();

MenuPanelBar.DataSource = 
             (from mi in dc.MenuItems 
             from mid in dc.MenuItemDisplayNames 
             where mi.DisplayNameID == mid.DisplayID 
             select mi).ToList(); 
 
MenuPanelBar.DataTextField = "MenuItemDisplayName.DisplayName"
MenuPanelBar.DataBind(); 

When I call DataBind() I receive this error: "Object of type Menu.MenuItem does not have a MenuItemDisplayName.DisplayName property."

When I look at the PanelBar DataSource in the debugger I can see that I do indeed have my array of MenuItem objects, and within each MenuItem object there is a MenuItemDisplayName object with a DisplayName property.

It's seems what I'm trying to do is pretty straight forward and when I try this with a RadGrid the code works fine and I do not receive any errors.

Does anyone have an idea of what I may be doing wrong?

Thanks, -Scott


Atanas Korchev
Telerik team
 answered on 03 Sep 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?