Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
191 views
Hello,

         I am using Rad Ajax ASP.NET control 2008.Q2. In certain cases, my rad window stretches to some height, as a result I am unable to see Title bar and Status bar of the Window. I observed from an articles(

http://www.telerik.com/help/aspnet/window/differencesbrowser.html, http://www.telerik.com/help/aspnet/window/keyboardsupport.html), states there is possibility to close as well as change the active window through Keyboard Shortcuts. I am tried in my project but I couldn't able to create an instance to WindowShortcut class as mentioned in the articles.

Can anyone help me to fix it up. Really I am running out of time.

Thanks in advance.

Georgi Tunev
Telerik team
 answered on 09 Mar 2010
4 answers
115 views
Hi there

When I add an entry into the Scheduler (on my project as well as your online demo's) for e.g. a Wednesday and set the entry to recur for the next three weeks on Monday's, the first Wednesday entry does not show in the Scheduler.

In other words, I do the following:

  • Create a new entry into the Scheduler for a Wednesday and click the Recurrence check box
  • I click the Weekly radio button
  • Wednesday is automatically checked, I uncheck that and check Monday
  • I then end it after 3 occurances

When I submit, the initial Wednesday entry does not show in the Scheduler, only the 3 Monday recurrences.

What then happens is if I show my events in a RadGrid, the initial Wednesday event shows in the grid, but when I open the Scheduler, it doesn't.

Any advise?

Greetings

Gerrit

Gerrit du Preez
Top achievements
Rank 1
 answered on 09 Mar 2010
6 answers
317 views
Hi,

I have an ajaxified RadGrid with a single GridImageColumn.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Black" AllowPaging="true" PageSize="20" 
            AutoGenerateColumns="False" AllowSorting="True" AllowFilteringByColumn="True"> 
            <ClientSettings EnableRowHoverStyle="true"> 
                <ClientEvents OnRowDblClick="RowDblClick" /> 
            </ClientSettings> 
            <MasterTableView CommandItemDisplay="Top" DataKeyNames="id_film" CommandItemSettings-AddNewRecordText="Ajoutez un film" 
                NoMasterRecordsText="Aucun résultat" AllowMultiColumnSorting="true"> 
                <Columns> 
                    <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="id_film" DataImageUrlFormatString="Affiches/{0}_Mini.jpg" 
                        DataAlternateTextField="titre" ImageAlign="Middle" ImageHeight="100" ImageWidth="75" 
                        AllowSorting="false" AllowFiltering="false" UniqueName="affiche" /> 
                </Columns> 
                <EditFormSettings EditFormType="Template"> 
                    <FormTemplate> 
                        <asp:Button ID="Button1" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Enregistrer", "Modifier") %>' 
                            runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'> 
                        </asp:Button> 
                    </FormTemplate> 
                </EditFormSettings> 
            </MasterTableView> 
        </telerik:RadGrid> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

When updating a item, I overwrite the image (the image url stay the same).

 Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.ItemCommand 
        
        If (e.CommandName = RadGrid.UpdateCommandName) Then 
            
             
            'Upload Affiche 
            Dim myRequest As HttpWebRequest 
            Dim myResponse As HttpWebResponse 
            Dim s As System.IO.Stream 
            Dim graphicTemp As System.Drawing.Graphics 
            Dim ImageSource As System.Drawing.Image 
            Dim affiche_url = "http://thenewimage" 
            myRequest = WebRequest.Create(affiche_url) 
            myResponse = myRequest.GetResponse() 
            s = myResponse.GetResponseStream() 
            ImageSource = System.Drawing.Image.FromStream(s) 
            graphicTemp = System.Drawing.Graphics.FromImage(ImageSource) 
            graphicTemp.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver 
            graphicTemp.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality 
            graphicTemp.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality 
            graphicTemp.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic 
            graphicTemp.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality 
            graphicTemp.DrawImage(ImageSource, 0, 0, ImageSource.Size.Width, ImageSource.Size.Height) 
            graphicTemp.Dispose() 
            ImageSource.Save(Server.MapPath("~/Media/Affiches/" & e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("id_film") & "_Normal.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg) 
            ImageSource.Dispose() 
            s.Close() 
            myResponse.Close() 
             
 
        End If 
    End Sub 

The problem is the following :
When the Grid is rebind after the update, the image has not been refreshed within the grid, its still the old one. I have to refresh the page (F5) to make the changes visible.

Any ideas ?

- My grid is bind using needdatasource
- I tried to replace the imagecolumn by a templatecolumn -> same problem
- I tried to set the imageurl inthe itemdatabound event of the grid -> same problem

Thank You
Arnaud Boiselle


arnaud
Top achievements
Rank 1
 answered on 09 Mar 2010
1 answer
135 views

 

Hi,

I've a radgrid wrapped inside a panel.
The cssclass 'panel_css'  contains height and width of 100%.

the problem I'm facing is in compatibilty mode on, the below code is fine. It renders properly.

But if compatibility mode is turned off, then when I resize the columns by moving the column handle, the whole grid can be stretched beyond the width of the screen. I don't want this weird behaviour. the grid should always be fixed(but I don't want to give width in pixels). I even tried setting the table layout to fixed. but this didn't work.

Note: the grid stretches beyond the width of the screen only if compatibility is turned off.
If compatibility is turned on, this works fine.

<
asp:Panel ID="panel1"

 

 

runat="server"

 

 

CssClass ="panel_css">

 

 

<telerik:RadGrid ID="m_radGrid"

 

 

GridLines="None"

 

 

runat="server"

 

 

AllowMultiRowSelection= "True"

 

 

AllowFilteringByColumn= "True"

 

 

onneeddatasource = "m_radGrid_NeedDataSource"

 

 

OnSelectedIndexChanged = "m_radGrid_SelectedIndexChanged"

 

 

OnItemCommand = "m_radGrid_ItemCommand" OnItemDataBound ="m_radGrid_ItemDataBound" TabIndex = "0">

 

 

<MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"

 

 

PagerStyle-Mode="NextPrevAndNumeric" PageSize="10">

 

 

<PagerStyle AlwaysVisible="true" />

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle/>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle />

 

 

</ExpandCollapseColumn>

 

 

</MasterTableView>

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<ClientSettings AllowKeyboardNavigation="True" Selecting-AllowRowSelect="true" Resizing-AllowColumnResize="true">

 

<Scrolling AllowScroll ="true" SaveScrollPosition ="true" UseStaticHeaders ="true"/>

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

</asp:Panel>

 

Pavlina
Telerik team
 answered on 09 Mar 2010
2 answers
159 views
Dear All,
This is my situation.  I have based my solution on this http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/fileselectordialog/defaultcs.aspx tutorial.  I have created 5 other pages that hold the file explorer for selecting different images.

Please see my code below.  I am trying to populate different text boxes based on different file selectors.  I can only get the last text box to populate with the file path and it ignores all the others.

Any help Please!!!!

<igtab:UltraWebTab ID="UltraWebTab1" runat="server" BorderColor="#949C9C" BorderStyle="Solid" 
            BorderWidth="1px" DisplayMode="Scrollable" Width="400px"  
            ThreeDEffect="False"> 
            <Tabs> 
                <igtab:Tab Text="Small Product No" Tooltip="Small Product Number"> 
                    <ContentTemplate> 
                        <fieldset> 
                            <asp:Label ID="Image1Label" runat="server" /><br /> 
                            <asp:TextBox ID="File1" runat="server" /> 
                            <asp:Button OnClientClick="OpenFileExplorerDialog(); return false;" ID="SelectImage1Button" 
                                runat="server" Text="Select" /> 
                            <asp:Button ID="upload1Button" runat="server" Text="Upload" OnClick="upload1Button_Click" /> 
                        </fieldset> 
                    </ContentTemplate> 
                </igtab:Tab> 
                <igtab:Tab Text="Large Product No" Tooltip="Large Product No"> 
                    <ContentTemplate> 
                        <fieldset> 
                            <asp:Label ID="Label1" runat="server" /><br /> 
                            <asp:TextBox ID="TextBox1" runat="server" /> 
                            <asp:Button OnClientClick="OpenFileExplorerDialog(); return false;" ID="Button2" 
                                runat="server" Text="Select" /> 
                            <asp:Button ID="Button3" runat="server" Text="Upload" OnClick="upload1Button_Click" /> 
                        </fieldset> 
                    </ContentTemplate> 
                </igtab:Tab> 
                <igtab:Tab Text="Product Thumbnail" Tooltip="Product Thumbnail"> 
                </igtab:Tab> 
                <igtab:Tab Text="Large Product Image 1" Tooltip="Large Product Image 1"> 
                </igtab:Tab> 
                <igtab:Tab Text="Large Product Image 2" Tooltip="Large Product Image 2"> 
                </igtab:Tab> 
            </Tabs> 
            <RoundedImage FillStyle="LeftMergedWithCenter" HoverImage="ig_tab_winXPs2.gif"  
                LeftSideWidth="7" NormalImage="ig_tab_winXPs3.gif" RightSideWidth="6"  
                SelectedImage="ig_tab_winXPs1.gif" ShiftOfImages="2" /> 
            <SelectedTabStyle> 
                <Padding Bottom="2px" /> 
            </SelectedTabStyle> 
            <DefaultTabStyle BackColor="GhostWhite" Font-Names="Microsoft Sans Serif"  
                Font-Size="8pt" ForeColor="Black" Height="22px"> 
                <Padding Top="2px" /> 
            </DefaultTabStyle> 
        </igtab:UltraWebTab> 
 
        <script type="text/javascript"> 
            function OpenFileExplorerDialog() { 
                var wnd = $find("<%= ExplorerWindow.ClientID %>"); 
                wnd.show(); 
            } 
 
            //This function is called from the Explorer.aspx page 
            function OnFileSelected(wnd, fileSelected) { 
                var textbox = $get("<%= File1.ClientID %>"); 
                textbox.value = fileSelected; 
            } 
        </script> 
 
        <telerik:RadWindow runat="server" Width="650px" Height="560px" VisibleStatusbar="false" 
            Style="z-index: 101" NavigateUrl="~/Rebecca/FileExplorer/Image1.aspx" ID="ExplorerWindow" 
            Modal="true" Behaviors="Close,Move"> 
        </telerik:RadWindow> 
         
        <script type="text/javascript"> 
            function OpenLargeImage() { 
                var wnd = $find("<%= RadWindow1.ClientID %>"); 
                wnd.show(); 
            } 
 
            //This function is called from the Explorer.aspx page 
            function OnFileSelected(wnd, fileSelected) { 
                var textbox1 = $get("<%= TextBox1.ClientID %>"); 
                textbox1.value = fileSelected; 
            } 
        </script> 
 
        <telerik:RadWindow runat="server" Width="650px" Height="560px" VisibleStatusbar="false" 
            Style="z-index: 101" NavigateUrl="~/Rebecca/FileExplorer/LargeProductNo.aspx" ID="RadWindow1" 
            Modal="true" Behaviors="Close,Move"> 
        </telerik:RadWindow> 

Simon
Top achievements
Rank 1
 answered on 09 Mar 2010
2 answers
130 views

Hi

i have a rad frid craeted dynamicaly and i want to increase the width of the column in Edit mode.
i tried several things but failed.

boundNameColumn.FilterControlWidth =

Unit.Pixel(600);

 

 

boundNameColumn.HeaderStyle.Width = Unit.Pixel(600);

 

boundNameColumn.ItemStyle.Width =

Unit.Pixel(600);

 

grid.ClientSettings.EnableAlternatingItems =

true;

 

grid.MasterTableView.AlternatingItemStyle.BackColor =

Color.FromName("#F2F3F5");

 

grid.MasterTableView.TableLayout =

GridTableLayout.Fixed;

 

grid.MasterTableView.AllowFilteringByColumn =

true;

 


grid.MasterTableView.EditMode =

GridEditMode.InPlace;

 

grid.MasterTableView.EditItemStyle.Width =

Unit.Pixel(600);

 



please suggest how to achieve this.

bharat kumar
Top achievements
Rank 1
 answered on 09 Mar 2010
1 answer
118 views
I have a folder with PDF documents.  I have a library that will take a page from each file and convert it to a bitmap.  I would then like to take that in memory image and place it in a image column in a grid without haveing to write it to disk and the place the URL in the image column.  Is this possible?

Thanks
Veli
Telerik team
 answered on 09 Mar 2010
2 answers
118 views
Hi!

We´ve found an issue with the document manager. Using IE8 (and FireFox):
  • add some text and wrap it with span-tags
  • click documentmanager and select a document
  • The Link Text and textbox isn´t visible

If you remove the span tags link Text is visible.

You can reproduce at:: 
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

Kind Regards





Rumen
Telerik team
 answered on 09 Mar 2010
1 answer
55 views
We noticed a problem while using the save on  Editor with IE 8.0,  on save the page fails to redirect unless, we click on a new tab or new window.

Appreciate a quick suggestion to this problem.

Thanks,
Shubod


Rumen
Telerik team
 answered on 09 Mar 2010
1 answer
100 views
Hi ,
i'm using Client-side Insert/Update/Delete  Grid control. In add/edit tab I am using a combo box. Depending on the selection of combovalue I need to hide and show some rows. After page load when I try to change combobox value it gives me following error
"Object doesnot support this property or method".

Here is my code:


 

<telerik:RadComboBox ID="RcmbControlType" runat="server" Height="200px" Width="200px"

 

 

DropDownWidth="200px" EmptyMessage="Choose a Control" HighlightTemplatedItems="true"

 

 

DataSourceID="SqqlDSControlType" DataTextField="ControlName" DataValueField="ID" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged()">

 

</telerik:RadComboBox>

 

function

 

OnClientSelectedIndexChanged(sender, args)

 

{

var item = eventArgs.get_item();

alert(item);

 

}


 

Veselin Vasilev
Telerik team
 answered on 09 Mar 2010
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?