Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
325 views
Hi,

We need the rotator to cycle using both the buttons AND advance automatically every 5 seconds if nothing is clicked
(RotatorType = Buttons AND AutomaticAdvance). Is this possble?

Also, we would like to pause the automatic advance if the user's mouse is hovered over the rotator.

Thanks!
Leigh
Top achievements
Rank 1
 answered on 16 Apr 2012
1 answer
114 views
I am using RadProgressArea for a button click.

It disturb my page desigg when executed.

Is it possible to display the  RadProgressArea as modal popup.

Please guide me.


Genady Sergeev
Telerik team
 answered on 16 Apr 2012
5 answers
79 views
This is my first time using the RADCHART.

I am trying to create a simple line chart.  My data source pulls back 3 columns, Year, Month, and Accuracy (should display as a percent)

However, everything I try the graph is not right.  I basically want to the line be the Accuracy percent with the x axis being Year Month.

Any help would be great.
Petar Marchev
Telerik team
 answered on 16 Apr 2012
1 answer
144 views
How can I change the text of the 'ShowMoreResultsBox' area??
It generates '.rcbMoreResults span' element

Thanks
Shinu
Top achievements
Rank 2
 answered on 16 Apr 2012
2 answers
157 views
How is it possible to remove a filter from server side? For example I need to use combined filtering of columns.
if we have 5 columns and we filter 3 of them initially, this is fine however if the user changes the filter for one of the columns, the filter expression is incorrect (understandbly why because I am concatinating the existing expression along with the new one)

is there a way to remove a specific filter and then apply the new filter?

If (String.IsNullOrEmpty(Me.grdShiftObservation.MasterTableView.FilterExpression)) Then
   Me.grdShiftObservation.MasterTableView.FilterExpression = dtFromString
Else
   Me.grdShiftObservation.MasterTableView.FilterExpression =  Me.grdShiftObservation.MasterTableView.FilterExpression & " AND " & dtFromString
end if


so the initial expression maybe "DateTime >= #...#"
Then if the user selects a different filter then the expression will be:

"DateTime >= #...# AND DateTime <= #...#"

which is not what I want. In this case it would be DateTime <= #...#

so I just want to remove from the FilterExpression the related column filter completely
Tsvetina
Telerik team
 answered on 16 Apr 2012
1 answer
183 views
Hi!

I'm using Telerik RadControls for ASP.NET AJAX 2011 Q3 SP1 and I'm looking for a way to add rounded borders to RadTextBox WITHOUT CSS3, since this should also work specifically in IE8. RadDecorator is NOT an option and it seems to use the CSS3 border-radius property.

Are there any other ways to have rounded borders on the TextBoxes AND TextAreas of RadTextBox?

Thanks.
Tsvetina
Telerik team
 answered on 16 Apr 2012
1 answer
227 views
Hi,  I'm facing very weird problem with the column header and item alignment.
I need to use the UseStaticHeader ="true" and AllowcolumnResize ="true" for requirements point.
I also need to fix the size of each column header which depend on the data.
The problem i'm facing now is If the grid got a lot rows , the alignment issue not occur.
once the grid row have a few data(two or three rows) the header and item alignment got problem.
By the way ,i using version - 2012.1.215.40
Do you have any idea what happening in my grid.
Can i get an answer as soon as possible. I need an urgent solution :(
Please see my attach code and screen capture.
========================== Exception.ascx.cs=====================================================
protected void grdFatal_PreRender(object sender, EventArgs e)
      {
          if (grdFatal.Items.Count != 0)
          {
              GridColumn grdCellTower = grdFatal.MasterTableView.GetColumn("CellTowerId");
              grdCellTower.HeaderStyle.Width = Unit.Pixel(80);
 
              GridColumn grdDate = grdFatal.MasterTableView.GetColumn("Date");
              grdDate.HeaderStyle.Width = Unit.Pixel(80);
 
              GridColumn grdFWVer = grdFatal.MasterTableView.GetColumn("FWVer");
              grdFWVer.HeaderStyle.Width = Unit.Pixel(55);
 
              GridColumn grdLastStatus = grdFatal.MasterTableView.GetColumn("LastStatus");
              grdLastStatus.HeaderStyle.Width = Unit.Pixel(65);
 
              GridColumn grdMeterType = grdFatal.MasterTableView.GetColumn("MeterType");
              grdMeterType.HeaderStyle.Width = Unit.Pixel(95);
 
              GridColumn grdModemFWVer = grdFatal.MasterTableView.GetColumn("ModemFWVer");
              grdModemFWVer.HeaderStyle.Width = Unit.Pixel(120);
 
              GridColumn grdSerialNumber = grdFatal.MasterTableView.GetColumn("SerialNumber");
              grdSerialNumber.HeaderStyle.Width = Unit.Pixel(120);
 
              GridColumn grdStatusId = grdFatal.MasterTableView.GetColumn("StatusId");
              grdStatusId.HeaderStyle.Width = Unit.Pixel(55);
 
              GridColumn grdStatusName = grdFatal.MasterTableView.GetColumn("StatusName");
              grdStatusName.HeaderStyle.Width = Unit.Pixel(90);
 
              GridColumn grdTxJobId = grdFatal.MasterTableView.GetColumn("TxJobId");
              grdTxJobId.HeaderStyle.Width = Unit.Pixel(58);
          }
      }


========================== Exception.ascx=====================================================
function ColumnResizing(sender, args) {
 
                if (args._gridColumn._data.UniqueName == "CellTowerId" && args._gridColumn._columnResizer._currentWidth < 80)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "Date" && args._gridColumn._columnResizer._currentWidth < 80)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "FWVer" && args._gridColumn._columnResizer._currentWidth < 55)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "LastStatus" && args._gridColumn._columnResizer._currentWidth < 65)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "MeterType" && args._gridColumn._columnResizer._currentWidth < 95)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "ModemFWVer" && args._gridColumn._columnResizer._currentWidth < 120)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "SerialNumber" && args._gridColumn._columnResizer._currentWidth < 120)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "StatusId" && args._gridColumn._columnResizer._currentWidth < 55)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "StatusName" && args._gridColumn._columnResizer._currentWidth < 108)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "TxJobId" && args._gridColumn._columnResizer._currentWidth < 90)
                { args._cancel = true; }
                else if (args._gridColumn._data.UniqueName == "Error" && args._gridColumn._columnResizer._currentWidth < 600)
                { args._cancel = true; }     
    }
</script>
 
 
 <div id="divGrid" style="margin-left:5px;">
                <telerik:RadGrid ID="grdFatal" AllowMultiRowSelection="True" runat="server"
                        AllowPaging="True" OnSelectedIndexChanged="grdFatal_OnSelectedIndexChanged"
                        ShowStatusBar="True" Width="99%" onprerender="grdFatal_PreRender"
                        onitemcreated="grdFatal_ItemCreated"
                        onneeddatasource="grdFatal_NeedDataSource" CellSpacing="0"
                        GridLines="Horizontal" Skin="WebBlue" AllowSorting="True" >
                  <MasterTableView PageSize="10" TableLayout="Fixed">
                    <CommandItemSettings ExportToPdfText="Export to PDF" />
                    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column" />
                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" />
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="30px"
                            Resizable="False" >                       
                    <HeaderStyle Width="30px"></HeaderStyle>
                        </telerik:GridClientSelectColumn>
                    </Columns>
     
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column" />
                    </EditFormSettings>
                </MasterTableView>
                    <HeaderStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                    <ItemStyle Wrap="true" HorizontalAlign="Left" VerticalAlign="Middle" />
                <PagerStyle Mode="NumericPages" />           
                   
                 
                <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true" >
                <Selecting CellSelectionMode="None" AllowRowSelect="True" />                
                <Selecting AllowRowSelect="True" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true"></Scrolling>
                    <Resizing AllowColumnResize="true"  AllowRowResize="false" ResizeGridOnColumnResize="false"
                    ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="true"/>
                    <ClientEvents OnColumnResizing="ColumnResizing"/>
                </ClientSettings>  
 
            <FilterMenu EnableImageSprites="False"></FilterMenu>
            </telerik:RadGrid
                
        </div>
Tsvetina
Telerik team
 answered on 16 Apr 2012
6 answers
611 views
How can I customise the inplace or form-based editor for a field so that it shows a combobox with records from a datasource? I've tried editing the grid template and putting a combo+datasource in various places but all I get is basic text boxes.
Marc Fearby
Top achievements
Rank 1
 answered on 16 Apr 2012
1 answer
88 views
Hello,

  We have a Radgrid in one of our web pages. The user can upload the documents here and they should be able to view the documents they have already uploaded. I have a image button as one of the columns in the RadGrid. Idea being, when the user clicks on that button, a RadWindow should open.  I have the byte array of the document. With this, how do i open the document in a new window.
One way is to pass the byte array(which is saved in the database) to the RadWindow. How do i do this?

Appreciate the help
Thanks
Jagat
Top achievements
Rank 1
 answered on 16 Apr 2012
2 answers
322 views
Hello!
I know that this is an odd question, but i had been searching the forums with no luck. Something really weird is happening in my web app. i have a form with several controls (comboboxes, labels, textboxes, buttons, a radgrid, a radpanel and a radwindow. All third party controls are from Telerik) to keep some sort of order i have them grouped inside divs (divLeftMenu, divMain, divDetails, divGrid and divbuttons)   all this inside an ajax panel.
I use to open the radwindow from code behind because most of the time i need to perform server side operations right before open the radwindow. 
The other form (the buggy one) keeps the same structure, and here comes the weird part. None of my javascript functions run from code behind. not even a simple alert window. Needless to say i can't open my radwindow. 
The working form:
In the working form i had to place the radwindow out of the ajaxpanel and place all the other controls inside that panel.
The code behind that trigger the javascript function is in the RadPanelBar itemclick event. where i set the page that the radwindow will display. To open the radwindow i use the following
Protected Sub mnuLifts_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles mnuLifts.ItemClick
        Dim intDay As Integer = Date.Today.Day - 1
        Dim strURL As String = String.Empty
 
        AllParams = New clsParameters
         
        With AllParams
            .CustomerID = Me.cboCustomer.SelectedValue
            .CustomerName = Me.cboCustomer.Text
 
            Select Case  Cint(e.Item.Value)
                Case  1
                    .qryBase = "uspStoredProc1"
                    .BDate = CDate(Today.Date)
                    .Edate = CDate(Today.Date)
                    strURL = "xxxxxxxx.aspx"
                    AllParams.Title = Me.cboCustomer.Text & "text here ommited"
                Case 2
                    .qryBase = "uspStoredProc2"
                    AllParams.BDate = String.Empty
                    AllParams.Edate = String.Empty
                    strURL = "yyyyyyyyyy.aspx"
                    AllParams.Title = Me.cboCustomer.Text & "text here ommited"
                Case "3" ' lifts per month
                    .qryBase = "uspStoredProc3"
                    AllParams.BDate = CDate(DateAdd(DateInterval.Day, -intDay, Today.Date))
                    AllParams.Edate = CDate(Today.Date)
                    strURL = "zzzzzz.aspx"
                    AllParams.Title = Me.cboCustomer.Text & ControlChars.CrLf & "text here ommited " & AllParams.BDate.ToString & " to " & AllParams.Edate.ToString
               End Select
        End With
        ScriptManager.RegisterStartupScript(Me.Page, Page.GetType(), "radWin", "MyFunction(); return false", True)
        
    End Sub
The JS Function
<script type="text/javascript">
 
       function OpenCommun() {
 
           var wnd = $find("<%=dlgCommun.ClientID%>");
           wnd.setUrl("xxxxxxxxxxxxxx.aspx");
           wnd.show();
       }
 
       function GetRadWindow() {
           var oWindow = null;
           if (window.radWindow) oWindow = window.radWindow;
           else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
           return oWindow;
       }
 
       function CloseCommun() {
           GetRadWindow().close();
       }
       
   </script>

The buggy form:
Nothing happens if i do as above. the radwindow wont open.
To make it work manually (i mean by manually open the radwindow with a button and the OnClientClick) i have to place everything inside the ajaxpanel. 
I have tried radscriptblock, radwindows manager, Me.Page.ClientScript.RegisterStartupScript, ScriptManager.RegisterStartupScript, place the radpanel inside and outside of ajaxpanel, place the radwindow inside and outside. Add simple js functions to test if the problem is just with the js functions related to the radwindow or all of them.
Weird behaviour 1.
If i try to test for the script registration in the load event, the whole form freezes, comboboxes doesn't open, textboxes become readonly.
Weird behaviour 2.
Implementing the radscriptblock control run once, freezing the form and displaying the script text in the middle of the page.
To sum up: 
trying several different ways and i still can't do something as trivial as open a radwindow in an ajaxifixied form. 
Please if anyone can shade some light on this, will be so much appreciated.
Thanks!
Jakub
Top achievements
Rank 1
 answered on 15 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?