Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
153 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
123 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
114 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
109 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
51 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
95 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
1 answer
87 views
Hai

This is karthik from visual consultancy services i have problem in radupload controls when i try to upload one txt file. that file contanin this my cont check below.

Alter table FAQ add displayorder Integer

update FAQ set displayorder=1 where faqid=124

above two line are content for that txt file if upload this file its get error like this

XML Parsing Error: no element found
Location: http://test1.tsunamicms.com/Clients/UploadFileManager.aspx?CID=11&objtype=CustomObjects&TPath=CustomObjects&ObjId=&rwndrnd=0.6885735499457923&RadUrid=7d32d2fd-e64d-4212-8767-93358b80cf21
Line Number 1, Column 1:

this proble have only new version pls help me how to solve this broblem

Thank & regards
pl.karthik

Veselin Vasilev
Telerik team
 answered on 09 Mar 2010
1 answer
66 views
hi telerik,
I am using Radcombo (Version : Q3 2009 SP2 ) as an user control in my program. this user control is a multicolumn autocomplete.
when i am enter a value ( eg: "3") then the event "_ItemsRequested" will work and displays all the records starting with "3". my issue is when i am selecting an item from this drop down using mouse, this record will selected in the combo. but when i am clicking out side the combo, the selected value is changing ( the first record which stating with "3" appears ).
i know that if i make the radcombo box AutoPostBack = "True" then it will be ok. but can you tel me is there any other solution for this with out making AutoPostBack = "True".
find the code for the user control

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ucMulticolumnAutocomplete.ascx.vb" 
    Inherits="UserControl_ucMulticolumnAutocomplete" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<div> 
    <telerik:RadComboBox ID="RadCmbAutoCompleate" runat="server"   
        AllowCustomText="false" AutoPostBack="false" 
        EnableLoadOnDemand="True" Width"100px" MarkFirstMatch="true" Height="300px" 
        HighlightTemplatedItems="true" ShowToggleImage="False" DropDownWidth="400px"   
        ItemRequestTimeout="500" EnableEmbeddedSkins="false"   
        CausesValidation="false" OffsetX="0" ZIndex="16000" > 
        <HeaderTemplate> 
            <table style="width: 400px; text-align: left">  
                <tr> 
                    <td style="width: 100px;">  
                        <%=FirstField%> 
                    </td> 
                    <td style="width:300px;">  
                        <%=SecondField%> 
                    </td> 
                </tr> 
            </table> 
        </HeaderTemplate> 
        <ItemTemplate> 
            <table style="width: 400px; text-align: left">  
                <tr> 
                    <td style="width: 100px;">  
                        <%#DataBinder.Eval(Container.DataItem, FirstField)%> 
                    </td> 
                    <td style="width: 300px;">  
                        <%#DataBinder.Eval(Container.DataItem, SecondField)%> 
                    </td> 
                </tr> 
            </table> 
        </ItemTemplate> 
 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </telerik:RadComboBox> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
    ConnectionString="<%$ ConnectionStrings:PCMSConnectionString %>">  
    </asp:SqlDataSource> 
</div> 
Veselin Vasilev
Telerik team
 answered on 09 Mar 2010
4 answers
185 views
For this page:http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx
For method:
RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

when I'm adding items in via:
RadComboBox1.Items.Add(new RadComboBoxItem(data.Rows[i]["CompanyName"].ToString(), data.Rows[i]["CompanyName"].ToString()));

It does not render the text of the item as HTML (basic stuff like an <i>, <b> and maybe <br/>). It just prints out the HTML tags as text. How can I make it such that the text of the item renders as HTML?







Kalina
Telerik team
 answered on 09 Mar 2010
1 answer
99 views
Hi,
(1).I am doing a RadScheduler .It is Groupby Date and Shift.
(2).After Grouping, its result is as below

------------------------------------------------------------------------
3/3/2010        |   4/3/2010
S| S|S|S|S|S|S | S| S|S|S|S|S|S|
------------------------------------------------------------------------

(3).Is it possible for Shift header to show completely as below?
------------------------------------------------------------------------
3/3/2010                                                               |   4/3/2010
Shift1| Shift2|Shift3|Shift4|Shift5|Shift6|Shift7         | Shift1| Shift2|Shift3|Shift4|Shift5|Shift6|Shift7

------------------------------------------------------------------------

(4)Another question is, is it possible to disallow the drag drop data to be deleted?


TQ.

Kamen Bundev
Telerik team
 answered on 09 Mar 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?