Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
121 views
Dear M Telerik,

I'm currently using a RadFileExplorer control two times in the same page. I have the configuration attributes EnableAsyncUpload="true". When I try to upload a file it works great. But when I try again, I'm unable to click the button to open the file browser. In the HTML code, there is no node <input type="file"> any more.

This is my specific code :
<telerik:RadFileExplorer runat="server" ID="ImageExplorer" Width="500" EnableCopy="true">
    <Configuration ViewPaths="~/Portals/0/fichiers/" UploadPaths="~/Portals/0/fichiers/" DeletePaths="~/Portals/0/fichiers/" AllowMultipleSelection="true" MaxUploadFileSize="1024000" EnableAsyncUpload="true"></Configuration>
</telerik:RadFileExplorer>

It has the same behaviour in both radFileExplorer.

Thanks in advance for your help.
Vessy
Telerik team
 answered on 06 Jan 2014
5 answers
278 views
Hello,

in my test scenario i insert a radbutton into the group header. This stuff is done in the following methods:

protected void RadGrid1_OnItemDataBound(object sender, GridItemEventArgs e)
       {
          _AppendButtonToHeader(e.Item);           
       }
 
       protected void RadGrid1_OnItemCreated(object sender, GridItemEventArgs e)
       {
          _AppendButtonToHeader(e.Item);
       }
 
       private void _AppendButtonToHeader(object item)
       {
           if (item is GridGroupHeaderItem)
           {
               var gridGroupHeaderItem = item as GridGroupHeaderItem;
               var dataCell = gridGroupHeaderItem.DataCell;
 
               var radButton = new RadButton();
               radButton.ButtonType = RadButtonType.StandardButton;
               radButton.Text = "do";
               radButton.Click += new EventHandler(radButton_Click);
 
               dataCell.Controls.Add(radButton);
               dataCell.Controls.Add(new LiteralControl(dataCell.Text));
           }
       }

When i load the page for the first time the 'click' on the 'do'-button does not fire a event. Neither in 'radButton_Click' nor in RadGrid1_ItemCommand'. After the second 'click' to the 'do'-button the event fires.
This behavior is very strange or i missed a  configuration.

Here ist the markup for the grid:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
                                 AutoGenerateColumns="false" CellSpacing="0" GridLines="None"
                                 ShowGroupPanel="True" OnNeedDataSource="RadGrid1_OnNeedDataSource"
                                 OnItemDataBound="RadGrid1_OnItemDataBound"
                                 OnItemCreated="RadGrid1_OnItemCreated"
                                 OnPreRender="RadGrid1_OnPreRender">
                    <ClientSettings AllowDragToGroup="True">
                    </ClientSettings>
                    <MasterTableView AutoGenerateColumns="False" GroupLoadMode="Server" GroupsDefaultExpanded="False">
                        <GroupByExpressions>
                            <telerik:GridGroupByExpression>
                                <SelectFields>
                                        <telerik:GridGroupByField FieldName="gl1" HeaderText="gl1" />
                                        <telerik:GridGroupByField FieldName="gl2" HeaderText="gl2" />
                                        <telerik:GridGroupByField FieldName="gl3" HeaderText="gl3" />
                                        <telerik:GridGroupByField FieldName="gl4" HeaderText="gl4" />
                                    </SelectFields>
                                <GroupByFields>
                                    <telerik:GridGroupByField FieldName="gl1" SortOrder="Ascending" />
                                    <telerik:GridGroupByField FieldName="gl2" SortOrder="Ascending" />
                                    <telerik:GridGroupByField FieldName="gl3" SortOrder="Ascending" />
                                    <telerik:GridGroupByField FieldName="gl4" SortOrder="Ascending" />
                                </GroupByFields>
                            </telerik:GridGroupByExpression>
                            
                        </GroupByExpressions>
 
                        <Columns>
                        <telerik:GridTemplateColumn HeaderStyle-Width="100px">                               
                                <ItemTemplate>
                                    <telerik:RadButton ID="RadButton1" runat="server" OnClick="OnClick" ButtonType="LinkButton" Text="plah" CommandName=""></telerik:RadButton>
                                    <telerik:RadButton ID="RadButton2" runat="server" OnClick="OnClick" ButtonType="LinkButton" Text="plah" ></telerik:RadButton>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn >
                                <telerik:GridButtonColumn HeaderText="Status" UniqueName="ImageColumn" ButtonType="ImageButton" HeaderStyle-Width="100px" />
                                <telerik:GridBoundColumn DataField="Forecast_Id" DataType="System.String" FilterControlAltText="Filter type1 column" HeaderText="ForecastId"  UniqueName="Forecast" />
                                <telerik:GridBoundColumn Display="False" DataField="Forecast_StdInt03" DataType="System.Int32" UniqueName="Status"  />
                        </Columns>
                     
 
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </RowIndicatorColumn>
 
                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                            <HeaderStyle Width="20px"></HeaderStyle>
                        </ExpandCollapseColumn>
 
                        <EditFormSettings>
                            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                        </EditFormSettings>
                    </MasterTableView>
 
                    <FilterMenu EnableImageSprites="False"></FilterMenu>
 
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
                </telerik:RadGrid>

Thanks in advance for the help.

Regards Uwe


Mathew
Top achievements
Rank 1
 answered on 06 Jan 2014
1 answer
175 views
I have <input type="file"> inside RadAjaxPanel.
When I post back, I get no files on server side.

I tried the workaround you suggest:
    <radscriptblock id="RadScriptBlock1" runat="server">
 <script type="text/javascript">
     // on upload button click temporarily disables ajax to perform
     // upload actions
     function conditionalPostback(sender, args) {
         if (args.get_eventTarget() == "<%= ButtonSubmit.UniqueID %>") {
             args.set_enableAjax(false);
         }
     }
 </script>
</radscriptblock>
    <telerik:radajaxpanel runat="server" id="RadAjaxPanel1" clientevents-onrequeststart="conditionalPostback">
 <telerik:RadUpload runat="server" id="RadUpload1" />
 <asp:Button id="Button1" runat="server" text="Upload" />
</telerik:radajaxpanel>


but I get "Access is denied" error.

How can I upload a file within this rad ajax panel?
Princy
Top achievements
Rank 2
 answered on 06 Jan 2014
5 answers
145 views
Hi,

I'm using RadMenu both in LTR and RTL directions.  In both menus, I have some menuitems that have text only, some that have text and icon, and some that are icon only.

In none of the themes does the mouseover line up correctly for the icon only menu items.
It is tolerable in some themes, but on other themes like Silk and Glow it looks horrible.

If you use the sample code below and play with having nothing in the text property of the items or an non-breaking space, you see it work differently and looks really messed up.

Note that I picked a random image off an icon site.  If it doesn't work, substitute any 16x16 image.

Bottom line is that I need a way to make sure that the mouseover on icon only menuitems line up properly under the icon.
<div>
    <telerik:RadMenu ID="RadMenuRTL" runat="server" Width="100%" RegisterWithScriptManager="true" Skin="Silk"
        dir="rtl" ClickToOpen="true" Flow="Horizontal">
        <Items>
            <telerik:RadMenuItem Text="" Value="1" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="" Value="2" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="With Text" Value="3" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="" Value="4" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>
    <telerik:RadMenu ID="RadMenu1" runat="server" Width="100%" RegisterWithScriptManager="true" Skin="Silk"
        ClickToOpen="true" Flow="Horizontal">
        <Items>
            <telerik:RadMenuItem Text="" Value="1" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="With Text" Value="2" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="" Value="3" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem Text="" Value="4" ImageUrl="https://cdn1.iconfinder.com/data/icons/fatcow/16/clock_edit.png"
                ToolTip="Tip">
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>
 
</div>
Kate
Telerik team
 answered on 06 Jan 2014
15 answers
351 views
Hi..
     I am Yogesh. I am new to asp.net with c#. I am working with asp.net ajax radgrid control. i want to export grid data to excel, word,pdf.
     Could anyone help me out by posting code for that plz...its urgent.

regards,
yogesh
Kostadin
Telerik team
 answered on 06 Jan 2014
1 answer
165 views
Hi,

I am using the telerik controls (v 2013.3.1015.45) for my project and it is working fine on IE all version. but it is not working on firefox 26.0 . I got following error.
Inline image 1


I have tried the suggested solution on site.
Deyan Enchev
Telerik team
 answered on 06 Jan 2014
9 answers
184 views
Hello .
I am using Telerik 2013 Q1 and I am using menu in my Pages.
I have some problems . First of all if I change The 'Height' of menu ,It doesn't work but I solve it With some Styles.
Secondly The Items were not in Middle of Menu but I solve it too with another Styles.
thirthly when I change the height of menu , the triangles in both side of menu doesn't increase theire Height  and i don't know how I should Solve it.
in fact ,are there any way to solve  my problems without styles and for last question,What should I do?
The Image for last question attached to this Thread and my Styles are at the end of this Message
Thank you.
.rmRootGroup
       {
           height: 40px;  // change the height of Menu
       }
 
li.rmItem
     {
         padding-top:8px !important; // bring Items in Middle of Menu
      }

Kate
Telerik team
 answered on 06 Jan 2014
1 answer
80 views

i have a radtooltipmanager that have their target control inside datalist .. this datalist is binded in server side using ajax ..

I set target control from itemdatabound event of datlist ,

but tooltip doesn't work ,

any help please ..

Marin Bratanov
Telerik team
 answered on 06 Jan 2014
1 answer
106 views
i have an ajaxcontroltoolkit accordion that contains datalist ,

and i 've a tooltipmanager on element inside datalist ,

tooltip doesn't work :

ToolTipManager.TargetControls.Add(divId, "1:3", true);


 TargetControls is added inside datalist_ItemDatabound event ..

anyhelp please ..
Marin Bratanov
Telerik team
 answered on 06 Jan 2014
1 answer
74 views
Hello
I have a problem to use the RadComboBox component.
I happen to have three combos where one feeds off the other according to the selected value.
When I select the first, the second is loaded.
When I select the second third is loaded.
But when I select the third combo does not open when I click on it.
For it to work, it is necessary that I give a click outside of it (anywhere on the form) and then click it again to open the content.
This happens in all forms that have a sequence of 3 or more combos.
Would know tell me why? Is there a solution for this?


The aspx code of three combos:
<td style="text-align: left">
      <telerik:RadComboBox ID="rddlTipoRegistro" runat="server" Width="120px" RegisterWithScriptManager="true"
           AppendDataBoundItems="True" AutoPostBack="True" Culture="pt-BR" MarkFirstMatch="True"
           OnSelectedIndexChanged="rddlTipoRegistro_SelectedIndexChanged">
      </telerik:RadComboBox>
</td>
<td style="text-align: left">
      <telerik:RadComboBox ID="ddlArea" runat="server" Width="220px" AppendDataBoundItems="True"
         AutoPostBack="True" OnSelectedIndexChanged="ddlArea_SelectedIndexChanged" Culture="pt-BR"
          MarkFirstMatch="True">
      </telerik:RadComboBox>
</td>
<td style="text-align: left">
      <telerik:RadComboBox ID="ddlCelulaServico" runat="server" Width="200px" AppendDataBoundItems="True"
        AutoPostBack="True" OnSelectedIndexChanged="ddlCelulaServico_SelectedIndexChanged"
        Culture="pt-BR" MarkFirstMatch="True">
    </telerik:RadComboBox>
 </td>


And the way they are loaded.
The combo rddlTipoRegistro bears ddlArea combo which in turn loads the combo ddlCelulaServico
and this does not open if you click right then.

TipoRegistroBO tipoRegistroBo = new TipoRegistroBO();
rddlTipoRegistro.Items.Clear();
rddlTipoRegistro.Items.Add(new RadComboBoxItem("Selecione", "0"));
rddlTipoRegistro.DataValueField = "Id";
rddlTipoRegistro.DataTextField = "Descricao";
rddlTipoRegistro.DataSource = tipoRegistroBo.getMany(new TipoRegistroVO());
rddlTipoRegistro.DataBind();
 
 
ServicoBO bo = new ServicoBO();
ServicoVO filtro = new ServicoVO();
filtro.TipoRegistro = new TipoRegistroVO(Convert.ToInt32(rddlTipoRegistro.SelectedValue));
ddlArea.DataValueField = "Id";
ddlArea.DataTextField = "Descricao";
ddlArea.DataSource = bo.getAreaPorTipoRegistro(filtro);
ddlArea.DataBind();
 
 
ServicoBO bo = new ServicoBO();
ServicoVO filtro = new ServicoVO();
filtro.TipoRegistro = new TipoRegistroVO(Convert.ToInt32(rddlTipoRegistro.SelectedValue));
filtro.Area = new AreaVO(Convert.ToInt32(ddlArea.SelectedValue));
ddlCelulaServico.DataValueField = "Id";
ddlCelulaServico.DataTextField = "Descricao";
ddlCelulaServico.DataSource = bo.getCelulaPorTipoRegistroArea(filtro);
ddlCelulaServico.DataBind();

Shinu
Top achievements
Rank 2
 answered on 06 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?