Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
134 views
Is there a way to detect if a width and height were specified when radopen() was called? I'd like the page loaded into the radwindow to resize the radwindow to a default width and height, but only if a width and height were not specified when calling radopen().
adam0101
Top achievements
Rank 1
 answered on 30 Apr 2010
5 answers
118 views
Hi,

If the editor is set to "Black" skin - when you open the Style builder for a table all the font colours are incorrect (black font on black background).

This is causing a serious problem for our users - can this be fixed or a workaround be applied?

Note that the attached file comes from your demo site.

Thanks
James Dean
Top achievements
Rank 1
 answered on 29 Apr 2010
5 answers
395 views
Okay, going to try and describe this as clearly as possible, since it's a bit of a complicated situation.

This is for VS2010, .NET 4.0, Telerik Q1-2010 release. 

The setup is as follows, there's a master page, with a content page. The master page has an ajaxmanager and the content page has a proxyajaxmanager. The content page has user controls, amongst other things. 

The goal is as follows: there's a linkbutton on the content page, that when clicked adds a user control to a panel on the content page. 

The problem: the linkbuttons are dynamically added, as in: 
var li = new LinkButton 
                { 
                    Text = action.Name, 
                    ToolTip = action.Description, 
                    ID = "al" + action.ReportActionTypeID, 
                    EnableViewState = false 
                }; 
                li.Click += ActionTrigger; 
                
                ActionPanel.Controls.Add(li); 

So, after that, I attempt to add them to the Ajaxmanager from code behind (doing it through longer way of constructing and using Add instead of AddSetting, because AddSetting was throwing a null reference error that I never managed to figure out):
var ajaxSetting = new AjaxSetting(); 
                var target = new AjaxUpdatedControl(ActionPanelDynamic.ID, "AjaxLoadingPanel"); 
                ajaxSetting.UpdatedControls.Add(target); 
                ajaxSetting.AjaxControlID = li.ID; 
                _ajaxManager.AjaxSettings.Add(ajaxSetting); 

The code executes with no issues, however, the AJAX is not applied as expected. It just does a full page refresh when one of the linked buttons is clicked. 

I've tried to apply settings to a static linkbutton (one that I just added in markup), and this functions as expected. 

My guess at this point is that the IDs of controls are just incorrect at some point? As ASP renames them, and there are some empty string warnings for GetElementByID in FireBug console. But I'm not really sure at what point or where to correct this. I was thinking this http://west-wind.com/weblog/posts/54760.aspx may possibly be related? 
Kevin Kembel
Top achievements
Rank 1
 answered on 29 Apr 2010
3 answers
143 views

I'm setting the following properties during OnItemDataBound event, but it doesn't seem to change anything.  Is there something else I need to do?  I can set the BackColor and ForeColor for an entire row during the event and be able to see the change, but when I set anything with Border, it doesn't change anything,

e.Item.BorderColor =

Color.Red;

 

e.Item.BorderStyle =

BorderStyle.Groove;

 

e.Item.BorderWidth =

Unit.Parse("10px");

 

robertw102
Top achievements
Rank 1
 answered on 29 Apr 2010
2 answers
116 views
Hello,

When you load a project within Visual Studio, and it uses an older version of Telerik, you now get that upgrade prompt.  That is very annoying when I cannot just simply upgrade as then I would have to regression test the application.  Is there any way that you can disable that to not do the check?

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 29 Apr 2010
2 answers
152 views
Hi all,

I have a problem I can't seem to solve.  I don't have nested grids but I'm calling them parent and child for ease of explaining.

I have a grid (parent).  When I click edit, the gridparent opens in form template.  The form template has a section that contains a user control.  In the user control is a grid (child).  The user control grid has records related to the parent grid.  When I click the edit command button in the user control it opens correctly using inplace edit.  No problem saving.

The Problem
Child - I want to remove the edit button and use the the rowclick to put the child grid in edit mode.  Now clicking the row will open another row in the parent grid. Clicking the row again closes the parent record.  I have no primary id's matching the parent and child.  So I don't understand why it opens a record outside of it's scope.  Again the child grid is self contain so clicking row edit shouldn't open a record from another grid.

Thanks,
Khanh
Khanh
Top achievements
Rank 1
 answered on 29 Apr 2010
0 answers
116 views
For the sake of Google ...

If you are using RadScriptManager and you are using multiple web.config files, make sure the handler is registered in the top-most web.config file, even all the files reside beneath the folder in which your child web.config file lives.

I had an /admin/web.config file (which has my RadScriptManager handlers registered)
and I had my /web.config file (which did not)

It appeared to work until I was using the WCF element of the RadTReeView (specifically, clicking on a dynamically generated node - the tree dynamically generated fine) so this was giving a false impression.

Without the root web.config file having the handler registrations, you get a "ASP.NET Ajax client-side framework failed to load." error from JavaScript.

Those registrations, again:

<?xml version="1.0"?> 
 
<configuration> 
  
  <system.web> 
    
    <httpHandlers> 
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
 
    </httpHandlers> 
  </system.web> 
  <system.webServer> 
    <modules runAllManagedModulesForAllRequests="true" /> 
 
      <handlers> 
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
 
      </handlers> 
  </system.webServer> 
     
</configuration> 


Hope this helps someone.
Nathan J Pledger
Top achievements
Rank 2
 asked on 29 Apr 2010
3 answers
417 views
I noticed that when you focus a radComboBox by pressing tab it doesnt expand, is there a property or a way to make it expand?
Thanks!
Kalina
Telerik team
 answered on 29 Apr 2010
2 answers
110 views
Hi,

First thanks or solution in advance ...

I have functionality in my application where i need to export current page of  grid to pdf. Its is working fine with setting property "IgnorePaging" to true. But its does not working for current page of grid and returns blank page. I got the reason that why its not working. Reason is that i  am using scrolling properties of grid. I f i am not using these properties then thi is working ok for current page too. But according to my requirement, it is mandatory for me to use scrolling properties. Please let me know how can i export current view of grid with these scrolling options true.


Thanks, 
Ankesh Bharti


Ankesh Bharti
Top achievements
Rank 1
 answered on 29 Apr 2010
10 answers
211 views
I have a little  bit of a challenging task, and I am not certain how to go about accomplishing it.  I have a grid that loads orders (detail table is the items in an order number) for the purposes of administering them.  This will primarily be used for our customer service reps.  What I need to do is to make the delete button invisible if the order status = 'pending', because at that point the order cannot be deleted from the web portal, but must rather be deleted using another method.  I hope someone can point me in the right direction of how I can accomplish this task.  Here's the grid code:

                        <telerik:RadGrid ID="rgOrderView" runat="server" AllowPaging="True" AllowSorting="True"   
                            DataSourceID="dsSelectOrders" GridLines="None" Width="95%" PageSize="25" Skin="Black">  
                            <MasterTableView AutoGenerateColumns="False" DataSourceID="dsSelectOrders" Width="95%" 
                                DataKeyNames="UserID, OrderID">  
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </ExpandCollapseColumn> 
                                <Columns> 
                                    <telerik:GridBoundColumn DataField="ExternalOrderID" DataType="System.Int32" HeaderText="Order ID"   
                                    ReadOnly="True" SortExpression="ExternalOrderID" UniqueName="ExternalOrderID" /> 
 
                                    <telerik:GridBoundColumn DataField="StoreNum" HeaderText="Store Number"   
                                        SortExpression="StoreNum" UniqueName="StoreNum" /> 
                                    <telerik:GridBoundColumn DataField="POGNum" HeaderText="POG Number"   
                                        SortExpression="POGNum" UniqueName="POGNum" /> 
                                    <telerik:GridBoundColumn DataField="Description" HeaderText="POG Description"   
                                        SortExpression="Description" UniqueName="Description" /> 
                                    <telerik:GridBoundColumn DataField="EntryDate" DataType="System.DateTime"   
                                        HeaderText="Entry Date" SortExpression="EntryDate" UniqueName="EntryDate" /> 
                                    <telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status"   
                                        UniqueName="Status" /> 
                                    <telerik:GridBoundColumn DataField="OrderID" SortExpression="OrderID" UniqueName="OrderID"   
                                        Visible="false"/>  
                                </Columns> 
                                  
                                <NestedViewSettings DataSourceID="dsSelectOrderDetails">  
                                    <ParentTableRelation> 
                                        <telerik:GridRelationFields MasterKeyField="OrderID" DetailKeyField="OrderID" /> 
                                    </ParentTableRelation> 
                                </NestedViewSettings> 
 
                                <NestedViewTemplate> 
                                    <telerik:RadGrid ID="rgOrderDetails" runat="server" AutoGenerateColumns="False" DataSourceID="dsSelectOrderDetails" 
                                                     AllowSorting="true" AllowFilteringByColumn="true" > 
                                        <MasterTableView AutoGenerateColumns="False" DataSourceID="dsSelectOrderDetails">  
                                            <Columns> 
                                                <telerik:GridBoundColumn DataField="ItemNum" HeaderText="Item Number"   
                                                    SortExpression="ItemNum" UniqueName="ItemNum" /> 
                                                  
                                                <telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity"   
                                                    SortExpression="Quantity" UniqueName="Quantity" /> 
                                            </Columns> 
                                        </MasterTableView> 
                                        <HierarchySettings ExpandTooltip="Expand this Order to see item detail." /> 
                                    </telerik:RadGrid> 
                                </NestedViewTemplate> 
                            </MasterTableView> 
                        </telerik:RadGrid> 
Is there an easy way to load the delete button dynamically as the grid is filled with data based on the value of the order status?  At this point, even a starting point would be helpful...
TSCGlobal
Top achievements
Rank 1
 answered on 29 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?