Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
145 views
Hi

I couldn't find any information on how to manage the RadListBox's keyboard shortcuts. How can I remove e.g. the "Del"-Shortcut for deleting an item?

Thanks in advance
Best
Roman
Roman
Top achievements
Rank 1
 answered on 02 Aug 2010
1 answer
120 views
You might consider this a little out of the remit of the VSB but here goes.

Suppose I create a skin. I mess with the fonts, the borders and the margins and I change the colours. All of my control's skins are based on a lovely Barbie Pink. Right at the beginning of the process I named the skin "BarbiePink".

Now, I want to create a copy of the skin, same fonts, borders and margins but a different colour.

ATM, I have to rename each CSS file and a number of image files, then I have to open each of the CSS files are replace the old skin name with the new one.

And so to the request; WIBNI, when importing a .zip file, I was given the option of renaming the skin? Then I could import "BarbiePink", rename it to "ButchBlue", change the base colour for each control and export my new skin.

What do the here assembled think?

-- 
Stuart
Alex Gyoshev
Telerik team
 answered on 02 Aug 2010
4 answers
175 views
I have a telerik radgrid with a single editable column that I've thrown into edit mode using the code below.  I'm using a radtoolbar and I'd like to allow the user to save the grid data (AllowMultiRowEdit="true") without requiring a per-row or even grid-specific update button.  All of the examples seem to be pulling necessary objects from the eventArgs.  Is there a grid example that allows me to process the grid changes from a separate toolbar button?

protected void LUOGrid_PreRender(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        foreach (GridItem item in LUOGrid.MasterTableView.Items)
        {
            if (item is GridEditableItem)
            {
                GridEditableItem editableItem = item as GridDataItem;
                editableItem.Edit = true;
            }
        }
        LUOGrid.Rebind();
    }
}
Princy
Top achievements
Rank 2
 answered on 02 Aug 2010
1 answer
367 views
I have a RadComboBox inside a GridTemplateColumn:

                        <telerik:RadGrid ID="rgrdTest" runat="server" Skin="Vista" Height="290px">
                            <MasterTableView AutoGenerateColumns="false">
                                <Columns>
                                    <telerik:GridTemplateColumn HeaderText="Action" UniqueName="Action">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="rcbx" runat="server" Width="200px"
                                                DropDownWidth="300px" Skin="Vista" Height="100px">
                                            </telerik:RadComboBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings>
                                <Scrolling AllowScroll="true" />
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
                        </telerik:RadGrid>

Can somebody show me how to select the Grid's row of the selected combobox when it takes focus via client-side? Preferably if this can be done using the OnClientFocus event of the combobox? So whenever someone clicks any of the combobox per row , the whole grid item row is selected. Thanks!

Princy
Top achievements
Rank 2
 answered on 02 Aug 2010
2 answers
106 views
Hi ,

I would like to know is there is any way to customize the "New Apointment popup" and "Edit Apointment Details Popup".
and i want the controls in that pop up to be bind to a table which is different from apontment table.

Please Help Me out

Warm Regards
Gokoulane Ravi
Gokoulane
Top achievements
Rank 1
 answered on 02 Aug 2010
2 answers
132 views
Hi. I have a several radgrid's inside a several radmultipage's which are accessed via a radtabstrip. Inside the grids, in certain cells appears keywords like "open" and "closed". I also have a literal control at the bottom of the page that I want to populate when the grid's contain these keywords. However, I only want the literal text filled when the user clicks on a particular tab and the keyword exists otherwise the literal is empty. I tried several server side approaches but they are very slow to postback. Can this be done on the client-side? Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 02 Aug 2010
7 answers
173 views
Hello Guys.

I have a radupload in a grid, and when I try to get the file name in grid's insert command, I have no uploaded files in RadUpload control.

Look my snipet code:

GridEditFormInsertItem insertedItem = (GridEditFormInsertItem)e.Item; 
        RadUpload RadUpload1 = (insertedItem["myItem"].Controls[1] as RadUpload); 
 
        for (int i = 0; i <= RadUpload1.UploadedFiles.Count; i++) 
        { 
            string fileName = RadUpload1.UploadedFiles[i].FileName; 
        } 

What can I do?

Regards.
Larry
Top achievements
Rank 1
 answered on 01 Aug 2010
9 answers
565 views
Hello,
i have a RadMenu with 4 menu items. Over the css selector .RadMenu .rmRootGroup .rmItem i set the width to 75px of every item. I applied a background-image over this selector but how can i center the text of the menu item, so that the text is centered on the background image? The selector .RadMenu .rmRootGroup .rmItem { text-align: center; } doesn't work.

The version is 2009.3 1314

with best regards
Meik Napierski

 

sam
Top achievements
Rank 1
 answered on 01 Aug 2010
5 answers
235 views
I've got a GridBinaryImageColumn  in my radgrid. I've got ajax enabled. I've got the javascript to do the disabling for image uploads (args.set_enableAjax(false);). I'm getting the database populated. I'm actually getting data back (binary) when the grid is displayed. HOWEVER, it's never displaying an image. I get a broken image tag because there is no src attribute ever added.

Can someone give me a place to troubleshoot, because I've been through about all I know. Looked into the db, used sql profiler to see what's coming in/out.... just no good. Am I missing something obvious?

My column:
<telerik:GridBinaryImageColumn DataField="Photo" HeaderText="Image" UniqueName="Upload" ImageAlign="NotSet"
                        ImageHeight="80px" ImageWidth="80px" ResizeMode="Fit" DataAlternateTextField="Description"
                        DataAlternateTextFormatString="Image of {0}">
                        <HeaderStyle Width="10%" />

Insert (this is working, data goes to db)
protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e)
        {

            RadUpload uplPhoto = (RadUpload)e.Item.FindControl("uplPhoto");

            foreach (UploadedFile file in uplPhoto.UploadedFiles)
            {
                byte[] bytes = new byte[file.InputStream.Length];
                file.InputStream.Read(bytes, 0, (int)file.InputStream.Length);

                SPPDataContext data = new SPPDataContext();
                Gallery gal = new Gallery();
                gal.Photographer = (Guid)Membership.GetUser().ProviderUserKey;
                gal.Name = ((RadTextBox)e.Item.FindControl("txtPhotoName")).Text;
                gal.Description = ((RadTextBox)e.Item.FindControl("txtPhotoName")).Text;
                gal.Photo = bytes;

                data.Galleries.InsertOnSubmit(gal);

                data.SubmitChanges();
            }
        }

Pulling data by linqdatasource:

<asp:LinqDataSource ID="ldsPortfolioGrid" runat="server"
                ContextTypeName="SPP.Web.Data.SPPDataContext" OrderBy="Name"
                TableName="Galleries" Where="Photographer == @Photographer"
                onselecting="ldsPortfolioGrid_Selecting" EnableDelete="True"
                EnableInsert="True" EnableUpdate="True" oninserted="ldsPortfolioGrid_Inserted"
                oninserting="ldsPortfolioGrid_Inserting">
                <WhereParameters>
                    <asp:Parameter DbType="Guid" Name="Photographer" />
                </WhereParameters>
            </asp:LinqDataSource>

Selecting is doing nothing exciting either:
protected void ldsPortfolioGrid_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            e.WhereParameters["Photographer"] = Membership.GetUser().ProviderUserKey;
        }







Thanks in advance guys!


Larry
Top achievements
Rank 1
 answered on 01 Aug 2010
1 answer
238 views
Hi all,

I have a problem exporting PDFs... basically when I click on my dropdown from RadToolBar, nothing happens. Below is my code in the user control. Its the "Export Current View" button with CommandName="ExportToPDF."

If it means anything, the RadGrid is in a WebUserControl which is loaded into an aspx page.

Thanks for any help,

Sunny

<telerik:RadGrid ID="RadGrid_Logs" runat="server" AutoGenerateColumns="false" 
           AllowMultiRowSelection="false" AllowPaging="True" AllowCustomPaging="True" PageSize="10" AllowAutomaticInserts="false"
           GridLines="None" CellPadding="0" AllowSorting="false" Skin="Default" OnItemDataBound="Log_Translate"
           ItemStyle-VerticalAlign="Top" OnNeedDataSource="RadGrid_Logs_NeedDataSource">
               <ExportSettings IgnorePaging="false" OpenInNewWindow="true">
                   <Pdf PageHeight="297mm" PageWidth="210mm" PageTitle="OnTime System Logs" />
               </ExportSettings>
               <PagerStyle Mode="NextPrevAndNumeric"/>
               <MasterTableView Width="100%" CommandItemDisplay="Top" GridLines="None" AllowAutomaticInserts="false">
               <CommandItemSettings ShowAddNewRecordButton="false" />
               <CommandItemTemplate>
                   <telerik:RadToolBar ID="RadToolBar_Logs" runat="server" Skin="Default" 
                   OnButtonClick="RadToolBar_Logs_CommandClick">
                       <Items>
                           <telerik:RadToolBarDropDown Text="Export">
                           <Buttons>
                               <telerik:RadToolBarButton Text="Export Current View"  Group="Bold" CheckOnClick="true" AllowSelfUnCheck="true" 
                                CommandName="ExportToPDF"/>
                               <telerik:RadToolBarButton Text="Export All Records" Group="Italic" CheckOnClick="true" AllowSelfUnCheck="true" />
                           </Buttons>
                           </telerik:RadToolBarDropDown>
                           <telerik:RadToolBarButton Text="Control Terminal" Visible="true"
                            ImageUrl="Images/Edit.gif" runat="server" ID="Edit">
                           </telerik:RadToolBarButton>
                           <telerik:RadToolBarButton Text="Refresh Terminals" Visible="true"
                            ImageUrl="Images/Refresh.gif" runat="server" ID="Refresh">
                           </telerik:RadToolBarButton>
                       </Items>
                   </telerik:RadToolBar>
               </CommandItemTemplate>
                   <Columns>
                       <telerik:GridTemplateColumn UniqueName="Terminal_Left_Column" HeaderText="Type" HeaderStyle-Width="40%">
                           <ItemTemplate>
                                 
                               <asp:Panel ID="Panel3" runat="server" CssClass="logs_table_text">
                               <asp:Literal ID="Literal_Log_DateTime" runat="server" 
                                   Text='<%# Eval("Log_DateTime").ToString() %>'></asp:Literal>
                               <br />
                               <asp:Literal ID="Label_Log_Category" runat="server" 
                                   Text='<%# Eval("Log_Category").ToString() %>'></asp:Literal>
                               <br />
                                <asp:Literal ID="Literal_Indent" runat="server" Text="-"></asp:Literal>
                               <asp:Literal ID="Label_Log_Type" runat="server" 
                                   Text='<%# Eval("Log_Type").ToString() %>'></asp:Literal>
                           </asp:Panel>
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>
                         
                       <telerik:GridTemplateColumn UniqueName="Terminal_Right_Column" HeaderText="Description" HeaderStyle-Width="60%">
                           <ItemTemplate>
                           <asp:Panel ID="Panel4" runat="server" CssClass="logs_table_text" >
                               <asp:Literal ID="Label_Log_Description" runat="server" 
                                   Text='<%# Eval("Log_Description").ToString() %>'></asp:Literal>
                           </asp:Panel>
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>
Sunil
Top achievements
Rank 1
 answered on 01 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?