Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
108 views
Hi,

I have a web user control that contains a RadGrid and a web page that hosts multiple instances of the web control.  I set the data source for the grid as a property to the control before the page loads.

Since I have multiple controls, I cannot easily use ViewState or Sessions to get/save the data source for the grid after an operation that causes a postback of the web page and web user control (Since the keys of the ViewState or Session would need to be changed per each instance of the user control so that the contents from one instance of the user control do not overwrite the contents of the other).

I would like to get the data source back directly from the RadGrid and was wondering if this is possible and if so, how to do it.

Thanks,
Tom
Top achievements
Rank 1
 asked on 20 Jan 2012
2 answers
109 views
Hi Telerik Team,

I'm using the radfileexplorer to show the content of my sharepoint 2010 library. However it was very slow when loading all my content, so I'm trying the treeview explorer mode. Just like this.

<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Language="es-ES" OnClientFileOpen="OnClientFileOpen" AllowPaging="true" VisibleControls="Grid,Treeview" explorermode="FileTree">
 </telerik:RadFileExplorer> 


But the problem I'm getting right now is that I can't see my files icon. Everything loads great, but to every file loads the same icon (the unknown file one), the folders load good.


So I was wondering if there's anyway to recognize my file extension and get the correct one


Thanks in advance

Best Regards

Raúl Ortega
Raul
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
92 views
Hello,
        I have 2 columns in Database
 1. XML_Data (Contains my data to show in RAD Editor)
 2. XSL_Data (Contains my Styling to implement on the XML data.)

 I am combining both of them in my code to generate final result which is shown in RAD Editor. Now if in Design mode user (say for e.g) changes the text to bold, than in HTML mode, the changes take effect which has my generated code. What I want is to make style changes in XSL_Data only and Data changes in XML_Data only.

Please HELP!!!!!!!!!
Rumen
Telerik team
 answered on 20 Jan 2012
1 answer
112 views
I'm writing to ask how best to store a document path in an SQL Server - if the document path is in a different drive;

For example, if a View Path is stored as \Customers - and is in the root folder of the web application, I am able to apply the path to the RadFileExplorer with the below code - after obtaining the document path from the SQL Server database:

RadFileExplorer1.Configuration.ViewPaths = listViewPaths.ToArray();

However, if the document path is in a different drive - such as

\\FLEET01\D$\Documents\Customers\ - the RadFileExplorer is not populated;

 
No errors occur on the web server, which indicates to me that the format is OK;

Any insight is appreciated;

Dobromir
Telerik team
 answered on 20 Jan 2012
2 answers
49 views
Hi
I've used RadTooltipManager to tooltipify element , required tooltips are loaded by a webservice that is defined in RadTooltipManager 
I was thinking about is it possible to save loaded tooltip locally and prevent other requests to send to server ?
Requests can be canceled in OnClientRequestStart
How can I get fetched tooltip in OnClientResponseEnd or any other possible event ?
and How can I display saved tooltip in OnClientRequestStart after canceling the request ?

Thank You Very Much , For Your Feedbacks


reza
Top achievements
Rank 1
 answered on 20 Jan 2012
2 answers
183 views
hi 
i have a content page and a RadGrid within it, edit form template implemented, loading panel and rad ajax manager.
when i click the edit button, a popup template form viewed, when i click the cancel button "sometimes" loading panel keeps loading and sometimes everything is OK, also i've tried to implement hide and show the loading panel explicitly using the JavaScript code  
snippet in the Telerik documentation website, script manager is defined at master page.
i've tested this page hundreds i hope to find a solution.

please help, thanks
Rasheed
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
75 views
The radtreeview node expands and collapses both using left arrow key and right arrow key. Is there a way to restrict the user to expand only using right key and collapse using left key, other than handling javascript events?
Plamen
Telerik team
 answered on 20 Jan 2012
3 answers
371 views

 

Hi, I know that this topic was raised here before but I can’t really get anywhere reading previous posts. Could someone point me in the right direction?

I have created a clear page , added radgrid, object data source and  radscriptmanager, paging enabled(10) . Objectdatasource is using dataset based on stored procedure retrieving 100k rows.  I understand that initial load time can be slow as it’s a lot of data, but I was hoping that switching between pages will be really quick.  Looking at profiler when I go form one page to another the same query is executed on sql server, I am not sure why we would query for data we already have.  Could someone tell me what I am doing wrong and what should I do to make it quicker ?

I am using: version 2011.1.519.35

Thank you for help
Pavlina
Telerik team
 answered on 20 Jan 2012
2 answers
102 views
I'm not sure if the loading panel is not showing because the ajax manager is not working or vice versa. But I do know the loading panel is not showing and it appears that the page is still performing a postback by the looks of the browser. Can you help? Here's my code
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                       <AjaxSettings>
                           <telerik:AjaxSetting AjaxControlID="grdActivity">
                               <UpdatedControls>
                                   <telerik:AjaxUpdatedControl ControlID="grdActivity" LoadingPanelID="RadAjaxLoadingPanel1" />
                               </UpdatedControls>
                           </telerik:AjaxSetting>
                       </AjaxSettings>
                   </telerik:RadAjaxManager>
                   <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
                   </telerik:RadAjaxLoadingPanel>
                  <div id="RecentActivityContent" class="QuickViewContent">
                     <telerik:RadGrid runat="server" ID="grdActivity" DataSourceID="objActivity" Width="360px"
                      GridLines="Horizontal" Skin="Sunset" ShowHeader="false" >
                      <HeaderStyle CssClass="HistoryGridHeader" />
                       <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                       <MasterTableView AutoGenerateColumns="false" CssClass="GridRecentActivity">
                           <GroupByExpressions>
                               <telerik:GridGroupByExpression>
                                   <SelectFields>
                                       <telerik:GridGroupByField FieldAlias="Date" FieldName="Date" FormatString="{0:D}"
                                           HeaderValueSeparator=" from date: " />
                                   </SelectFields>
                                   <GroupByFields>
                                       <telerik:GridGroupByField FieldName="Date" SortOrder="Descending" >
                                       </telerik:GridGroupByField>
                                   </GroupByFields>
                               </telerik:GridGroupByExpression>
                           </GroupByExpressions>
                           <Columns>
                               <telerik:GridTemplateColumn DataField="Message" HeaderText="Message" UniqueName="Message">
                                   <ItemTemplate>
                                       <asp:Label runat="server" id="Label1" Text='<%# Eval("Type") %>' CssClass="FirstColumn" />   -  
                                       <asp:Label runat="server" id="lblMessage" Text='<%# Eval("Message") %>' />
                                   </ItemTemplate>
                               </telerik:GridTemplateColumn>
                           </Columns>
                       </MasterTableView>
                       <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                           <Selecting AllowRowSelect="True"></Selecting>
                           <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True"
                           ResizeGridOnColumnResize="False"></Resizing>
           </ClientSettings>
                   </telerik:RadGrid>
Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
73 views
I have set up my tabcontrol, but when it runs it never moves off of the first one.  I think it has something to do with the
selectedindex="0", but the builder didn't put anything in for that.  I tried the Javascript I found on here but that just generates
an error that Microsoft JScript runtime error: Unable to get value of the property 'get_element': object is null or undefined
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0"
    ontabclick="RadTabStrip1_TabClick" Skin="Black">
    <Tabs>
        <telerik:RadTab runat="server" NavigateUrl="~/Default.aspx"
            Selected="True" Text="Home">
            <Tabs>
                <telerik:RadTab runat="server" NavigateUrl="~/Careers.aspx"
                    Text="Careers">
                </telerik:RadTab>
                <telerik:RadTab runat="server" NavigateUrl="~/ContactUs.aspx" 
                    Text="ContactUs">
                </telerik:RadTab>
                <telerik:RadTab runat="server" NavigateUrl="~/About.aspx" 
                    Text="About Us">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTab>
        <telerik:RadTab runat="server" NavigateUrl="~/Service.aspx"
             Text="Services">
            <Tabs>
                <telerik:RadTab runat="server" NavigateUrl="~/GetAQuote.aspx" 
                    Text="Get A Quote">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTab>
        <telerik:RadTab runat="server" NavigateUrl="~/Products.aspx"
             Text="Products">
            <Tabs>
                <telerik:RadTab runat="server" NavigateUrl="~/pads.aspx"  Text="Pads">
                </telerik:RadTab>
                <telerik:RadTab runat="server" NavigateUrl="~/holiday1.aspx" 
                    Text="Holiday Cards">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTab>
        <telerik:RadTab runat="server" NavigateUrl="~/Resources.aspx"
             Text="Resources">
        </telerik:RadTab>
        <telerik:RadTab runat="server" NavigateUrl="~/Uploadafile.aspx"
             Text="Up Load A File">
        </telerik:RadTab>
        <telerik:RadTab runat="server" BackColor="Transparent" Font-Bold="True"
            ForeColor="Red" Text="On-line Specials" NavigateUrl="~/Specials.aspx">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<script type="text/javascript">
    function pageLoad() {
        var tabstrip = $find("RadTab");
        $telerik.$("a", tabstrip.get_element()).bind("focus", function () {
            var index = $telerik.$("a", tabstrip.get_element()).index(this);
            tabstrip.get_tabs().getTab(index).set_selected(true);
        });
    }
</script>

Kate
Telerik team
 answered on 20 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?