Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
241 views

Hello, can the TabStrip control alter it's orientation based on the viewport/device it's presented on? Let's say I have 5 tabs on a page and when I view this page on an iPhone or Android phone can the tabs align themselves in a stacked fashion (all-closed state). In short, how mobile-friendly is this control - we don't want users to have to scroll horizontally on a mobile device. if this is possible can it be achieved through configuration of the control or is it more of a hand-coded task?

 

Thanks.

Rumen
Telerik team
 answered on 13 May 2019
3 answers
412 views
Hi

When I upload a jpg image using RadAsyncUpload. The image is rotated

http://demos.telerik.com/aspnet-ajax/imageeditor/examples/imageupload/defaultcs.aspx?product=asyncupload

Thanks
Vessy
Telerik team
 answered on 10 May 2019
1 answer
325 views

Hello,

I want the rad menu to appear when i hover on it and immediately after clicking on a item, it should hide the menu.

Is there any built in property for this?

 

Thanks in advance

 

 

Rumen
Telerik team
 answered on 10 May 2019
1 answer
90 views

Hello

 

how to add Column Group for code behigh vb.net

 

- I Can  pic1.png
 - I want pic2.png

Vessy
Telerik team
 answered on 10 May 2019
9 answers
725 views
Please telle me how I can find controls in the LayoutTemplate (see attached picture).
I need to set the text attributes for different languages.

Vessy
Telerik team
 answered on 09 May 2019
1 answer
109 views

Hello,

I am using org chart für ajax to show a company organisation, now I am at the point where I need to show an executive department.

Is there a possibilty to draw an executive department in the org chart? I attached an picture how it should look like.

 

Regards

 

Peter Milchev
Telerik team
 answered on 09 May 2019
1 answer
103 views

I was able to successfully build a web form and using the ajax uploader control, upload files to an azure blob container (i.e. MyFiles-Blobs/hsc/so/file.txt).  Now I would like the user to come back to the form and view the uploaded files and download the files at a later time.  Can the uploaded control do this and if so is there an example I can use. Or is there a better way of doing this task?  Thanks for the help with this request!

Vessy
Telerik team
 answered on 09 May 2019
5 answers
1.3K+ views
Hi,
I have just upgraded an app from RadAjax Classic to the latest version for ASP .NET AJAX. I have been through the process of switching to the RadAjaxManagerProxy, adding ajax settings programatically in Page_Load instead of Page_Init etc.

Now most of my ajax updates are now working but some are not.

After certain updates the page fails to update and I get the following javascript error:

Error: [Exception... "'Sys.InvalidOperationException: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'someAjaxifiedControlPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]

The particular control that this error message is complaining about is not part of the current update and is not currently visible. With RadAjax Classic this didn't matter, so I don't think this is the issue.



What causes this error?
sachin
Top achievements
Rank 2
 answered on 09 May 2019
3 answers
1.0K+ views
I have set <ClientEvents OnRowClick="RowClick" /> to fire when a row is clicked.  I have a Server-side checkbox on the row that I would like to exclude from this javascript event.  Does anyone know if there is a way to do this and how?

Basically, I am trying to have a checkbox on the Grid row that when checked doesn't fire a server-side or client-side event.  When I click on a button on the page, I'd like to cycle through the grid and get the items with a checkmark.

Thanks!

 

Vessy
Telerik team
 answered on 09 May 2019
3 answers
894 views

Hello,

 I have a problem when i work with two radcombox inside radgrid. The problem is that when the event SelectedIndexChanged is fired the second radcombox is not filled. Besides the entire form is reloaded.

 I try to put a radAjaxpanel inside label <FormTemplate> to solve this problem. But the second radcombo is not filled.

 I do not understand what is the problem.

The code is the next

<telerik:RadGrid runat="server" Id="rgDirecciones" AutoGenerateColumns="False" 
    OnItemDataBound="rgDirecciones_ItemDataBound"
    CellSpacing="-1" GroupPanelPosition="Top" >
    <mastertableview datakeynames="IdDireccion,IdSucursal,IdEmpresa">
        <rowindicatorcolumn visible="False">
        </rowindicatorcolumn>
        <expandcollapsecolumn created="True">
        </expandcollapsecolumn>
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"
                EditImageUrl="../imagenes/Edit.png" InsertImageUrl="../imagenes/Edit.png" Exportable="False">
                <HeaderStyle Width="30px" />
            </telerik:GridEditCommandColumn>                           
            <telerik:GridBoundColumn DataField="IdDireccion" UniqueName="IdDireccion" HeaderText="No Dirección">
                <HeaderStyle Width="80px" />
            </telerik:GridBoundColumn>                                           
            <telerik:GridBoundColumn DataField="Pais" UniqueName="Pais" HeaderText="Pais">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DivisionTerritorial" UniqueName="DivisionTerritorial" HeaderText="Division Territorial">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn ConfirmText="Desea eliminar este registro?" ConfirmDialogType="RadWindow" ConfirmTitle="Eliminar" ButtonType="ImageButton" CommandName="Delete" ImageUrl="../imagenes/Delete.png" UniqueName="DeleteColumn" Text="Eliminar" FilterControlAltText="Filter DeleteColumn column"  Exportable="False">
                <HeaderStyle Width="30px" />
            </telerik:GridButtonColumn>
        </Columns>
        <editformsettings editformtype="Template">
            <formtemplate>
                <table class="table table-condensed">
                    <tr>
                        <td style="width: 150px">
                            <asp:Label ID="lbIdDireccion" runat="server" Text="No Dirección"></asp:Label>
                        </td>
                        <td>
                            <telerik:RadNumericTextBox ID="txtIdDireccion"
                                runat="server"
                                Enabled="<%# (Container is GridEditFormInsertItem) ? true : false %>"
                                MaxLength="2"
                                MaxValue="99"
                                MinValue="0"
                                Text='<%# Bind("IdDireccion") %>'
                                Width="80px">
                                <numberformat decimaldigits="0" groupseparator="" />
                            </telerik:RadNumericTextBox>
                            <asp:RequiredFieldValidator ID="rfvIdDireccion" runat="server"
                                ControlToValidate="txtIdDireccion" Display="Dynamic"
                                ErrorMessage="Campo Obligatorio" ForeColor="Red">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>                                               
                    <tr>
                        <td style="width: 150px">
                            <asp:Label ID="lbPaisDire" runat="server" Text="País"></asp:Label>
                        </td>
                        <td>
                            <telerik:RadComboBox ID="cmbPais" Runat="server" Width="350px" Height="150px"
                                AutoPostBack="True" OnSelectedIndexChanged="combo_SelectedIndexChanged">
                            </telerik:RadComboBox>
                            <asp:RequiredFieldValidator ID="rfvcmbPais" runat="server" 
                                Display="Dynamic" ForeColor="Red"
                                ControlToValidate="cmbPais" ErrorMessage="Campo Obligatorio">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 150px">
                            <asp:Label ID="lbDivisionTerritorial" runat="server" Text="División Territorial"></asp:Label>
                        </td>
                        <td>
                            <telerik:RadComboBox ID="cmbDivisionTerritorial" Runat="server" Width="350px">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <telerik:RadButton ID="RadButton1" runat="server" causesvalidation="true" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' Text='<%# (Container is GridEditFormInsertItem) ? "Agregar" : "Guardar" %>' validationgroup="Textbox">
                                <icon primaryiconurl="../imagenes/save_16x16.png" />
                            </telerik:RadButton>
                                
                            <telerik:RadButton ID="RadButton2" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancelar">
                                <icon primaryiconurl="../imagenes/cancel.png" />
                            </telerik:RadButton>
                                   
                            <asp:Label ID="Label2" runat="server" CssClass="opcionales" Text="* Opcionales"></asp:Label>
                        </td>
                    </tr>
                </table>
            </formtemplate>
        </EditFormSettings>
        <CommandItemTemplate>
            <div class="col-xs-6">
                <asp:LinkButton ID="lbAgregarDirecciones" runat="server" CommandName="InitInsert" Visible='<%# !rgDirecciones.MasterTableView.IsItemInserted %>'><img style="border:2px;vertical-align:middle;" alt="" src="../imagenes/AddRecord.png"/> Agregar</asp:LinkButton>  
                <asp:LinkButton ID="lbRefrescarDirecciones" runat="server">
                    <img style="border:2px;vertical-align:middle;" alt="" src="../imagenes/Refresh.png"/> Refrescar
                </asp:LinkButton>  
            </div>
        </CommandItemTemplate>
    </mastertableview>
</telerik:RadGrid>

code c # 

protected void rgDirecciones_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditFormInsertItem || e.Item is GridDataInsertItem)
            {
                GridEditFormItem editItem = (GridEditFormItem)e.Item;
 
                //insert item
                //Fill combobox Pais
                Clases.MetodosGlobales.ObtenerInformacion("ADMMPaises_getCombo");
                Clases.MetodosGlobales.LlenarComboBox("cmbPais", "Nombre", "Pais", editItem, RadComboBoxFilter.StartsWith);
                 
            }
            else
            {
                if (e.Item is GridEditFormItem && e.Item.IsInEditMode)editform
                {
                    GridEditFormItem editItem = (GridEditFormItem)e.Item;
 
                     //edit item
                    RadComboBox comboPais = (RadComboBox)editItem.FindControl("cmbPais");
                    comboPais.SelectedValue = editItem["Pais"].Text;
                }
            }
        }
 
protected void combo_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem;
            GridEditFormItem item = (sender as RadComboBox).NamingContainer as GridEditFormItem;
            RadComboBox comboPaises = sender as RadComboBox;
            RadComboBox comboDivisionTerritorial = (RadComboBox)editedItem.FindControl("cmbDivisionTerritorial");
 
            var parametrosSQL = new string[] { null, e.Value };
            DataSet ds = Clases.MetodosGlobales.ObtenerInformacionObjeto("ADMMDivisionesTerritoriales_get", parametrosSQL);
             
            comboDivisionTerritorial.Text = null;
            comboDivisionTerritorial.EmptyMessage = "- Seleccione un valor -";
            comboDivisionTerritorial.Filter = RadComboBoxFilter.StartsWith;
            comboDivisionTerritorial.DataSource = ds.Tables[0];
            comboDivisionTerritorial.DataTextField = "Descripcion";
            comboDivisionTerritorial.DataValueField = "Divisionterritorial";
            comboDivisionTerritorial.DataBind();
        }
 

Regards,

 

 

Eyup
Telerik team
 answered on 09 May 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?