Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
Hi,

I have Autogenerated rad grid wherein i have implemented Footer feature. On load by default I am sorting on balance column. But after that If i click on any column sorting is not happening. I have added AllowSoting="True" in the rad grid.

Can anyone help in this?

Regards,
Medac
Shinu
Top achievements
Rank 2
 answered on 17 Jul 2009
6 answers
181 views
Hello,

I installed RadEditor for MOSS and RadControls for ASP.NET AJAX two days back. My main intention is to use RadEditor for my MOSS sites mainly for giving additional editor to my users for editing and publishing content. I have downloaded the trial version, and installation took place just fine. I have activated both the features viz. Using RadEditor to edit HTML Fields and Using RadEditor to edit ListItems. But I can't seem to use it no matter what I try. Here are few of my listed problems:

1.  When I add the telerik MOSS RadEditor webpart on a page, I do not see any editor controls for that webpart in IE (am using IE 7), but in firefox I do see them, three tabs in lower left corner called Design, HTML, Preview, but none of them works, I click on them, but nothing happens only in the status bar I keep seeing Javascript:Void(0); Isn't RadEditor compatible to IE??

2. In the list items, if I add/edit any item, I am able to see the entire RadEditor, but the body text area and all the editor controls are again disabled, so can't really do anything with them. This is atleast that I can see both in IE and Firefox.

Am I missing any settings here? I have installed the msi for the RadControls, and then added and deployed the solution file for MOSS RadEditor. Also added the dll and Rad Publishing control in one of the layout pages for the content management scenario. Please can somebody help me out of it, I really want to use it but can't seem to find how.
Priyanka Lachhwani
Top achievements
Rank 1
 answered on 17 Jul 2009
1 answer
164 views
any idea why the following throws a System.ArgumentException: Parameter is not valid.? basically, I have a grid, that when I click on the thumbnail, opens a radwindow which loads a page with the below code to generate a radrotator with a radbinary as an inner control. (first few lines are just retrieving the binary image data from the database, in this case sql server 2008, using the enterprise library.)
if (!string.IsNullOrEmpty(Request.QueryString["productID"])) 
            { 
                Database db = DatabaseFactory.CreateDatabase("sql"); 
                DbCommand mycommand = db.GetSqlStringCommand("SELECT mediaID,imageFull FROM core.productMedia WHERE (productID = @productID AND active=1 AND removed=0)"); 
                db.AddInParameter(mycommand, "productID", DbType.Int32, Request.QueryString["productID"]); 
                DataTable mytable = db.ExecuteDataSet(mycommand).Tables[0]; 
                Debug.WriteLine("number of media " + mytable.Rows.Count.ToString()); 
                if (mytable.Rows.Count > 0) 
                { 
                    RadRotator myrot = new RadRotator(); 
                     
 
                    foreach (DataRow myrow in mytable.Rows) 
                    { 
                        RadBinaryImage myimg = new RadBinaryImage(); 
                        myimg.DataValue = (byte[])myrow[1]; 
                        Debug.WriteLine("media " + myrow[0].ToString()); 
                        RadRotatorItem myitem = new RadRotatorItem(); 
                        myitem.Controls.Add(myimg); 
                        myrot.Items.Add(myitem); 
 
                    } 
                    Panel1.Controls.Add(myrot); 
                } 
            } 

Growls
Top achievements
Rank 1
 answered on 17 Jul 2009
8 answers
123 views
I have a RadComboBox that is in a Panel. The panel is set to visible=false onload. If the user checks a check box the panel is set to visible=true with Ajax. The first time this happens everything is fine, they can show it and hide it and it works. When they try to show it a second time the dropdown arrow is missing and all style appears to be gone. This ComboBox is not added dynamically it is always there on the page.

I have Ajax on the check box to show/hide the panel, if I remove that it works fine. 

<asp:Panel ID="Panel3" runat="server">
   <telerik:RadComboBox ID="rcbAirline" runat="server" Height="190px" Width="75px"
          DataTextField="Code" DropDownWidth="320" OnItemsRequested="AirlineCode_ItemsRequested">
      <HeaderTemplate>
        ......
      </HeaderTemplate>
      <ItemTemplate>
        ......
      </ItemTemplate>
   </telerik:RadComboBox>
</asp:Panel>


<telerik:AjaxSetting AjaxControlID="cbShowClaim">
  <UpdatedControls>
   <telerik:AjaxUpdatedControl ControlID="Panel3" LoadingPanelID="LoadingPanel_FormTable"/>
  </UpdatedControls>
</telerik:AjaxSetting>

I have looked at other posts but didn't see anything that solved my problem. Thanks!

jgig
Top achievements
Rank 1
 answered on 17 Jul 2009
4 answers
180 views
Hi, I have a RadWindow:
<radW:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007">  
   <Windows> 
      <radW:RadWindow ID="RadWindow1" runat="server" Left="" NavigateUrl="" SkinsPath="~/RadControls/Window/Skins" 
         Title="" Top="" /> 
   </Windows> 
</radW:RadWindowManager> 
It contains an aspx page:
RadWindow1.NavigateUrl = "~/Pages/PlotManagerWindow.aspx"
There is an User Control - myUC in the aspx page. And in myUC, there is an RadioButtonList.

My question is how can I maximize RadWindow when user click the RadioButtonList?

I have tried multi ways, add following code to myUC:
<script type="text/javascript">  
   function ExecuteWindowCommand()  
   {  
      var oWnd = GetSelectedWindow();  
      oWnd.Maximize();  
   }  
 
   function GetSelectedWindow()  
   {  
      var oManager = GetRadWindowManager();  
      return oManager.GetActiveWindow();  
   }  
</script> 
But it seems like GetSelectedWindow() can't find RadWindow, so return null.

And also this task can't be done from code-behind.

Any help is appreciated.
YongGang Che
Top achievements
Rank 1
 answered on 17 Jul 2009
4 answers
143 views
Hi. Can the FileUpload control be decorated?

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 16 Jul 2009
3 answers
163 views
Hi. I just upgraded from Q1 (2009_1_527) to Q2 (2009_2_701) RadControls for ASP.NET AJAX. With RadTextBox the hover style is not applied if I have a skin set. This is also happening with the RadDatePicker. Other controls like TextBox and Button have their styles applied (via RadFormDecorator). I tried placing the RadTextBox outside of my project and the style is appied okay. I also disabled the stylesheet that my webapp uses and the styles still aren't been appied. Am I missing something? Is there anything that would be stopping this? Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 16 Jul 2009
2 answers
93 views
I have an app that performs a submit on a page in one frame when a save button is clicked in another frame.

When I click save, the page is submitted but no content is sent by Editor.

If I add a "submit" button on the same page as editor, the content is submitted.

Is there a work-around? This functioned ok with Radgrid classic.

Dan Suceava
Top achievements
Rank 1
 answered on 16 Jul 2009
5 answers
96 views

I am testing my a page (/w grad) in FireFox 3.5 and got some un-expected behavior. Appreciate any feedback!

Thanks!

Hubert

The text in the grid are overlapped and some text are displayed under the grid (works fine in IE7):

  • NoFilter
  • Contains
  • DoesNotContain
  • StartsWith
  • EndsWith
  • EqualTo
  • NotEqualTo
  • GreaterThan
  • LessThan
  • GreaterThanOrEqualTo
  • LessThanOrEqualTo
  • Between
  • NotBetween
  • Here are the code segment:

     

     

    <telerik:RadGrid AutoGenerateColumns="False" ID="grdLeases" AllowFilteringByColumn="True"

     

     

     

     

     

    Width="1432px" AllowPaging="True" PageSize="20" AllowSorting="True" AllowMultiRowSelection="false"

     

     

     

     

     

    runat="server">

     

     

     

     

     

    <PagerStyle Mode="NextPrevAndNumeric" />

     

     

     

     

     

    <MasterTableView DataKeyNames="ID" EnableViewState="true" Width="100%" RowIndicatorColumn-Display="false" >

     

     

     

     

     

    <Columns>

     

     

     

     

     

    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" HeaderStyle-Width="20px"

     

     

     

     

     

    Reorderable="false" Resizable="false" AllowFiltering="false">

     

     

     

     

     

    <HeaderTemplate>

     

     

     

     

     

    </HeaderTemplate>

     

     

     

     

     

    <ItemTemplate>

     

     

     

     

     

    <asp:RadioButton ID="rdoSelectLease" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True"

     

     

     

     

     

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

     

     

     

     

     

    </ItemTemplate>

     

     

     

     

     

    </telerik:GridTemplateColumn>

     

     

     

     

     

    <telerik:GridBoundColumn HeaderText="Lease Number" DataField="LeaseNumber" UniqueName="LeaseNumber"

     

     

     

     

     

    SortExpression="LeaseNumber" AutoPostBackOnFilter="true"

     

     

     

     

     

    CurrentFilterFunction="Contains" ShowFilterIcon="false" />

     

     

     

     

     

    <telerik:GridBoundColumn HeaderText="LeaseVersion" DataField="LeaseVersion" UniqueName="LeaseVersion"

     

     

     

     

     

    SortExpression="LeaseVersion" AutoPostBackOnFilter="true"

     

     

     

     

     

    CurrentFilterFunction="Contains" ShowFilterIcon="true" />

     

     

     

     

     

    <telerik:GridBoundColumn HeaderText="Building" DataField="Company" UniqueName="Company"

     

     

     

     

     

    SortExpression="Company" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"

     

     

     

     

     

    ShowFilterIcon="false" />

     

     

     

     

     

    <telerik:GridBoundColumn HeaderText="Version Effective Begin" DataField="DateVersionEffective"

     

     

     

     

     

    DataFormatString="{0:dd/MM/yyyy}" UniqueName="DateVersionEffective" SortExpression="DateVersionEffective"

     

     

     

     

     

    AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo"

     

     

     

     

     

    ShowFilterIcon="false" />

     

     

     

     

     

    <telerik:GridBoundColumn HeaderText="Version Effective End" DataField="DateVersionEnding"

     

     

     

     

     

    ItemStyle-Wrap="false" DataFormatString="{0:dd/MM/yyyy}" UniqueName="DateVersionEnding"

     

     

     

     

     

    SortExpression="DateVersionEnding" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo"

     

     

     

     

     

    ShowFilterIcon="false" />

     

     

     

     

     

    <telerik:GridBoundColumn HeaderText="Description" DataField="Description" UniqueName="Description" ItemStyle-Wrap="false"

     

     

     

     

     

    SortExpression="Description" AutoPostBackOnFilter="true"

     

     

     

     

     

    CurrentFilterFunction="EqualTo" ShowFilterIcon="false" />

     

     

     

     

     

    <telerik:GridBoundColumn HeaderText="Tenant" DataField="AddressNumber" UniqueName="AddressNumber"

     

     

     

     

     

    ItemStyle-Wrap="false" HeaderStyle-Width="100%" SortExpression="AddressNumber"

     

     

     

     

     

    AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" />

     

     

     

     

     

    </Columns>

     

     

     

     

     

    </MasterTableView>

     

     

     

     

     

    <HeaderStyle Width="100px" />

     

     

     

     

     

    <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

     

     

     

     

     

    <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"

     

     

     

     

     

    AllowColumnResize="True"></Resizing>

     

     

     

     

     

    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1">

     

     

     

     

     

    </Scrolling>

     

     

     

     

     

    </ClientSettings>

     

     

     

     

     

    </telerik:RadGrid>

     

     

     

    and

     

     

    Protected Sub grdLeases_DataBinding(ByVal sender As Object, ByVal e As EventArgs) Handles grdLeases.DataBinding

     

     

    Dim col As GridBoundColumn

     

     

    Dim i As Integer = 0

     

     

    While i < grdLeases.MasterTableView.Columns.Count

     

     

    If (TypeOf (grdLeases.MasterTableView.Columns(i)) Is GridBoundColumn) Then

     

    col = grdLeases.MasterTableView.Columns(i)

     

    'col.HeaderText = "<nobr>" + col.HeaderText + "</nobr>"

     

     

    'col.DataFormatString = "<nobr>{0}</nobr>"

     

     

    End If

     

    i += 1

     

     

    End While

     

     

    'grdLeases.MasterTableView.SwapColumns(3, 4)

     

     

    End Sub

     

     

     

    hubert
    Top achievements
    Rank 1
     answered on 16 Jul 2009
    2 answers
    88 views
    I just upgraded to the latest version and for some reason my menu looks different.  I had created a custom style for my customers site and the new version didn't really remove the style, but the heights and widths of the menu don't seem to be working.

    Other than that, the colors are the same and the menu works as it should, its just really skinny.

    Any ideas?

    I upgraded from 2008.3.1105.35

    Thanks.

    King Wilder
    King Wilder
    Top achievements
    Rank 2
     answered on 16 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?