Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
378 views
How can I hide or show a radpane with javascript?

I dont see a visible or hide or show property on the clientside.

thanks
Svetlina Anati
Telerik team
 answered on 18 Dec 2009
3 answers
294 views
Hi Telerik guys !

I have two ROOTS within my RADFILE EXPLORER.

For example :-
        + ----- FTP 

        + ----- ROOT


Iam getting the DELETE option for FTP(I can delete the folder/file within the FTP)

What Iam here is loking for is NOT TO SHOW the DELETE option for ROOT. 

Below is the code Iam have written for this :--

 protected void Page_Load(object sender, EventArgs e)  
    {  
        try 
        {  
            MessageLabel.Text = "";  
            SuccessImage.Visible = false;  
 
 
 
            if (Session["UserID"] == null)  
            {  
                Session.Clear();  
                Response.Redirect("~/ExpiredMessage.aspx");  
            }  
 
            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "PopForReport", "function newWindow(url) { var popupWindow = window.open(url,'popUpWindow','height=700,width=600,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no, location=no,directories=no, status=yes'); return false; }", true);  
            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "ErrorHandler", "function handlerFunction(description,page,line) {return true;} window.onerror = handlerFunction;", true);  
            RadScriptManager.RegisterClientScriptInclude(Page, Page.GetType(),"pasword_encrypt", "script/encode.js");  
             
 
        }  
        catch (Exception ex)  
        {  
            //throw new Exception(ex.Message.ToString());  
            StackTrace stackError = new StackTrace(new StackFrame(true));  
            BLLError.SetErrorProperties(ex.Message, stackError, short.Parse(Session["UserID"].ToString()));  
        }  
 
 
        GetMappedPath GMP = new GetMappedPath();  
 
        Dictionary<string, string> mappedPathsInConfigFile = GMP.GetMappingsFromConfigFile();  
        //string DocumentPath = "";  
        string[] DocumentPath = new string[2];  
        int index = 0;  
        foreach (KeyValuePair<string, string> mappedPath in mappedPathsInConfigFile)  
        {  
            DocumentPath[index] = mappedPath.Value.Replace("/", "\\");  
            index += 1;  
        }  
 
        string[] viewPaths = new string[] { DocumentPath[1], DocumentPath[0]};  
        //string[] uploadPaths = new string[] { DocumentPath[1], DocumentPath[0]};  
        string[] deletePaths = new string[] { DocumentPath[1] };  
 
 
 
        FTPManagementRadFileExplorer.Configuration.ContentProviderTypeName = typeof(FTPCustomFileSystemProvider).AssemblyQualifiedName;  
        FTPManagementRadFileExplorer.Configuration.ViewPaths = viewPaths;  
        FTPManagementRadFileExplorer.Configuration.DeletePaths = deletePaths;  
          
    }  
 

As from the above code :-

viewPaths ----> is for Both the FTP  &  Root

While,  deletePaths -----> is for FTP  only.


But when I run my application Iam not able to see the DELETE option removed from my ROOT option.

I dont know why is this so ??


Below is the SCREEN SHOT for this .


Please help ?

Ajay
Fiko
Telerik team
 answered on 18 Dec 2009
6 answers
349 views
I have a combobox that updates other parts of the form as the user changes the value. However, my users want to change the value with the keyboard, not just with the mouse. When they use the keyboard (with either the up/down keys, or the letters of the item to select (MarkFirstMatch is = to true)) the SelectedIndexChanged event does not fire unless they tab out of the control or hit enter.
I have tried attaching to the OnClientTextChange, OnClientSelectedIndexChanged and OnClientSelectedIndexChanging events, but those don't seem to be firing until the blur or enter either.
I did get it to work with OnKeyPressing, but that event seems to fire before teh MarkFirstMatch code executes so my code only sees the letters typed so far. So if they Type "C" I get C instead of the value "Cat" that C would match.

The drop down is responding to C and selecting cat, it's just firing all but the key pressing events only on blur or enter, and the keypressing event to early for my needs.

Is there some setting that I can change to make this control fire the event they way the standard ASP:dropdownlist does? (ie, on down arrow, or typing the first letter of the item to select)

Thanks.
John
Top achievements
Rank 2
 answered on 18 Dec 2009
7 answers
203 views
I'm designing a left side navigation pane for our site and I've been doing it with a TreeView control.....but I'm beginning to wonder if I should have used PanelBar instead.  Does anyone have any ideas about which is better for site navigation?  I don't really want to start over in PanelBar because I've already done a lot of skin work on the TreeView.  Perhaps TreeView was never meant for site navigation and I should be using PanelBar anyhow.  lol   Any suggestions or opinions would be appreciated.  Thanks guys.
Dimo
Telerik team
 answered on 18 Dec 2009
3 answers
140 views
Hi,

I have a iframe on my page, and a aspx page gets loaded onto the iframe. Since this aspx page has chart controls that takes quite some time, I would like to show a indication that the page is loading..

In chart control samples, I see a spinning icon in the middle of the chart. How could I do the similiar one?

Thanks.
Schlurk
Top achievements
Rank 2
 answered on 18 Dec 2009
3 answers
204 views
I have a grid control with Form template for editing, with EditMode="PopUp" and PopUpSettings-Modal="true". Now while click on add or edit button, edit template from(popup) will open. Then just press on enter button on keyboard, will open another edit template form.
My observation is even after opening edit form, control focus remains in parent. So while opening edit form I am explicitly set focus on control in edit form, and found working fine. But after click anywhere in edit form except any controls or just drag edit form, then press enter, will open new edit form.
Radoslav
Telerik team
 answered on 18 Dec 2009
1 answer
81 views
Hi,
I want to know how to blink the cursor inside the RadNumericTextBox.

Thanks
Ashish
Dimo
Telerik team
 answered on 18 Dec 2009
1 answer
170 views
Hello Support,

I use the Excel Export functionallity to Export from the Radgrid into Excel.

With Excel 2007 all works fine, but in Excel 2003, after exporting a few rows, the cell format ignored.

For example 4500 Rows , the first 15 are in correct format, the following  rows are in "general" Format. Because the Export will used later with macros, it is very importend to get the correct format in all rows

<telerik:RadGrid ID="rdgSelektionResult" ShowGroupPanel="true" AllowPaging="True" 
        Height="480px" Width="100%" AllowSorting="True" runat="server" PageSize="10" 
        AllowFilteringByColumn="false" AllowMultiRowSelection="False" EnableLinqExpressions="false" 
        GridLines="None" ShowStatusBar="true" OnPageIndexChanged="rdgSelektionResult_PageIndexChanged" 
        OnSortCommand="rdgSelektionResult_SortCommand" OnNeedDataSource="rdgSelektionResult_NeedDataSource" 
        OnColumnCreated="rdgSelektionResult_ColumnCreated"> 
        <clientsettings allowexpandcollapse="false" allowcolumnhide="true" allowcolumnsreorder="true" 
            allowdragtogroup="true" allowgroupexpandcollapse="true" allowkeyboardnavigation="true"> 
                    <Scrolling UseStaticHeaders="true"  AllowScroll="true" SaveScrollPosition="true" /> 
                 </clientsettings> 
        <groupingsettings showungroupbutton="true" /> 
        <pagerstyle mode="NextPrevNumericAndAdvanced"></pagerstyle> 
        <MasterTableView DataKeyNames="RowKey" EnableHeaderContextMenu="true" AllowMultiColumnSorting="true" 
            ShowGroupFooter="true" TableLayout="auto">                                                                        
                 <ItemStyle Width="100" /> 
                 <HeaderStyle Width="100" /> 
                 <AlternatingItemStyle Width="100" /> 
        </MasterTableView> 
                 
    </telerik:RadGrid> 


 public void ConfigureExport() 
        { 
            rdgSelektionResult.ExportSettings.ExportOnlyData = true;          
            rdgSelektionResult.ExportSettings.IgnorePaging = true; 
            rdgSelektionResult.ExportSettings.OpenInNewWindow = true; 
            rdgSelektionResult.ExportSettings.FileName = "Selektion_" + DateTime.Now.Hour + DateTime.Now.Minute + DateTime.Now.Second + "_" + base.Page.User.Identity.Name; 
        } 
 
 void HeaderControl_OnExportClick() 
        { 
            if (!string.IsNullOrEmpty(base.Request_CurrentRowKey)) 
            { 
               
                rdgSelektionResult.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.Html;                 
                ConfigureExport(); 
 
                base.Page.ApplyView(rdgSelektionResult, base.Page.CurrentListe.DefaultView, false, false, false,true); 
                rdgSelektionResult.MasterTableView.ExportToExcel();  
                 
            } 
        } 
 
 protected void rdgSelektionResult_ColumnCreated(object sender, GridColumnCreatedEventArgs e) 
        { 
            if (e.Column is GridBoundColumn) 
            { 
                GridBoundColumn column = (GridBoundColumn)e.Column; 
 
                if (column != null) 
                {  
                    if (column.DataType == typeof(Guid)) 
                        column.Display = false; 
 
 
                    if (column.UniqueName == "Land" || column.UniqueName == "ColumnLand") 
                    { 
                        column.HeaderText = Properties.Resources.Alle_Land;                         
                    } 
                    else if (column.UniqueName == "Sender" || column.UniqueName == "ColumnSender") 
                    { 
                        column.HeaderText = Properties.Resources.Alle_Sender;                                                 
                    } 
                    else if (column.UniqueName == "Sendung" || column.UniqueName == "ColumnSendung") 
                    { 
                        column.HeaderText = Properties.Resources.Alle_Sendung;                             
                    } 
                    else if (column.UniqueName == "Datum" || column.UniqueName == "ColumnDatum") 
                    { 
                        column.HeaderText = Properties.Resources.Alle_Datum; 
                        column.DataFormatString = "{0:dd.MM.yy}"; 
                    } 
                    else if (column.UniqueName == "dtmStart" || column.UniqueName == "ColumndtmStart") 
                    { 
                        column.HeaderText = "Zeit"; 
                        column.DataFormatString = "{0:HH:mm}"; 
                    } 
                    else if (column.UniqueName == "SendungsArt" || column.UniqueName == "ColumnSendungsart") 
                    { 
                        column.HeaderText = Properties.Resources.Alle_Sendungsart;                         
                    } 
                    //else if (column.UniqueName == "RW Sendung (Zielgruppe Standard)") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "MA Sendung (Zielgruppe: Standard)") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "RW (Beitrag) (Zielgruppe Standard)") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "MA Beitrag (Zielgruppe: Standard)") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Bemerkung") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Wettbewerb") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "WettbewerbOffizname") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "WettbewerbOrt") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    else if (column.UniqueName == "Wettbewerbsbeginn" || column.UniqueName == "ColumnWettbewerbsbeginn") 
                    { 
                        column.DataFormatString = "{0:dd.MM.yy}"; 
                    } 
                    else if (column.UniqueName == "Wettbewerbsende" || column.UniqueName == "ColumnWettbewerbsende") 
                    { 
                        column.DataFormatString = "{0:dd.MM.yy}"; 
                    } 
                    //else if (column.UniqueName == "Anlass") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Ereignis") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Sportart") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "SportartAnhang") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Disziplin") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    else if (column.UniqueName == "Ereignisbeginn" || column.UniqueName == "ColumnEreignisbeginn") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:dd.MM.yy}"; 
                    } 
                    else if (column.UniqueName == "Ereignisende" || column.UniqueName == "ColumnEreignisende") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:dd.MM.yy}"; 
                    } 
                    //else if (column.UniqueName == "EreignisGeschlecht") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "EreignisOrt") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Paarung") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Team 1") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Team 2") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    else if (column.UniqueName == "S-Dauer" || column.UniqueName == "ColumnS-Dauer") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:HH:mm:ss}"; 
                    } 
                    else if (column.UniqueName == "W-Dauer" || column.UniqueName == "ColumnW-Dauer") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:HH:mm:ss}"; 
                    } 
                    //else if (column.UniqueName == "Beitragsart") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    else if (column.UniqueName == "Beitragsbeginn" || column.UniqueName == "ColumnBeitragsbeginn") 
                    { 
                      //  column.HeaderText = ""; 
                        column.DataFormatString = "{0:HH:mm}"; 
                    } 
                    else if (column.UniqueName == "BeitragsEnde" || column.UniqueName == "ColumnBeitragsEnde") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:HH:mm}"; 
                    } 
                    //else if (column.UniqueName == "Beitragart") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Beitrag.Bemerkung") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Live") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "E-Index (SD)") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Sponsor") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Werbebotschaft") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Werbemittel") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "UnterWerbemittel") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    else if (column.UniqueName == "Klar" || column.UniqueName == "ColumnKlar") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:HH:mm:ss}"; 
                    } 
                    //else if (column.UniqueName == "seq_klar") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    else if (column.UniqueName == "Assoz" || column.UniqueName == "ColumnAssoz") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:HH:mm:ss}"; 
                    } 
                    else if (column.UniqueName == "Werbedauer" || column.UniqueName == "ColumnWerbedauer") 
                    { 
                        //column.HeaderText = ""; 
                        column.DataFormatString = "{0:HH:mm:ss}"; 
                    } 
                    //else if (column.UniqueName == "seq_assoz") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "seq") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Werbewert") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "Werbepreis") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "S-Index (SD)") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
                    //else if (column.UniqueName == "TKP") 
                    //{ 
                    //    column.HeaderText = ""; 
                    //    column.DataFormatString = ""; 
                    //} 
 
                 
                } 
              
                
            } 
        } 
 
 
 


Please Help to get a working export

Kind Regards

Daniel
Telerik team
 answered on 18 Dec 2009
3 answers
166 views
My page has 2 RadListboxes, I had written 2 transferred events for each listbox, it worked fine transferring from listbox1 to listbox2
it called RadListBox1_Transferred event but when transfering from listbox2 to listbox1 it calls RadListBox1_Transferred event again.
so I did this

Dim intRoleID As Integer
        Dim intUserID As Integer = CInt(UserDD.SelectedValue)
        Dim objUserRoleAssociation As clsUserRoleAssociation

        Dim blnFlag As Boolean
        Status.Visible = True

        Try
            For Each objItem As RadListBoxItem In e.Items
                intRoleID = objItem.Value

                Select Case e.SourceListBox.ID

                    Case "RadListBox1"
                        blnFlag = clsUserRoleAssociation.AddAssociation(intUserID, intRoleID)

                    Case "RadListBox2"
                        objUserRoleAssociation = New clsUserRoleAssociation(intUserID, intRoleID)
                        blnFlag = objUserRoleAssociation.RemoveAssociation()

                End Select
            Next
            If blnFlag Then

                Status.Text = "Success"
            Else

                Status.Text = "Failed"
            End If

        Catch ex As Exception
            Throw
        End Try

this works fine but now drag and drop  doesn't work to transfer from listbox2 to listbox1



Simon
Telerik team
 answered on 18 Dec 2009
1 answer
107 views
Hi, currently my data source does not provide me DataRecurrenceField. When I try to bind data source to scheduler control, it gives me  binding error for recurrence rule. Is this field mandatory. If not , what is the work around for that?

Error is as belows

System.Web.HttpException: DataBinding: <DataModel> does not contain a property with the name 'RecurrenceRule'.
Harsh Mehta
Top achievements
Rank 1
 answered on 18 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?