Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
388 views
Hi, I want to use the file explorer as a file selector control in a sharepoint web part.  In other words, the user needs to select a file so that I know which file to process for him, and they will do that using the file explorer.

I have implemented a file browser content provider already, similar to Stoyan Stratev's content provider, and now I need to get the selected file information from the file explorer itself.  Can someone explain how to get the selected file information from the file explorer control?

Thanks!
Tomas
Top achievements
Rank 1
 answered on 08 Apr 2010
2 answers
133 views
I have 2 radcombobox in radgrid  , radcombobox A and radcombobox B.
The the grid is in add record mode in some situation , radcombobox B content are based on the selection on radcombobox A.

My problem is under the situation where the radcombobox B is not bind to any data, i can't find the radcombobox B by the coding below:
radCombo2 = CType(editItem.FindControl("ddlModuleParentGC"), RadComboBox)radCombo2 = CType(editItem.FindControl("ddlModuleParentGC"), RadComboBox)

My question is as below:
(1).Since the radcombobox B content is based on selection on  radcombobox A , does anyone know how to bind the data to the radcombobox B when the radgrid first go into add record mode? I think this will solve the problem.Pls correct me if i am wrong.

(2) My coding is as below
RadComboBox A=ddlAppID
RadComboBox B= ddlModuleParentGC


Public Sub BindSecondCombo(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) 
 
        Dim radCombo1 As RadComboBox 
        Dim radCombo2 As RadComboBox 
        Dim editItem As GridDataInsertItem 
 
 
        radCombo1 = CType(sender, RadComboBox) 
        editItem = CType(radCombo1.NamingContainer, GridDataInsertItem) 
 
 
 
        radCombo2 = CType(editItem.FindControl("ddlModuleParentGC"), RadComboBox) 
 
        If radCombo2 Is Nothing = False Then 
            radCombo2.ClearSelection() 
            radCombo2.DataSource = getRecordByType(7, radCombo1.SelectedValue, "", "", "", "", "") 
            radCombo2.DataTextField = "modulename" 
            radCombo2.DataValueField = "moduleid" 
            radCombo2.DataBind() 
            radCombo2.DataSource = getRecordByType(7, radCombo1.SelectedValue, "", "", "", "", "") 
            radCombo2.DataTextField = "modulename" 
            radCombo2.DataValueField = "moduleid" 
 
            radCombo2.DataBind() 
        End If 
    End Sub 


My code behind is
 <ajax:GridTemplateColumn  UniqueName="GCAppId" HeaderText="Application" SortExpression="AppId" > 
                    <HeaderStyle Width="100px" /> 
                    <ItemTemplate> 
                        <asp:Label ID="lblGCAppId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AppId") %>'></asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <asp:Label ID="lblGCEAppId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AppId") %>'></asp:Label> 
                     
   
                 <ajax:RadComboBox runat="server" ID="ddlAppId" DataSource="<%# getApp() %>"  OnSelectedIndexChanged="BindSecondCombo" 
                    DataTextField="Selection"  AutoPostBack ="true" 
                    DataValueField="AppId"  
                    SelectedValue='<%# DataBinder.Eval(Container.DataItem, "AppId") %>'></ajax:RadComboBox> 
                    
                     
                     
                    </EditItemTemplate> 
                </ajax:GridTemplateColumn> 
 
  
                <ajax:GridTemplateColumn  UniqueName="GCModuleParent" HeaderText="Module Parent" SortExpression="ModuleParent" > 
                    <HeaderStyle Width="100px" /> 
                    <ItemTemplate> 
                     
                        <asp:Label ID="lblModuleParent" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ModuleParent") %>'></asp:Label> 
                    </ItemTemplate> 
                     
                    <EditItemTemplate> 
                     
                       <ajax:RadComboBox runat="server" ID="ddlModuleParentGC" ></ajax:RadComboBox> 
                    <asp:textbox ID="txtModuleParent"  runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ModuleParent") %>'></asp:textbox> 
                         
                    </EditItemTemplate> 
                </ajax:GridTemplateColumn> 






johnson lim
Top achievements
Rank 1
 answered on 07 Apr 2010
1 answer
115 views
Hi Guys,

I have searched through the forum and cannot find how to convert the date into an SQL format string.

When the date is submitted it is in the "dd-mm-yyyy hh-mm-ss" format, trouble is, SQL Server stores its dates in "yyyy-mm-dd hh-mm-ss" format.

Is there a way of converting the date to SQL server date, I dont want the display date to look like the SQL date.

Thanks in advance.
Tony Casey
Top achievements
Rank 1
 answered on 07 Apr 2010
5 answers
280 views
I am encountering an issue with changing the Height of a RadPane when using ajax. I have a splitter control with a left pane, top right pane and a bottom right pane(envision MS Outlook). The right hand panes are loaded with WebUserControls depending on the selections made in the left pane control. With ajax disabled everthing works as expected, i.e. controls are loaded and unloaded, state is maintained/saved and I am able to change the height and width of all panes and splitbars, etc... . When I enable ajax everthing still works with the exception of being able to resize the RadPanes. I have reviewed several training videos and samples over the last week, but none of them address this issue.

Your help is greatly appreciated.
Shawn
Simon
Top achievements
Rank 1
 answered on 07 Apr 2010
1 answer
133 views
Hi,

this is shanker am using GridDateTimeColumn  in rad grid.It's fine it's working but here time show 1 am and 1 pm and 9 am and 9 pm ......... just like that. But i want  0 to 23 hrs how to get that formate please send any solutions 

this is my column 
 <telerik:GridDateTimeColumn DataField="start_time" HeaderText="Start Time" SortExpression="start_time" 
                       UniqueName="start_time" DataFormatString="{0:t}" PickerType="TimePicker" 
                       DataType="System.DateTime"  > 
                    </telerik:GridDateTimeColumn> 

thanks and regards 
shanker.B 
Bruno
Top achievements
Rank 2
 answered on 07 Apr 2010
1 answer
151 views
Hi,
Before I proceed to look for some Excel component,
I was wondering if Telerik Grid will have the capability to export out data to Excel format and at the same time:

1. Generate Excel chart on the fly. The chart should be in Excel format and can be edited (not in JPG)
2. Generate multiple sheets if we have multiple grids / radTabs

Thanks.
Daniel
Telerik team
 answered on 07 Apr 2010
4 answers
166 views
I have a Web Form which contains a user control say x. User control x contains several instances of a single user control y.
y contains a loading panel in which a image is present for display on click of a particular button. Say i repeat user control y 3 or 4 times on the user control x.

The loading panel in my case contains the image that needs to be displayed on click of a button. So, when the form is loaded i would have 3 or 4 loading panels and also its corresponding 3 or 4 proxies.

<telerik:RadAjaxLoadingPanel height="30" width="100" isSticky="true" id="loadingPane" runat="server" style="position:absolute;">
                    <asp:Image id="loadingImg" runat="server" ImageUrl="/_layouts/images/factiva/loading.gif" AlternateText="Loading..." BorderWidth="0"></asp:Image>
                </telerik:RadAjaxLoadingPanel>

<asp:Panel id="searchTreePanel" runat="server">
                        <telerik:RadTreeview id="rSTreeView" runat="server" EnableEmbeddedSkins="false" Skin="FactivaGray"></telerik:RadTreeview>                        
                        </asp:Panel>

<telerik:RadAjaxManagerProxy id="rAjaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="searchGo">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="searchTreePanel" LoadingPanelID="loadingPane" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

The issue i am facing is that no matter i click any of the three or four searchGo buttons i get the same image loaded and not the different one.
Any help would be great.




farsica
Top achievements
Rank 1
 answered on 07 Apr 2010
1 answer
114 views
Hello,
 I'm exporting a  Radgrid to a PDF but the result looks like the attached document.
 I can't seem to figure out what's causing the strange output.
New rows(<TR>) aren't starting in a new row. instead everything  appears os one long string.
 
 part of my grid code looks like this:
<telerik:RadGrid runat="server" ID="rgMediaInfo" Skin="Default" GridLines="None" 
                AllowSorting="true" ShowHeader="false" OnItemDataBound="rgMediaInfo_ItemDataBound">  
                <ExportSettings Pdf-PageTitle="Masters Details" ></ExportSettings>  
                <MasterTableView> 
                  
                    <ItemTemplate> 
                      <table width="320px">  
                      <colgroup > 
                      <col /> 
                      <col /> 
                      </colgroup> 
                             <tr> 
                                <td> 
                                    <asp:Label ID="lblMediaTypeLabel" runat="server" Text="Media Type"></asp:Label> 
                                </td> 
                                <td> 
                                    <asp:Label ID="lblMediaType" runat="server" Text='<%#Eval("MediaType")%>' ></asp:Label> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td> 
                                    <asp:Label ID="lblMediaAssetTypeLabel" runat="server" Text="Media Asset Type"></asp:Label> 
                                </td> 
                                <td> 
                                    <asp:Label ID="lblMediaAssetType" runat="server" Text='<%# Eval("MediaAssetType") %>'></asp:Label> 
                                </td> 
                            </tr> 
*  
*  
*  
*  
 

Daniel
Telerik team
 answered on 07 Apr 2010
7 answers
367 views

We have ran into an issue using the radcombobox with ShowMoreResultsbox and MarkFirstMatch properties set to true. After typing the first letter the radcombobox is loads the first 10 items as expected that match the letter typed in, but when the show more results is clicked only one value will be retrieved. It seems the e.text value no longer passes in what was typed, but since the MarkFirstMatch was set to true the first item in the list is passed into e.text.

 

Is there a way to hold the original value that was passed into the ItemsRequested e.text, instead of the autocompleted value?  We are wanting to still use the MarkFirstMatch.

 

 The issue can be replicated using the Load On Demand Demo and the 103208_sample.zip sample project.  

 

http://mono.telerik.com/Combobox/Examples/PopulatingWithData/AutoCompleteSql/DefaultCS.aspx

 

Add a few more companies that start will L into the database.

Open up the page with the radcombobox.

Type L.

After the RadComboBox is loaded, click the show more results button.

The list will be populated with the first 10 items. However the Summary will show “items 1-1 out of 1.”

 

Thanks for your help.

ColinBowern
Top achievements
Rank 1
 answered on 07 Apr 2010
14 answers
224 views
In IE and FF this is displayed properly.  However, in Safari, I get the right window height, however the actual content is condensed and I see scroll bars.  Any ideas on why this happens on Safari?

Thanks.


Doug Bass
Top achievements
Rank 1
 answered on 07 Apr 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?