Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
354 views
I am opening a radwindow, a form is submitted in the radwindow, user closes the radwindow and then the parent should refresh but it doesn't seem to be refreshing the page or data for some reason...

<script type="text/javascript">
        function openRateOLWin(OLID) {
            var oWnd = radopen("/ContentZone/rateol.aspx?OLID=" + OLID, "RadWindow1");
            oWnd.setSize(640, 340);
        }


        function RefreshParentPage()//function in parent page
        {
            document.location.href = document.location.href;
        } 
    </script>

<telerik:radwindowmanager id="RadWindowManager1" showcontentduringload="false" visiblestatusbar="false"
        reloadonshow="true" runat="server" skin="Vista" enableshadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Move, Resize, Close" Skin="Vista" OnClientClose="RefreshParentPage"></telerik:RadWindow>
            
        </Windows>
    </telerik:radwindowmanager>
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2011
0 answers
89 views
Dear Telerik,

Could you please advice me on the following issue:

I need to highlight (print in red) the time value latest before the "DateTime.Now". I mean the time values in the left column of the scheduler. Can I do that somehow?

I see there is a server-side event TimeSlotCreated which allows me to do virtually everything with the time slots. Is there any similar event which makes it possible to adjust the cells of the time column? That would, I'm sure, resolve my issue...

Thank you very much!

- Stepan.
Stepan
Top achievements
Rank 1
 asked on 12 Sep 2011
3 answers
95 views
Hi,
we find problems at the moment working with reusable content.
In short: we don't get it working. Every change I make to the original document doesn't affect the places in the site wherever I make use of this document by using the reusable content webpart.

I'm not sure which version of the rad-editor we are using at the moment, but certainly not the latest one.
Stanimir
Telerik team
 answered on 12 Sep 2011
1 answer
48 views
test post.
Sebastian
Telerik team
 answered on 12 Sep 2011
2 answers
287 views
Hi
I read many posts but did not find an updated answer.

I want the Menu to align to the right, and I know how to do it.

However, when the sub-menus pop out, they exceed the div.
I want the sub-menus to also be right aligned, e.g.

Main Menu Item 1  |  Main Menu Item 2
          Submenu11            SubMenu21
          Submenu12            SubMenu22


Is this possible?

Thx
Kate
Telerik team
 answered on 12 Sep 2011
1 answer
111 views
Is there a way to modify the range which is visible on the Scheduler view? Ex. If I select September, it shows October 1-2 also, can I prevent it from showing the dates from any other month other than the one I am currently viewing? If so, what attributes need to be set?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2011
1 answer
161 views
I'm using a RadGrid to display rows where some of the columns are hidden by setting column.Display = false.  That's working fine.  The hidden columns contain data that is used in client-side JavaScript.  Again, that's working fine.

Some users drag over the displayed text and copy it (using ctrl-C) into another application.  If they drag over a single field, all is good.  However, when they drag over multiple fields that 'include' a hidden column, the hidden column's value is included as part of the copied text.  The user might drag over fields from a single row, or might drag over multiple rows.

Is there a way to prevent including the hidden column in the copied text while still having the value available to client JavaScript? (ie, setting Visible = false on the server is not really an option). 

Thanks,
Dave
Mira
Telerik team
 answered on 12 Sep 2011
1 answer
130 views
I have the following method which adds a new GridCalculatedColumn to my Grid.

protected void AddCalculatedColumn(string headerText, string expression, string dataFormatString, params string[] dataFields)
        {
            var calculatedColumn = new GridCalculatedColumn
            {
                DataFields = dataFields,
                HeaderText = headerText,
                Expression = expression,
                DataFormatString = dataFormatString,               
            };


            Product.Columns.Add(calculatedColumn);
        }

I pass 2 decimal values data fields and the expression is "{0}/({0}+{1})" and it throws a divide by 0 exception.

How to handle that when {0} or/and {1} is null then the total value which is displayed to be 0 instead of throwing this exception?

What can be set as an expression?

Thanks,
Pooya
Top achievements
Rank 1
 answered on 12 Sep 2011
1 answer
149 views

Hello All,

    I am developing a web application in which i have RadGrid. In the RadGrid Edit button, I am calling a Javascript function which will get the geocodes and writes in to the hidden fields. Now the problem is, If I put the alert message in that function,  I can see the geocodes properly. If i remove the alert message, the hidden fields are blank.

I guess the  probelm is, I am reading those hidden field values from code behind before the page loads completly.

Here is my javascript

        function initiate_geolocation() {  
                 navigator.geolocation.getCurrentPosition(handle_geolocation_query);  
                alert('delay to get the geocodes');
             return false;
         }

 

       function handle_geolocation_query(position){  
        enableHighAccuracy: true
                                
              
                  var lat = '<%=hidLat.ClientID %>';
                   var lon  = '<%= hidLong.ClientID %>';
                
                                           
                  document.getElementById(lat).value = position.coords.latitude;
              
                  document.getElementById(lon).value = position.coords.longitude;
                  
                 } 

And in the code behind, in the item data bound event

i added the attributes for the edit button and called the javascript function

  Dim editButton As ImageButton = DirectCast(item.FindControl("EditButton"), ImageButton)
  editButton.Attributes.Add("OnClick", "initiate_geolocation();")


Im trying to access those hidden fields in the update command event of the Radgrid

Is there something to do to let the form load completly and then read those hidden fields? How do I get out of this problem?

Appreciate the Help!

Thanks

Daniel
Telerik team
 answered on 12 Sep 2011
1 answer
113 views

Can we open a pannel from a button click?
Cat Cheshire
Top achievements
Rank 1
 answered on 12 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?