Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
ok after clearing temp files, websites caches, rebuilding, creating dumming projects, I can confirm that 2008.3.1314.2 is doing something wacky with regards to radopen() function. It doesn't even run on Telerik's demo site. 
http://demos.telerik.com/aspnet-ajax/window/examples/usingurlforserverarguments/defaultcs.aspx

I have a production site and development.. after using various file compare tools I can confirm at this time that the only difference between my two sites is the telerik.web.ui.dll. On my production server I am running 2008.3.1125.2. on my dev (local) machine, I am running 2008.3.1314.2. I get no JS errors. What happens is that the first window will open but subsequent detail calls will fail.

I thought i was losing my mind after an hour of file comparing for the difference and then tested Teleriks sample and the same thing occurs for me at least. I am pretty sure it is not my version of IE causing the error as my production site works fine for RadOpen() in the same browser session.
Anyway.. using IE7.0.5730 in an intranet profile (low security)

some code
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default" InitialBehavior="None" Left="" Top="">  
</telerik:RadWindowManager> 
 
<script type="text/javascript">  
         
    function openRadWindow(ApplicationID)  
        {  
            var oWnd = radopen("PopupPage.aspx?ApplicationID=" +ApplicationID, "RadWindow1" );  
             oWnd.setSize(500,440);  
            oWnd.center();  
        }  
    </script> 
<Radgrid...> 
        <telerik:GridTemplateColumn> 
        <ItemTemplate> 
                    <href="#" onclick="openRadWindow('<%# DataBinder.Eval(Container.DataItem, "ID") %>'); return false;">  
Details</a> 
        </ItemTemplate> 
        </telerik:GridTemplateColumn> 
<.../RadGrid> 
 
 

Please let me know if you have a solution or if I am just totally insane. Also tested on seperate machine, IE8 and the following link 
http://demos.telerik.com/aspnet-ajax/window/examples/usingurlforserverarguments/defaultcs.aspx
Same problem.
cheers guys/gals.. (don't you love Monday! )



mac
Top achievements
Rank 1
 answered on 17 Feb 2009
2 answers
123 views
I am having a problem grouping in a radgrid when the column that is grouped contains null values.  Each record with a null value shows all the other records with null values (instead of in one group).  For example, if this is my recordset:

Firstname        Alias
Adam               NULL
Randy              NULL
Sam                 NULL

If I group by Firstname, then Alias, I shoud get this result:

Adam:
        Adam
Randy:
        Randy
Sam:
        Sam

But this is what I get:

Adam:
        Adam
        Randy
        Sam
Randy:
        Adam
        Randy
        Sam
Sam:
        Adam
        Randy
        Sam

How can I correct this grouping bug?  The version of Telerik we use is 2008.2.723.35
Randy
Top achievements
Rank 1
 answered on 17 Feb 2009
1 answer
80 views
Hi! This is my question: How can I refresh a radGrid after closing a radWindow?
This is what I'm doing:
I have a masterpage in here a call a page that contains a RadGrid and I'm using Custom Controls in the EditForm.
In this particular custom control I'm calling a radWindow (I create this radWindow from the button click event in code behind and the radWindow is on a RadWindowManager) after I cliked a button, when the radWindow shows up I display another RadGrid, so the user can select a row and clicks a button that should close the radWindow and return the selected value into a Textbox localize into the Custom Control.
My questions are this:
How can I close the radWindow after clicking a button from the code behind? Can I do this from the code behind or I have to do it from the client-side?
How can I return the selected value into the textbox and refreshing the radGrid?

I'd thank you if can you help me, this is kind of urgent .

Thanks, 
Liza
Georgi Tunev
Telerik team
 answered on 17 Feb 2009
4 answers
294 views
We need a grid in which the user can drag rows to reorder them, except for the first few rows, which must remain fixed.

I thought I'd figured out how to do this in OnRowSelecting, as described in this thread: http://www.telerik.com/community/forums/aspnet-ajax/grid/undraggable-rows.aspx

Unfortunately, that depends upon out setting Enabled=false in OnItemDataBound().  If the row is disabled, it can't be edited, and we need these rows to be editable, even if they can't be reordered.

I had thought that if I added a boolean column "isFixed" to the datasource, or a hidden GridBoundColumn to the grid, I'd be able to access one or the other in OnRowSelecting.
function onRowSelecting(sender, args) { 
   var item = args.get_gridDataItem(); 
   var element = item.get_element(); 
   var dataItem = item.get_dataItem(); 
}

Unfortunately, element does not contain the hidden GridBoundColumn, so I can't access it.  And get_dataItem() returns null.

Looking through your examples, the only ones that show get get_dataItem() being called are in OnRowDataBound().

Is there some way to access the underlying row data in OnRowSelecting()?


Jeff
Top achievements
Rank 1
 answered on 17 Feb 2009
4 answers
151 views
Hi,

We are thinking of modifying the scope of the features from "Web" to "Site", just so that whenever we activate one time at the site collection level, the feature becomes available to all subsites that we create after the fact.

Is this a supported scenario?  What's the correct procedure?  Can we just go ahead and modify feature.xml? 

Thanks.

Peter
Peter
Top achievements
Rank 1
 answered on 17 Feb 2009
2 answers
117 views
Adding the code there doesn't do anything.

If the user used [Select] for a file, automatically generate another blank entry below (avoid having them click on [Add])

OnClientFileSelected="checkExtension"

      function checkExtension(radUpload, eventArgs) [
          radUpload.addFileInput;
          var input = eventArgs.get_fileInputField();
          if (!radUpload.isExtensionValid(input.value)) [
              var inputs = radUpload.getFileInputs();
              for (i = 0; i < inputs.length; i++) [
                  if (inputs[i] == input) [
                      alert(input.value + " does not have a valid extension.");
                      radUpload.clearFileInputAt(i);
                      break;
                  ]
              ]

          ]
      ]
Lenny_shp
Top achievements
Rank 2
 answered on 17 Feb 2009
4 answers
215 views
[Edit: I just realized the title of the post was wrong, it should have read: "RadTimePicker Client-Side validation issue" - Feb.16, 2009]

Hi, I have an issue regarding client-side validation of RadTimeInput with CompareValidators.

The compareValidation always fails, for any value selected in the radTimePickers.
The only case where it doesn't fail, is when there is a starttime without an ending time.

It was based on the example available at:
http://www.telerik.com/help/aspnet-ajax/calendar_webpagesvalidation.html
but the DatePicker were replaced with time pickers.

Using the following code in an aspx file, it is possible to recreate this problem.

It was based on the example available at:http://www.telerik.com/help/aspnet-ajax/calendar_webpagesvalidation.html but the DatePicker were replaced with time pickers.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test3.aspx.vb" Inherits="test3" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"  
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form runat="server"
     
    <asp:ScriptManager runat="server"
    </asp:ScriptManager> 
     
    <asp:ValidationSummary runat="server" /> 
     
    <table bgcolor="#cccccc"
        <tr> 
            <td> 
                Start: 
            </td> 
            <td> 
                <telerik:RadTimePicker ID="StartTime" runat="server"
                </telerik:RadTimePicker> 
                <asp:RequiredFieldValidator runat="server" ID="validator1" ControlToValidate="StartTime" 
                    ErrorMessage="enter a starting time!" Enabled="false">    
                </asp:RequiredFieldValidator> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                End: 
            </td> 
            <td> 
                <telerik:RadTimePicker ID="EndTime" runat="server"
                </telerik:RadTimePicker> 
                <asp:RequiredFieldValidator runat="server" ID="validator2" ControlToValidate="EndTime" 
                    ErrorMessage="enter an ending time!" Enabled="false"
                </asp:RequiredFieldValidator> 
            </td> 
        </tr> 
        <tr> 
            <td> 
            </td> 
            <td> 
                <asp:CompareValidator ID="timeCompareValidator" runat="server" ControlToValidate="EndTime" 
                    ControlToCompare="StartTime" Operator="GreaterThan" Type="Date" ErrorMessage="The end time must be after the start one." 
                    Enabled="false"
                </asp:CompareValidator> 
            </td> 
        </tr> 
        <tr> 
            <td colspan="2"
                <asp:Button runat="server" Text="Submit" ID="Button1" OnClientClick="return OnClick();" /> 
            </td> 
        </tr> 
    </table> 
 
    <script type="text/javascript"
 
        function OnClick() { 
            ValidatorEnable(document.getElementById("<%=validator1.ClientId%>"), true) 
            ValidatorEnable(document.getElementById("<%=validator2.ClientId%>"), true) 
            ValidatorEnable(document.getElementById("<%=timeCompareValidator.ClientId%>"), true) 
 
            var isValid = Page_ClientValidate(); 
 
            ValidatorEnable(document.getElementById("<%=validator1.ClientId%>"), false) 
            ValidatorEnable(document.getElementById("<%=validator2.ClientId%>"), false) 
            ValidatorEnable(document.getElementById("<%=timeCompareValidator.ClientId%>"), false) 
 
            return isValid; 
        } 
 
    </script> 
 
    </form> 
</body> 
</html> 
 

Pavel
Telerik team
 answered on 17 Feb 2009
1 answer
93 views
I have an aspx with a panel on it, into which I load different user controls, which all works fine with Ajax etc
One of the controls is a grid with a link button in which is to be an edit button and when a user clicks it I raise an event in the parent page to load the edit usercontrol into the panel instead of the grid.

The help and documentation suggest using the item created event of the grid to hook up the Ajaxsetting in my RadAjaxManager, this seems to half work in that when I click the edit button I get the ajax loading panel over the entire parent panel but when it finishes it display the grid still.   If I click the edit button again it immediately displays the edit user control but not rendering entirely as it should.

Its as though the item created event is too late to be adding AJax settings.   Anyone got any suggestions on how to do this as its driving me mad?
Nikolay Rusev
Telerik team
 answered on 17 Feb 2009
4 answers
182 views
I am new to the Telerik controls and am trying to do something specific using Spell. I want to have multiple controls on a page that are checked for spelling errors (which is easy enough), but I would like for them to be checked individually and in sequence. In other words, check Control 1, do all fixes, then move on to Control 2, etc. without displaying the results from one control in another's dialog box.

I have been trying to use code like the following to achieve this:

var spell = $find("RadSpell1");   
for (var i=0; i < 2; i++) 
    spell.spellCheck(elements[i]); 
where elements contains the array of controls, or

spell.spellCheck(elementOne); 
spell.spellCheck(elementTwo); 

Each time, the spell check seems to somehow ignore the first control and focus on the second control. I can check both controls as normal or each one individually (without the other), so they appear to be set up correctly. I just cannot check one and then the other. Is this even possible? Am I missing something obvious here?

Thanks for any insight,
Scott


Scott
Top achievements
Rank 1
 answered on 17 Feb 2009
1 answer
101 views
Hello,

I am creating a RadWindow from codebehind like so:

 

private void showPopup(string url, string skin, int width, int height, bool isModal, bool isDraggable, bool hasCloseIcon)

 

{

 

RadWindow radwPopup = new RadWindow();

 

radwPopup.EnableEmbeddedSkins =

false;

 

radwPopup.VisibleStatusbar =

false;

 

radwPopup.ReloadOnShow =

true;

 

radwPopup.KeepInScreenBounds =

true;

 

radwPopup.NavigateUrl = url;

radwPopup.Skin = skin;

radwPopup.Width = width;

radwPopup.Height = height;

radwPopup.Modal = isModal;

 

 

if (hasCloseIcon)

 

radwPopup.Behaviors =

WindowBehaviors.Close;

 

radwPopup.VisibleOnPageLoad =

true;

 

 

 

popupUpdatePanel.ContentTemplateContainer.Controls.Add(radwPopup);

radwPopup.Visible =

true;

 

}

The problem is that the height can differ but the IFrame used by the RadWindow isn't
resizing with the specified Height. Is there a better way to achieve this or would i have
to somehow override the height of the IFrame with embedded CSS or use javascript?

I'm using a slightly altered version of the Web2.0 skin.

Kind regards,

Mark Dekker

Georgi Tunev
Telerik team
 answered on 17 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?