Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
90 views
Am getting an error when someone tried to click the expand icon next to a row while that row is in edit mode. It seems to be a databinding issue where it's looking for a field in the parent object for the detail object. If I cancel the current edit and then click the expand icon it works fine. What's the best way to solve this? I guess to me it would seem that hiding or disabling the expand icon for the row while in edit mode would be the best. Ideas?

Dan
Digital Man
Top achievements
Rank 2
 answered on 14 Sep 2010
1 answer
94 views

Hi,

When radgrid loads ona page it should not display filter option. When cilck the link button on commanditemtemplate it should display the filter option and when i click hide button it should hide the filter option. Can anyone help me how to do this?

Thanks
Babu

Dimo
Telerik team
 answered on 14 Sep 2010
1 answer
367 views
In the grid when a user clicks a field to sort for the first time how does one set the default order to be descending instead of ascending? What happens now is that when you click on any column that is not currently sorted it sorts initially as ascending. I would like it when they click to sort initially as descending, then ascending and then none. Thanks in advance.
Mira
Telerik team
 answered on 14 Sep 2010
6 answers
279 views
I'm putting my pages in the Toolbar, but it had several pages that have no problems running the hovered when I pass the mouse over the icon nothing happens!

I was commenting the code to find where was the problem.
When I place the CalendarExtender or MaskedEditExtender for running the Toolbar.

Just use this code that happens the problem.

<asp:TextBox ID="TextBoxDe" runat="server" Width="70px"></asp:TextBox>
<ajax:CalendarExtender ID="CalendarExtender2" runat="server" FirstDayOfWeek="Sunday"
    Format="dd/MM/yyyy" TargetControlID="TextBoxDe">
</ajax:CalendarExtender>
<ajax:MaskedEditExtender ID="MaskedEditExtenderDe" runat="server" AcceptNegative="None"
    ClearMaskOnLostFocus="true" CultureName="pt-BR" DisplayMoney="None" Mask="99/99/9999"
    MaskType="Date" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
    OnInvalidCssClass="MaskedEditError" TargetControlID="TextBoxDe">
</ajax:MaskedEditExtender>
 
 
<telerik:RadToolBar ID="radBotoes" runat="server">
    <Items>
        <telerik:RadToolBarButton runat="server" Text="Test 1">
        </telerik:RadToolBarButton>
        <telerik:RadToolBarButton runat="server" Text="Test 2">
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>

How solved this?
Peter
Telerik team
 answered on 14 Sep 2010
1 answer
187 views
hello,

my problem is, i am using the radgrid in that i am showing the status of each row (it is a hyperlink)
on click of status i am showing the radwindow in that i have option to change the status for that row.
on rad window i have 2 buttons Save and close on on save i am saving the status in database and redirecting to the parent page
while redirecting it should refresh the parent page and update the status of that row.
even on close button i want same ,

but now it is refreshing the page only first time when i open the radwindow and closed it but after i want to change the status of second row i am getting the jscript error "element parent node is null" and "Object doesnot support property or method" after this idid some changes,
i used  DestroyOnClose="true"  then it is showing the
 
my code is below on Parent page
i using the
<telerik:RadAjaxPanel ID="rjxPanel_PurchaseOrder" runat="server"
                    LoadingPanelID="RadAjaxLoadingPanel1" Width="100%" Height="100%" >
<tr>
        <td>
            <div id="RestrictionZone" class="module" style="margin-top: 4px; height: 300px; width: 400px;">
                    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="z-index:7001">
                        <Windows>
                            <telerik:RadWindow runat="server" ID="RadWindow1" ReloadOnShow="true"
                                ShowContentDuringLoad="true" Modal="true"
                                Height="560px" Width="620px" NavigateUrl="ManagePurchaseOrder.aspx"
                                Animation="Fade" />
                        </Windows>
                    </telerik:RadWindowManager>
            </div>
        </td>
        </tr>
function ChangeStatus(OrderID)
        {
           var EntityID =document.getElementById("ctl00_ContentPlaceHolder1_HiddenField_EntityID").value;
          // window.showModalDialog('ManageStatusChange.aspx?EntityID=' + EntityID + '&EntityType=PurchaseOrder&EntityKeyID='+OrderID , this, "status:no;help:no;overflow:auto;center:yes;dialogWidth:775px;dialogHeight:675px");
           var PopupWindow=radopen('ManageStatusChange.aspx?EntityID=' + EntityID + '&EntityType=PurchaseOrder&EntityKeyID='+OrderID , "RadWindow1");
           PopupWindow.Center();
        }
function refreshParent(arg)
        {
             //Get reference to RadAjaxManager on page  
            if (radManager == null)       
            var radManager = $find('<%= RadAjaxManager.GetCurrent(this).ClientID %>'); 
            //Fire ajax request (optionally pass an event arg value)
            radManager.ajaxRequest(arg);   
        }
in parentAspx.cs
#region RadAjax CodeBlock
 
        RadAjaxManager rjxManager = RadAjaxManager.GetCurrent(this);
        //Create a new delegate to handle the AjaxRequest event  
        rjxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(rjxManagerPurchaseOrder_AjaxRequest);
        rjxManager.AjaxSettings.AddAjaxSetting(rjxManager, rjxPanel_PurchaseOrder);
 
        #endregion
#region Rad Ajax Event
 
    protected void rjxManagerPurchaseOrder_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument == "Rebind")
        {
            Session["currentObject"] = null;
            RadGrid_Orders.Rebind();
        }
    }
 
    #endregion


and another page which will show in radwindow

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">  
 
 function GetRadWindow()
  {
       var oWindow = null;
             
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
             
            return oWindow;
   }
 
function closeRadWindow()  
{
 
    GetRadWindow().Close();    
}  
 function CloseAndRebind(args)
 {
      GetRadWindow().Close();
      GetRadWindow().BrowserWindow.refreshParent(args);
 }
 
</script>  
</telerik:RadCodeBlock>

and on close button :-
<asp:Button ID="btnClose_Top" runat="server" Text="Close"            
                        OnClientClick="javascript:closeRadWindow();return false;" />

and on save button

string script = "<script>CloseAndRebind('Rebind')</" + "script>";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "CloseAndRebind", script, false); 


PlZ plz tell the solution
Mira
Telerik team
 answered on 14 Sep 2010
1 answer
64 views
Hi Telerik Team,


                      Data is not binding when I use datatimebound column. Always saying "No records found"  when I filter using Date picker in datetimebound column. But, I can reterive the object list which contain 4 rows. But, It is not getting to rad grid.

Code :
Load Grid Function:

objSearchResultsDO =

new SearchResultsDO();

 

objSearchResultsDO = Pfizer.Clink.Business.Factory.

BusinessFactory.GetRequestTrackerService().GetAllRequestTracker(objSearchDO, ref _objPfizerClinkException);

 

grdSearch.DataSource = objSearchResultsDO.ResultsDO; // Contains 4 rows.

on Need_Datasource I am calling Load Grid function.


Thanks In Advance

Martin
Telerik team
 answered on 14 Sep 2010
6 answers
212 views
Hello,

I was testing a simple scheduler control scenario in visual studio.  In Visual studio 2010 everything works fine when using start without debug.  When I double click or right click the Add Appointment Form appears.

I published the site out to IIS 7 on Windows server 2008 R2 and when I double click the control or use the context menu (

Value

 

 

="CommandAddAppointment")  the page just refreshes and no form appears.

 

Peter
Telerik team
 answered on 14 Sep 2010
1 answer
94 views
hai,

I need an example for loading the appointments of different users on a single scheduler by simply choosing the name of the user from a drop down list. I attach the model of screenshot below. In Telerik demo custom resources doesn't have this model. pls give that model or url. Can anyone help me.
                                                              Thanks
Veronica
Telerik team
 answered on 14 Sep 2010
2 answers
185 views
Hello,

I am very new to telerik controls. I have to  make a modification to a project (not my implementation) where an ImageEditorDialog is opened in the following way:

                //Telerik File Browser Dialog
                this.DialogOpener1 = new RadDialogOpener();
                this.DialogOpener1.HandlerUrl = "~/Telerik.Web.UI.DialogHandler.axd";
                this.DialogOpener1.Window.Title = Utility.GetLanguageResource("ImagePicker_DisplayName");
/*
                 * 
                 *  ATTENTION: FileBrowser Dialog doesn't support IE6!!! - The URL isn't stored after selection! 
                 * 
                 */
  
                //Get the folders to display in the dialog
                SPListCollection listsOfTyp = this.Web.GetListsOfType(SPBaseType.DocumentLibrary);
                listsOfTyp.ListsForCurrentUser = true;
                listsOfTyp.IncludeRootFolder = true;
                ArrayList list = new ArrayList();
                foreach (SPList list2 in listsOfTyp)
                {
                    if (SharepointTelerikCustomProvider.IsNotSystemFolder(list2.RootFolder) && !list2.Hidden)
                    {
                        list.Add(list2.RootFolder.ServerRelativeUrl);
                    }
                }
  
                ImageManagerDialogParameters imdp = new ImageManagerDialogParameters();
  
                imdp.ViewPaths = (string[])list.ToArray(typeof(string));
                imdp.UploadPaths = (string[])list.ToArray(typeof(string));
                imdp.DeletePaths = (string[])list.ToArray(typeof(string));
                imdp.MaxUploadFileSize = 5000000;                
                imdp.FileBrowserContentProviderTypeName = typeof(SharepointTelerikCustomProvider).AssemblyQualifiedName;
                  
                DialogDefinition imageManager = new DialogDefinition(typeof(ImageManagerDialog), imdp);
                imageManager.ClientCallbackFunction = txtUrlNew.ClientID + "ImageManagerFunctionPU";
                imageManager.Width = Unit.Pixel(649);
                imageManager.Height = Unit.Pixel(300);
                  
                DialogOpener1.DialogDefinitions.Add("ImageManager", imageManager);           
                  
                  
  
                FileManagerDialogParameters imdp2 = new FileManagerDialogParameters();
                imdp2.ViewPaths = (string[])list.ToArray(typeof(string));
                imdp2.UploadPaths = (string[])list.ToArray(typeof(string));
                imdp2.DeletePaths = (string[])list.ToArray(typeof(string));
                imdp2.MaxUploadFileSize = 5000000;
                imdp2.FileBrowserContentProviderTypeName = typeof(SharepointTelerikCustomProvider).AssemblyQualifiedName;
                DialogDefinition imageEditor = new DialogDefinition(typeof(ImageEditorDialog), imdp2);
                imageEditor.Width = Unit.Pixel(649);
                imageEditor.Height = Unit.Pixel(300);
                DialogOpener1.DialogDefinitions.Add("ImageEditor", imageEditor);
                this.Controls.Add(DialogOpener1);
  
  
                Button browseButton = new Button();
                browseButton = new Button();
                browseButton.Text = "Browse";
                browseButton.CssClass = "ms-ButtonHeightWidth";
  
  
                //var o = window.document.body.getElementsByClassName('ms-dlgFrameContainer')[0].style;
                browseButton.OnClientClick = "$find('" + DialogOpener1.ClientID + @"').open('ImageManager', {Colors: [], CssClasses: []});return false;";

 

I would like to add a scrollbar to the dialog. The following works not:
 

 

DialogOpener1.Style["overflow"] = "scroll";

  

 

Please help, I know it can not be hard but i can't figure out how to do it.
Thank you.

Anna 

 

 

 

 

 

Anna
Top achievements
Rank 1
 answered on 14 Sep 2010
2 answers
317 views
It used to be that adding this to a page

<style type="text/css"> 
    .RadGrid_Windows7 .rgCheck 
    { 
        display: none !important; 
    } 
</style>

would hide the checkbox in the header of a grid with a GridClientSelectColumn.

Now, it causes the header of the column to disappear for that column and all the other headers to shift left. See attached.

This broke in the last release or two.
apb
Top achievements
Rank 1
 answered on 14 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?