Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
244 views
Hi,
i want to validate my radgrid on server side when the user click the "Add new record" btn,
if existing data are valid continue and show the editform else show error message and cancel insert operation,
so, my question is : what is the event i should use.
thanks.
Said
Top achievements
Rank 1
 answered on 05 May 2014
4 answers
190 views
I have a rendering issue with RadToolBarSplitButton on Mac and iPad (see ResourceButton.png attachment) where the button overflows its border by a few pixels on the right hand side, but this happens only on Macs and on iPads in Safari when we click the button to make it dropdown and reveal the subitems. We have no problems with this on windows machines in all the browsers we've tested. How can I fix this? I'm using telerik version 2013.2.717.40 and runtime version v4.0.30319.

Thanks,

Dylan
Dylan
Top achievements
Rank 1
 answered on 05 May 2014
1 answer
153 views
I am trying to add a button the the user can click on that will grab values from the row and then add to the cart. I would like this to confirm with the radwindow or radalert so the user is not taken to a new page and they can add items quickly.  How do I do this?

Currently I have it setup to where a the code-behind will go through each row and look at the qty field and then add the rows that have a qty > 0  

For Each dataitem As GridDataItem In RadGrid1.Items
          If DirectCast(dataitem.FindControl("qtytxt"), TextBox).Text > "" Then
              Try
                  Dim UOM As DropDownList = DirectCast(dataitem.FindControl("UOM_DDL"), DropDownList)
                  Dim qty As String = DirectCast(dataitem.FindControl("qtytxt"), TextBox).Text
                  Dim item As GridDataItem = TryCast(dataitem, GridDataItem)
                  Dim item_id As String = RTrim(item("item_id").Text)
                  Dim FindForm As FormView = CType(dataitem.FindControl("FormView3"), FormView)
                  Dim UnitPrice As Label = CType(FindForm.FindControl("Unit_Price"), Label)
                  Dim linecount As String = GetLineCount()
 
                   
                  nCMD.CommandText = "*****************"
                  nConn.Open()
                  nCMD.ExecuteNonQuery()
                  nConn.Close()
              Catch ex As Exception
                  Session("error") = ex.ToString()
                  Response.Redirect("Cart.aspx?error=" & ex.ToString)
              End Try
 
 
          End If
      Next
Corey
Top achievements
Rank 1
 answered on 05 May 2014
3 answers
184 views
Hi,

how to update the item when i press the enter key from the key board if the item is in edit mode and has some text boxes to enter.

need navigation between the text boxes when i press the enter key and then update the item, if  item is in edit mode.

could you please provide me the some solution for the above issue.

navigation between the text boxes and update the item when i press the enter key 

Thanks,
Tatarao .N

Princy
Top achievements
Rank 2
 answered on 05 May 2014
2 answers
226 views
Hi,

I am trying to set the width and height of the HTMLcharts via a % rather than pixels as it is more adaptable, however when I do this the charts are shrinked - is there a way to do this even if I place them in a parent DIV and set that to % width?

Thanks,

Using v2014.1.225.40
Himanshukumar
Top achievements
Rank 2
 answered on 05 May 2014
1 answer
112 views
After our company has the last version of telerik controls I noticed that End after occurrences (maxoccurrence) input has value 10 by default and radio button does not count, so when user tries to create a recurrence scheduler it count that it should be 10 occurrence.
How to change this behavior.  I need empty value from the beginning for the new scheduler and application should check for the radio button.

Thank you for your help
Nencho
Telerik team
 answered on 05 May 2014
1 answer
145 views
For some reason, the the RadNumericTextbox wraps strangely in chrome. It slices off the end of the border and places this on the next line (see attached image). This happens with the RadTextbox as well. The RadNumericTextbox is placed in a RadGrid, and in a GridTemplateColumn. Te wrap function on each cell in the table in the RadGrid is set to true.

HTML:

<telerik:GridTemplateColumn DataField="pni_value_100g_100ml" HeaderText="As prepared" Visible="false"
                ItemStyle-Width="40px" HeaderStyle-Width="40px">
                <EditItemTemplate>

                    <telerik:RadNumericTextBox ID="txtValue100g100ml" runat="server" Text='<%# Bind("pni_value_100g_100ml")%>' IncrementSettings-InterceptArrowKeys="false" IncrementSettings-InterceptMouseWheel="false"
                        MaxLength="255" NumberFormat-DecimalDigits="3" Width="40px" MinValue="0" NumberFormat-GroupSeparator="" NumberFormat-DecimalSeparator=".">
                    </telerik:RadNumericTextBox>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>


CSS:.

RadInput_Default, .RadInputMgr_Default{
    padding        :  7px;
    background     :  white;
    border:solid 1px silver;
    border-left    :  solid 1px silver;
    border-top     :  solid 1px silver;
    border-right   :  solid 1px silver;
    border-bottom  :  solid 1px silver;
}

Help?



Eyup
Telerik team
 answered on 05 May 2014
1 answer
180 views
hello,
         i want to select all checkboxes on click of header checkbox .it works on other browser except ie 11..?
is there any solution

javascript function -->

function SelectAllCheckBox(headerCheckBox) {
                try {
                    debugger;
                    var clientID = "";
                    for (var i = 0; i < registeredElements.length; i++) {
                        clientID = registeredElements[i];

                        var checkbox = document.getElementById(clientID);
                        if (checkbox) {
                            if (!headerCheckBox.checked)
                                checkbox.defaultChecked = selectDeselectAllFlag;
                            else
                                checkbox.defaultChecked = selectDeselectAllFlag;

                        }
                    }
                    selectDeselectAllFlag = !selectDeselectAllFlag;
                    return true;

                }
                catch (er) {

                }
            }
    
Eyup
Telerik team
 answered on 05 May 2014
1 answer
110 views
See attached... Slider is in a child grid of a RadGrid. What I need is when the slider is moved to update the start or length text boxes.
Marin Bratanov
Telerik team
 answered on 05 May 2014
3 answers
138 views
Hi, we have a grid with FormTemplate; Is possible, with javascript, get textbox and RadDatePicker for set a value?

I want set the textbox value with the name of file uploaded with RadAsyncUpload

This is the code, i get correctly the name of the file. How can i set the textbox txtOggetto with the file name?

<script type="text/javascript">
    function OnClientFileSelected(sender, args) {
        alert(args.get_fileName());
    }
</script>


            <telerik:RadGrid ID="RadGrid1" runat="server"
                CellSpacing="0" Culture="it-IT" GridLines="None" DataKeyNames="ID A"
                DataSourceID="SqlDataSource1" AutoGenerateColumns="false" Width="1000px" AllowSorting="true"
                GroupingSettings-CaseSensitive="false" EnableLinqExpressions="false"
                AllowPaging="true" PageSize="20" OnItemDataBound="RadGrid1_ItemDataBound" OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand">
                <MasterTableView DataKeyNames="ID Albo" DataSourceID="SqlDataSource1" CommandItemDisplay="TopAndBottom">
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Modifica" UpdateText="Aggiorna" InsertText="Inserisci" CancelText="Annulla">
                        </telerik:GridEditCommandColumn>
                        <telerik:GridBoundColumn HeaderText="Categoria" DataField="Descrizione" UniqueName="Descrizione">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Ultima Modifica" HeaderText="Ultima Modifica" UniqueName="Ultima_Modifica">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Oggetto" HeaderText="Oggetto" UniqueName="Oggetto">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Valido Dal" HeaderText="Valido Dal" UniqueName="Valido_Dal" DataFormatString="{0:dd/MM/yyyy}" >
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Valido Al" HeaderText="Valido Al" UniqueName="Valido_Al" DataFormatString="{0:dd/MM/yyyy}">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <FormTemplate>
                            <div style="margin-left:15px;">
                                <div style="height:10px"></div>
<telerik:RadAsyncUpload ID="rupDocumento" runat="server" MaxFileSize="11048576" MaxFileInputsCount="1" Localization-Select="Seleziona" Localization-Cancel="Cancella" Localization-Remove="Rimuovi" AllowedFileExtensions="pdf" OnClientFileSelected="OnClientFileSelected" ></telerik:RadAsyncUpload>
                                <div style="height:10px"></div>
                                <div style="height:10px"></div>
                                <asp:DropDownList ID="DDLCategoria" runat="server" DataTextField="Descrizione" DataValueField="ID Tipo Categoria Albo"></asp:DropDownList>
                                <div style="height:10px"></div>
                                <asp:TextBox ID="txtOggetto" runat="server" MaxLength="255" Text='<%#Eval("Oggetto")%>' Width="400"></asp:TextBox>
                                <div style="height:10px"></div>
                                Validità<br />
                                Dal <%=DateTime.Now.ToString("dd/MM/yyyy")%><br />
                                <asp:RadioButton ID="rbNoScad" runat="server" Text="Senza Scadenza" GroupName="Scadenza" /><br />
                                <asp:RadioButton ID="rb15Scad" runat="server" Text="15 giorni" GroupName="Scadenza" /><br />
                                <asp:RadioButton ID="rb30Scad" runat="server" Text="30 giorni" GroupName="Scadenza" /><br />
                                <asp:RadioButton ID="rb60Scad" runat="server" Text="60 giorni" GroupName="Scadenza" /><br />
                                <asp:RadioButton ID="rbFinoAlScad" runat="server" Text="valido fino al" CssClass="sAlign" GroupName="Scadenza" />   <telerik:RadDatePicker ID="rdpAl" runat="server" CssClass="sAlign2"></telerik:RadDatePicker><br />
                                <telerik:RadDatePicker ID="rdpDal" runat="server" Visible="false"></telerik:RadDatePicker>
                            </div>
                            <div style="height:10px"></div>
                            <div style="text-align:center;">
                                <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Inserisci" : "Aggiorna" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' ></asp:Button> <asp:Button ID="btnCancel" Text="Annulla" runat="server" CausesValidation="False" CommandName="Cancel" ></asp:Button>
                            </div>
                            <div style="height:10px"></div>
                            <telerik:RadInputManager ID="RadInputManager1" runat="server">
                                </telerik:TextBoxSetting>
                                <telerik:TextBoxSetting BehaviorID="RagExpBehavior2" Validation-IsRequired="true" ErrorMessage="Inserire l'oggetto" EmptyMessage="Oggetto">
                                    <TargetControls>
                                        <telerik:TargetInput ControlID="txtOggetto"></telerik:TargetInput>
                                    </TargetControls>
                                </telerik:TextBoxSetting>
                            </telerik:RadInputManager>
                        </FormTemplate>
                    </EditFormSettings>
                    <SortExpressions>
                        <telerik:GridSortExpression FieldName="ID A" SortOrder="Descending" />
                    </SortExpressions>
                </MasterTableView>
            </telerik:RadGrid>   
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" KeepInScreenBounds="true"></telerik:RadWindowManager>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:StrConnection %>"
                SelectCommand = "SELECT [ID A], [Descrizione], [tStamp], [Oggetto], [Documento], [Cod Categoria], [Ultima Modifica], [Valido Dal], [Valido Al] FROM [Vista_Admin_Albo]">
            </asp:SqlDataSource>
Princy
Top achievements
Rank 2
 answered on 05 May 2014
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?