Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
64 views
Hi, on the Demos , there is a bar near the top with the Prev/Next Demo buttons, the Rate/Review link and the Skin link. The rate / Review and skin both drop down a panel and have an extra button for closing, and also allow only one to be open at a time.

What do you use for that functionality?

Im looking to implement something nearly identical to that and the PanelBar doesn't seem to quite fit the bill.
Shinu
Top achievements
Rank 2
 answered on 14 Aug 2013
5 answers
207 views
Hi Im trying to implement this demo. Does anybody knows an event or how to implement an event to fire when I click the "Save Changes" and the RadGrid ends all the Inserts/Updates? Is there any property that says how many pending changes are left or something? I need to do this to execute a final process in the database. Thanks.

Here is my code for the radgrid
<telerik:RadGrid ID="RG_CorreosExtra" runat="server" AutoGenerateColumns="False" AllowSorting="true" AllowPaging="True" PageSize="25" OnBatchEditCommand="RG_CorreosExtra_BatchEditCommand" OnInsertCommand="RG_CorreosExtra_InsertCommand" OnUpdateCommand="RG_CorreosExtra_UpdateCommand" OnDeleteCommand="RG_CorreosExtra_DeleteCommand" OnNeedDataSource="RG_CorreosExtra_NeedDataSource" Skin="Web20">
<MasterTableView CommandItemDisplay="Top" DataKeyNames="id" HorizontalAlign="NotSet" EditMode="Batch" Name="Detalle_Correos_Extra">
<NoRecordsTemplate>
No hay correos en la lista
</NoRecordsTemplate>
<CommandItemSettings AddNewRecordText="Nuevo Correo" SaveChangesText="Guardar Cambios"CancelChangesText="Cancelar" RefreshText="Actualizar" />
        <BatchEditingSettings EditType="Cell" OpenEditingEvent="Click" />
        <Columns>
            <telerik:GridTemplateColumn DataField="correo" HeaderText="Correo" UniqueName="correo"
                SortExpression="correo">
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                    <%# Eval("correo") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadTextBox ID="RT_correo" runat="server" Text='<%# Bind("correo") %>'>
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="RFV_correo" runat="server" ControlToValidate="RT_correo"
                        ForeColor="Red" ErrorMessage="Debe ingresar correo electrónico." Text="*" Display="Dynamic">
                    </asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="FEV_correo" runat="server" ControlToValidate="RT_correo"
                        ForeColor="Red" ErrorMessage="Formato de correo inválido." Text="Formato Inválido"
                        Display="Dynamic" Font-Size="X-Small" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
                    </asp:RegularExpressionValidator>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn DataField="nombre" HeaderText="Nombre" UniqueName="nombre"
                SortExpression="nombre">
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                    <%# Eval("nombre") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadTextBox ID="RT_nombre" runat="server" Text='<%# Bind("nombre") %>'>
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="RFV_nombre" runat="server" ControlToValidate="RT_nombre"
                        ForeColor="Red" ErrorMessage="Debe ingresar Nombre." Text="*" Display="Dynamic">
                    </asp:RequiredFieldValidator>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn DataField="descripcion" HeaderText="Descripción" UniqueName="descripcion">
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                    <%# Eval("descripcion") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadTextBox ID="RT_descripcion" runat="server" Text='<%# Bind("descripcion") %>'>
                    </telerik:RadTextBox>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn ConfirmText="¿Desea eliminar este correo?" ConfirmDialogType="RadWindow"
                ConfirmTitle="Eliminación de correo" HeaderText="Eliminar" ButtonType="ImageButton"
                CommandName="Delete" Text="Eliminar" UniqueName="DeleteColumn">
                <HeaderStyle Width="60px" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

One last thing, how can I do to make the RequiredFieldValidator for the RadTextBox "RT_nombre" activates only for new records when I clic "Save Changes" if I am not editing the cell.
Jayesh Goyani
Top achievements
Rank 2
 answered on 14 Aug 2013
1 answer
374 views
The idea is the user clicks a button, a new row is added to the DB and the grid is rebind() to include the new added row. Is it possible for the last added item to be shown in edit mode? I'm using InPlace editing.
Princy
Top achievements
Rank 2
 answered on 14 Aug 2013
1 answer
62 views

 How to get rad schedulers "day end time" and "day start time" on the client side on "OnClientAppointmentMoveEnd" event with Day view is selected

Plamen
Telerik team
 answered on 14 Aug 2013
1 answer
62 views
Hi Telerik,

I am about to replace the asp datagrid in my page with radgrid and there I frequently used indexes to access the grid items and found telerik grid rarely use the same approach in samples available over the internet. So is there any disadvantages of using index in telerik radgrid apart from asp gridview. In such a case i need to alter a major portion of my code.

Thanks and Regards,
Jane.
Shinu
Top achievements
Rank 2
 answered on 14 Aug 2013
4 answers
290 views
Hi

How can I increase the width and height of Select button of asyncupload?

Thanks
Dona
Ivan Zhekov
Telerik team
 answered on 13 Aug 2013
7 answers
360 views
How to set toolbar button used in the page as a default button for the page (form tag)?


Regards,
Chandra
Ray
Top achievements
Rank 1
 answered on 13 Aug 2013
1 answer
118 views
I am displaying timeout notification using Radnotification(see code below) but it shows a small orange box where the menu Icon would appear(see image). Setting the visible property to  false does not resolve the issue. What am I missing? Please suggest.
If I close the notification window during the timeout, it reappears in 1 minute after closing. This seems to be the default behavior. Is there a way to configure or change this behavior?

      
<telerik:RadNotification ID="RadNotification1" runat="server" Width="240" Height="100" Position="Center" TitleIcon="" ShowTitleMenu="false" 
    EnableRoundedCorners="true" Title="Session Expiring" OnClientShowing="OnClientShowing" Value="MyPage.aspx" AutoCloseDelay="0">
    <ContentTemplate>
        <div class="infoIcon"><img src="Images/infoIcon.jpg" alt="info icon" /></div
        <div class="notificationContent">Time remaining:  <span id="timeLbl">5:00</span
            <telerik:RadButton ID="continueSession" runat="server" Text="Continue Your Session?"
                Style="margin-top: 10px;" AutoPostBack="false" OnClientClicked="ContinueSession"
            </telerik:RadButton
        </div
    </ContentTemplate>
</telerik:RadNotification>

.infoIcon, .notificationContent 
    display: inline-block
    zoom: 1
    *display: inline
}
.infoIcon 
     width: 32px
     height: 32px
     margin: 0 10px
     vertical-align: top
}

Padma
Top achievements
Rank 1
 answered on 13 Aug 2013
4 answers
177 views
Hi

I read that asyncupload requires  a postback to upload files such as a button click. But I want to upload all my selected files to the server once everything is selected without the user clicking a button. Any suggestion?

Thanks
Dona
Dona
Top achievements
Rank 1
 answered on 13 Aug 2013
1 answer
118 views
I am working on a FileSystemProvider that will allow writing to a physical or shared drive.  Most of the functionality seems to be working but the StoreFile method is having issues.

Below is the code I am using

public override string StoreFile(Telerik.Web.UI.UploadedFile file, string path, string name, params string[] arguments)
{
    var virtualSavePath = Path.Combine(path, name);
    var physicalPath = GetPhysicalFromVirtualPath(path);
    File.Create(Path.Combine(physicalPath, "joshtest"));
    if (physicalPath == null)
        return string.Empty;
 
    file.SaveAs(physicalPath);
 
    // Returns the path to the newly created file
    return virtualSavePath;
}

the file.SaveAs(physicalPath) throws an access denied exception.  The File.Create(...) works and creates the file so it seems that iis has access to create files. 

I am also able to create/delete/move folders and delete files (only tried to delete and upload files).

Am I missing something here that is causing file.SaveAs to not work properly?
Josh
Top achievements
Rank 1
 answered on 13 Aug 2013
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?