Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views

I have a design issue. When I get to the page for the first time the radupload control (in a usercontrol) looks normal. When I then delete the uploaded file and show the same user control again RadUpload looks strange. The button fall down and to the left of the input field a UL disc shows. If I set the EnableFileInputSkinning="false" the disc and the left-padding still be there. And the input field and the button height are very small. I would like it to retain its appearance. What’s the problem?
(2010.2.713.40)

Magnus
Top achievements
Rank 1
 answered on 26 Oct 2010
2 answers
109 views
Hi,

IM using radgrid with both contextmenu normal and filter but whe i try to use it, the combobox for the second condition is out of menu. See the image.

Best Regards,
Luis
Luis
Top achievements
Rank 1
 answered on 26 Oct 2010
1 answer
69 views
I can't get rid the content top padding in this example: http://twitpic.com/3110jq

<telerik:RadEditor
    ID="txtMessage"
    runat="server"
    Width="500px"
    Height="250px"
    EditModes="Design"
    ValidationGroup="NewPost"
    ContentAreaCssFile="~/Community/themes/EditorContentAreaStyles.css"
    Skin="Sitefinity">
    <Tools>
        <telerik:EditorToolGroup Tag="Forum">
            <telerik:EditorTool Name="AjaxSpellCheck" />
            <telerik:EditorTool Name="SelectAll" />
            <telerik:EditorTool Name="Cut" />
            <telerik:EditorTool Name="Copy" />
            <telerik:EditorTool Name="Paste" />
            <telerik:EditorTool Name="InsertLink" />
            <telerik:EditorTool Name="InsertDate" />
            <telerik:EditorTool Name="InsertTime" />
            <telerik:EditorTool Name="Bold" />
            <telerik:EditorTool Name="Italic" />
            <telerik:EditorTool Name="Underline" />
            <telerik:EditorTool Name="StrikeThrough" />
            <telerik:EditorTool Name="InsertOrderedList" />
            <telerik:EditorTool Name="InsertUnorderedList" />
        </telerik:EditorToolGroup>
    </Tools>
</telerik:RadEditor>

Rumen
Telerik team
 answered on 26 Oct 2010
1 answer
138 views
I am trying to see the demos at http://sharepoint.telerik.com

It is prompting for User Name and Password.

What is the user name and password. If anyone knows, please post it.

Telerik, please update the user name and password in the Web site.

Thanks,

Tsvetoslav
Telerik team
 answered on 26 Oct 2010
2 answers
127 views
Hi

Can you confirm if the radEditor supports spell checking as you type i.e. like Microsoft Word where red lines appear beneath incorrectly spelled words as you type them.

thanks
Phil
Top achievements
Rank 1
 answered on 26 Oct 2010
1 answer
52 views
Hi,
 I have Devloped Composit control(RADMaskedTExtbox,RadButton).i have written javascript as Follows in Composit Control Test page

var

 

 

Input1 = $find("<%= TextBox1.ClientID %>");

 

Input1.SetValue(15);

It is throughing an error Null object.

Please help me how to resolve this

Radoslav
Telerik team
 answered on 26 Oct 2010
1 answer
65 views

Hello,

I'm experiencing some trouble in the google-like filtering demo ( http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid ).

The ItemRequested event is never fired, Loading statement stands forever without displaying any results.

This is my implementation of the gridboundcolumn :

protected override void SetupFilterControls(TableCell cell)

{

    base.SetupFilterControls(cell);

    cell.Controls.RemoveAt(0);

    RadComboBox combo = new RadComboBox();

    combo.ID = ("RadComboBox1" this.DataField);

    combo.ShowToggleImage = false;

    combo.Skin = "WebBlue";

    combo.EnableLoadOnDemand = true;

    combo.AutoPostBack = false;

    combo.MarkFirstMatch = true;

    combo.Height = Unit.Pixel(100);

    combo.ItemsRequested += new RadComboBoxItemsRequestedEventHandler(this.combo_ItemsRequested);           

    combo.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(this.list_SelectedIndexChanged);

    //cell.Controls.Clear();

    cell.Controls.AddAt(0, combo);

    cell.Controls.RemoveAt(1);

}

 

//RadGrid will call this method when the value should be set to the filtering input control(s)

protected override void SetCurrentFilterValueToControl(TableCell cell)

{

    base.SetCurrentFilterValueToControl(cell);

    RadComboBox combo = (RadComboBox)cell.Controls[0];

    if ((this.CurrentFilterValue != string.Empty))

    {

        combo.Text = this.CurrentFilterValue;

    }

}

 

//RadGrid will cal this method when the filtering value should be extracted from the filtering input control(s)

protected override string GetCurrentFilterValueFromControl(TableCell cell)

{

    RadComboBox combo = (RadComboBox)cell.Controls[0];

    return combo.Text;

}

 

private void combo_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)

{           

    ((RadComboBox)o).DataTextField = this.DataField;

    ((RadComboBox)o).DataValueField = this.DataField;

 

    if (this.UniqueName == "Autore")

    {

        try

        {

            ((RadComboBox)o).DataSource = MYSOLUTION.DataLayer.GestioneAnomalie.GestioneAnomalieDataProvider.GetAutori(e.Text);

        }

        catch (Exception ex)

        {

            throw (ex);

        }

    }

    else if (this.UniqueName == "Note")

    {

        try

        {

            ((RadComboBox)o).DataSource = MYSOLUTION.DataLayer.GestioneAnomalie.GestioneAnomalieDataProvider.GetNote(e.Text);

        }

        catch (Exception ex)

        {

            throw (ex);

        }

    }

    ((RadComboBox)o).DataBind();

}

 

private void list_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

{

    GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;

    if ((this.UniqueName == "Index"))

    {

        //this is filtering for integer column type

        filterItem.FireCommandEvent("Filter"new Pair("EqualTo"this.UniqueName));

    }

    //filtering for string column type

    filterItem.FireCommandEvent("Filter"new Pair("Contains"this.UniqueName));

}       


RadGrid is in an ASCX file, it is placed in a RadAjaxPanel. A RadAjaxManager is also present down below the RadGrid, outside of the Ajax Panel.

<telerik:RadGrid

    ID="RadGridGestioneAnomalie"

    runat="server"

    AutoGenerateColumns="False"

    AllowFilteringByColumn="true"

    DataSourceID="LinqDataSourceAnomalie"

    GridLines="Both"

    Skin="WebBlue"

    AllowMultiRowSelection="True"

    AllowMultiRowEdit="True"   

    SortingSettings-SortedBackColor ="AliceBlue"

    SortingSettings-SortToolTip ="Ordina in base ai valori di questa colonna"

     

    ShowStatusBar="true"

    StatusBarSettings-LoadingText "Caricamento in corso"

    StatusBarSettings-ReadyText "Gestione Anomalie"

    PageSize="50"          

    PagerStyle-ForeColor="Black"

    PagerStyle-Position="TopAndBottom"  

    PagerStyle-AlwaysVisible="true"    

     

    EnableLinqExpressions="true"

    oninit="RadGridGestioneAnomalie_Init"

    onitemdatabound="RadGridGestioneAnomalie_ItemDataBound"

    onitemcommand="RadGridGestioneAnomalie_ItemCommand"

    oneditcommand="RadGridGestioneAnomalie_EditCommand"

    onitemcreated="RadGridGestioneAnomalie_ItemCreated"

    OnSortCommand="RadGridGestioneAnomalie_SortCommand"

    OnColumnCreating="RadGridGestioneAnomalie_ColumnCreating"

    oninsertcommand="RadGridGestioneAnomalie_InsertCommand"

    OnPreRender="RadGridGestioneAnomalie_PreRender"

    >

    <ExportSettings IgnorePaging="true" OpenInNewWindow="true" FileName="GestioneAnomalie" ExportOnlyData="true">

                    <Pdf FontType="Subset" PaperSize="Letter" AllowPrinting="true" />

                    <Excel Format="Html"  />

                    <Csv ColumnDelimiter="Comma" RowDelimiter="NewLine"  />

    </ExportSettings>

    <MasterTableView

     

        GroupLoadMode ="Client"

        HierarchyLoadMode="Client"      

                        CurrentResetPageIndexAction="SetPageIndexToFirst"         

        VirtualItemCount="50" 

        datakeynames="ID_Anomalia"

        datasourceid="LinqDataSourceAnomalie" 

        CommandItemDisplay="TopAndBottom" 

        GroupHeaderItemStyle-BackColor="LemonChiffon"

        AllowPaging ="true"

        AllowCustomSorting "true"

        AllowFilteringByColumn "true"

        AutoGenerateColumns="false"

        AllowSorting ="true"

        AllowNaturalSort="false" 

        PagerStyle-Mode="NextPrevNumericAndAdvanced"

        PagerStyle-BackColor="LightGray"

        PagerStyle-ForeColor="Black"

        PagerStyle-Position="TopAndBottom"

                                 

        Name="Anomalie"

        NoMasterRecordsText="Nessuna anomalia da mostrare"

        AllowAutomaticDeletes="True"

        AllowAutomaticUpdates="True" AllowAutomaticInserts="True"

        CanRetrieveAllData="True"                

        >


In the Page_Load, I pull out every column and later I put my personal dropdownfiltercolumn just for those column that has got particular UniqueName... here there's the code-behind :

protected void Page_Load(object sender, EventArgs e)

{

    EnsureUpdatePanelFixups();

 

    codiceProcesso = this.Page.Request.QueryString.Get(URLFactory.Param_ProcessoRilevatore);

 

    if (!(UserRole.isControlloQualita() || UserRole.isRilevatoreDelProcesso(codiceProcesso) || UserRole.isValidatoreDelProcesso(codiceProcesso))) 

    {

        // Per ora disabilito

        RadGridGestioneAnomalie.Visible = false;

        //RadGridTotaliOperazioni.Visible = false;

    }

 

     

    RadGridGestioneAnomalie.MasterTableView.IsItemInserted = false;

     

    LeggiParametriRicerca();

 

     

    #region Creazione Filtro DropDown

     

    if (!IsPostBack)

    {

        _rgSupporto = new List<GridColumn>();

        foreach (GridColumn colonna in RadGridGestioneAnomalie.MasterTableView.Columns)

        {

            _rgSupporto.Add(colonna);

        }

 

        RadGridGestioneAnomalie.MasterTableView.Columns.Clear();

 

        if (_rgSupporto.Count > 0)

        {

            foreach (GridColumn col in _rgSupporto)

            {

                if ((col.UniqueName == "Autore") || (col.UniqueName == "Note"))

                {

                    DropDownFilter gridColumn = new DropDownFilter();

                    this.RadGridGestioneAnomalie.MasterTableView.Columns.Add(gridColumn);

                    gridColumn.DataField = col.HeaderText;

                    gridColumn.HeaderText = col.HeaderText;

                }

                else

                    this.RadGridGestioneAnomalie.MasterTableView.Columns.Add(col);

            }

        }

    }


any help is appreciated

thanks
Giovanni

 

Pavlina
Telerik team
 answered on 26 Oct 2010
2 answers
145 views
Finally figured out how to get the code on the master page to deal with this... Would delete this post, but I do not see an option...










I have master page and on this page I have a javascript section that I need to have search the current page to see if a radgrid is on that page.

I tried 
   var control = document.getElementById('<%= RadGridStudents.ClientID %>');
                if (control == null) {
but it returns an error because the grid is not there - of course.



What is the best way in javascript to see if the current page has an element on it before continuing...

Mira
Telerik team
 answered on 26 Oct 2010
2 answers
109 views
Hi guys :)

Im having trouble positioning the RadMenu where I want it in my DNN skin.

So far, I have it positioned fine in FF and IE8, but in IE7/6, the menu magically appears about 20px higher than its meant to. Im using the backdated IE renderer at : http://ipinfo.info/netrenderer/index.php to test my menu.

Im a little confused as to why its sitting so high in IE7/6, but perfect in IE8/FF.

Any hints?

Ill post my CSS below, THANKS!!

Test URL is at :
http://ccngroup.com.au.dnnmax.com/skintest.aspx

--SkinObject Code--

<div style="float:right; width: 100%;"><dnn:RADMENU id="dnnRADMENU" runat="server" <br>                            Skin="Menu"<br>                            EnableEmbeddedSkins="false"  <br>                            CollapseDelay="500" <br>                            ShowPath="True"<br>                            Width="100%"<br>                            Flow="Horizontal"<br>                            Align="Right"<br>                            ImagesOnlyMenu="false"<br>                            EnableAdminMenus="true"<br>                        /></div><br>


-- CSS Code --

/* RADMenu */
.rwMenu{ text-align:right; clear:both;width:100%;padding:0px 0px 0px 0px; z-index:999 !Important;}
.Admin .rwMenu{clear:both;width:100%;padding:0px 0px 0px 0px;}
.RadMenu{float: none !Important; width:100%;}
.rmRootGroup{ width:100%; margin:0px; padding: 0px;}

/* Root Level - Menu Items */
.RadMenu_Menu .rmRootGroup .rmItem { padding:0px; border:#0F0; float: right;}
.RadMenu_Menu .rmRootGroup .rmItem .rmLink{padding:0px;}
.RadMenu_Menu .rmRootGroup .rmItem .rmLink:hover{text-decoration:none;}
.RadMenu_Menu .rmRootGroup .rmItem .rmLink .rmText { font-weight:normal ;font-size:12px; line-height:33px;font-family: Arial, sans-serif, Verdana; text-transform:uppercase; color:#FFF;cursor:pointer;}
.RadMenu_Menu .rmRootGroup .rmItem .rmLink:hover .rmText{color: #000000;}
.RadMenu_Menu .rmRootGroup .rmItem .rmLink:hover img{ cursor: pointer;}
.RadMenu_Menu .rmRootGroup .rmItem .rmFocused .rmText{color: #FFFFFF;}

/* Child Level - Menu Items */

.RadMenu_Menu .rmGroup{ margin:0px; padding:0px; width: 125px;text-align:center; border-bottom: 1px solid #FFF; border-left: 1px solid #FFF; border-right: 1px solid #FFF;}
.RadMenu_Menu .rmGroup .rmItem{ background-color:#b9122b; padding:0px;margin:0px; width: 125px; text-align:center; }
.RadMenu_Menu .rmGroup .rmItem:hover{ cursor:pointer; background-color:#FFF;}

.RadMenu_Menu .rmGroup .rmItem .rmLink{text-decoration:none;padding:0px;margin:0px; text-align:center; width: 125px;}
.RadMenu_Menu .rmGroup .rmItem .rmLink .rmText{color:#FFFFFF;line-height:24px;font-size:12px;font-weight:normal;padding:0px;margin:0px;text-align:center;}
.RadMenu_Menu .rmGroup .rmItem .rmLink:hover .rmText{color: #000000;}

.RadMenu_Default{z-index:7010 !Important;}
Peter
Telerik team
 answered on 26 Oct 2010
1 answer
79 views
The issue looked very bizzarre to me.
- I am using a RadAjaxManagerProxy on my user control. (I do have a RadAjaxManager on my MasterPage)
- I am using a Form Decorator (on Masterpage) which decorates "All" elements it can.
I have 3 buttons in the user control, mark up related to them is,
<ASP:BUTTON id="btSmptApply" runat="server" Width="100px"  Text="Apply"
Enabled="False" onclick="btSmptApply_Click" ValidationGroup="mail"
meta:resourcekey="btSmptApplyResource1"></ASP:BUTTON> &nbsp;
<ASP:BUTTON id="btVerifySmtp" runat="server" Width="100px"  Text="Verify"
ENABLED="False" onclick="btVerifySmtp_Click"  ValidationGroup="mail"

 meta:resourcekey="btVerifySmtpResource1"></
ASP:BUTTON>&nbsp;
<
ASP:BUTTON id="btSMTPCancel" runat="server" Width="100px"  Text="Reset"
 CAUSESVALIDATION="False" onclick="btCancel_Click"
meta:resourcekey="btSMTPCancelResource1">
</
ASP:BUTTON>&nbsp;

The settings of these buttons in RadAjaxManagerProxy is,
<telerik:AjaxUpdatedControl ControlID="btSmptApply"></telerik:AjaxUpdatedControl>
<
telerik:AjaxUpdatedControl ControlID="btVerifySmtp"></telerik:AjaxUpdatedControl>
<
telerik:AjaxUpdatedControl ControlID="btSMTPCancel"></telerik:AjaxUpdatedControl>

When these lines are enabled, the buttons align Vertically automatically, the following html is inserted automatically for each button:
<div style="display: block;" id="ctl00_ctl00_ContentPlaceHolder1_ConfigureMailServer1_btVerifySmtpPanel">

When I comment out the above lines of RadAjaxManagerProxy, the buttons align horizontally(as I want them to be).
My Questions:
1. Why is this happening?
2. What does RadAjaxManager to do with Alignment?
3. I worked with conventional Ajax (xmlHttpRequest object) etc alot. What role does RadAjaxManager play? why is it needed in a webpage?

Please let me know as soon as possible. Thanks in advance.



Pavel
Telerik team
 answered on 26 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?