Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 views
I'm having an issue trying to update an ajaxpanel that contains a placeholder on a master page from the child page. 

In my master page, i expose the panel to the child page. The panel is wrapped in an ajaxpanel.

In the child page, I may have a button that does some function within its own ajaxpanel, the codebehind for that button will change the panel in the parent page, however the ajax panel on the parent page does not update.

Is there a better way to to do this?

My end result is to have a set of status-notifications (error, success, info, etc) on the master page that can easily be called from child pages within the application without the need for client-side scripting. 
Maria Ilieva
Telerik team
 answered on 26 Nov 2014
1 answer
205 views
Hi,
I am trying to get the RadComboBox [Cmb_Lst_Sel] in CommandItemTemplate on Page_Load. Once I have the list ids [lst_ids] from the RadComboBox [Cmb_Lst_Sel], I pass these IDs to SqlDataSource to filter and rebind the RadGrid [Grd_Url]. But I get error and cannot get a reference to the RadComboBox [Cmb_Lst_Sel]. 

What am I doing wrong?


    ASPX Code:
    ------------------------------------------------------------------------------
    <telerik:RadGrid ID="Grd_Url" runat="server" GridLines="None" AllowSorting="true" AllowPaging="true" PageSize="50"
        AllowFilteringByColumn="true" AutoGenerateColumns="False" AllowMultiRowSelection="true" AllowMultiRowEdit="true"
        AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True" 
        DataSourceID="Sql_Url" Width="100%">
        <SortingSettings SortToolTip=""/>
        <FilterItemStyle Width="100%"></FilterItemStyle>
        <GroupingSettings CaseSensitive="false"></GroupingSettings>
        <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric"/>
        <MasterTableView DataKeyNames="url_id" CommandItemDisplay="Top" EditMode="InPlace" InsertItemPageIndexAction="ShowItemOnCurrentPage"
            GroupLoadMode="Client" GroupsDefaultExpanded="true" TableLayout="Fixed" Width="100%">
            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <SelectFields>
                        <telerik:GridGroupByField FieldName="lst_name"></telerik:GridGroupByField>
                        <telerik:GridGroupByField FieldName="lst_sort"></telerik:GridGroupByField>
                    </SelectFields>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="lst_sort" SortOrder="Ascending"></telerik:GridGroupByField>
                        <telerik:GridGroupByField FieldName="lst_name" SortOrder="Ascending"></telerik:GridGroupByField>
                    </GroupByFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
            <CommandItemTemplate>
            <div id="Div_Tlb_Fixed">
                <telerik:RadToolBar ID="Tlb_Url" runat="server" EnableImageSprites="true"
                    OnButtonClick="CsTlbClick" OnClientButtonClicking="jsTlbUrl">
                    <Items>
                        <telerik:RadToolBarButton CommandName="Toggle" PostBack="false" ToolTip="Expand/Collapse Folders"
                            CssClass="Btn_ToggleN" HoveredCssClass="Btn_ToggleH"
                            CheckOnClick="true" AllowSelfUnCheck="true" Group="T">
                        </telerik:RadToolBarButton>
    
                        <telerik:RadToolBarButton CommandName="Clear" PostBack="false" ToolTip="Clear Website Selection"
                            CssClass="Btn_ClearN" HoveredCssClass="Btn_ClearH">
                        </telerik:RadToolBarButton>
                    </Items>
                </telerik:RadToolBar>
                <telerik:RadComboBox ID="Cmb_Lst_Sel" runat="server" DataTextField="lst_name" CheckBoxes="true"
                    DataValueField="lst_id" AutoPostBack="True" EnableCheckAllItemsCheckBox="true" 
                    DataSourceID="Sql_Lst" Width="20%">
                    <Items>
                        <telerik:RadComboBoxItem Text="All" Value="" Selected="true"></telerik:RadComboBoxItem>
                    </Items>
                </telerik:RadComboBox> 
            </div>
            </CommandItemTemplate>
            <Columns>
                <%--Some Columns here--%>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    
    <asp:SqlDataSource ID="Sql_Lst" runat="server" OnSelecting="CsSqlSelectingCmb"
    ConnectionString="<%$ ConnectionStrings:Con_Str %>"
        SelectCommand="SELECT [lst_id], [lst_name] 
                       FROM [t_Lists] 
                       WHERE [usr_id] = @usr_id 
                       ORDER BY [lst_sort]">
        <SelectParameters>
            <asp:Parameter Name="usr_id"/>
        </SelectParameters>
    </asp:SqlDataSource>
    
    
    C# Code:
    ------------------------------------------------------------------------------
    
        public partial class Cls_Url : System.Web.UI.UserControl
        {
            protected void Page_Load(object s, EventArgs e)
            {
                // Grab the RadComboBox in CommandItemTemplate on Page_Load
                CsSqlSelect(s, e);
            }
    
            protected void CsSqlSelect(object s, EventArgs e)
            {
                // I get error for the 2 lines below and cannot get a reference to the RadComboBox [Cmb_Lst_Sel]
                // What am I doing wrong?
                GridItem cmdItem = Grd_Url.MasterTableView.GetItems(GridItemType.CommandItem)[0];
                RadComboBox cmbLst = (RadComboBox)cmdItem.FindControl("Cmb_Lst_Sel");
    
                if (cmbLst.CheckedItems.Count > 0)
                {
                    var items = cmbLst.CheckedItems;
                    string lst_ids = "";
    
                    foreach (var item in items)
                    {
                        lst_ids += "'" + item.Value + "'" + ",";
                    }
    
                    lst_ids = lst_ids.Remove(lst_ids.Length - 1);
                }
    
                // Once I have the list ids [lst_ids] from the RadComboBox [Cmb_Lst_Sel], 
                // I pass these IDs to SqlDataSource to filter and rebind the RadGrid [Grd_Url]
            }
    
            protected void CsTlbClick(object s, RadToolBarEventArgs e)
            {
            }
    
            protected void CsSqlSelectingCmb(object s, SqlDataSourceCommandEventArgs e)
            {
                e.Command.Parameters["@usr_id"].Value = Membership.GetUser(HttpContext.Current.User.Identity.Name).ProviderUserKey;
            }
    
        } 

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

Radoslav
Telerik team
 answered on 26 Nov 2014
3 answers
50 views
There's a breaking change between Q2 and Q3 2014. Requests for a Telerik.Web.UI.WebResource (axd) now calls the Application_AcquireRequestState method in the global.asax. Anything before Q3 and the standard ASP AJAX axd requests do not call this method.

We have had to manually add specific code to ignore axd requests, this was not necessary before, is this going to be fixed?

Thanks,
Dimitar Terziev
Telerik team
 answered on 26 Nov 2014
1 answer
105 views
Here's my code

<telerik:RadComboBox ID="objetList" runat="server" Skin="Office2010Blue" Width="160px" onclientselectedindexchanged="ModifierCookieObjet" >
<Items>
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleFile %>"
Value="2" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleFolder %>"
Value="3" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleIMDFolder %>"
Value="13" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleURL %>"
Value="5" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitlePhysicalFile %>"
Value="8" />
<telerik:RadComboBoxItem runat="server" Text="<%$ Resources:global,lblTitleEmail %>"
Value="11" />
</Items>
</telerik:RadComboBox>

Here's my javascript

function ModifierCookieObjet(sender, eventArgs) {
var tpsexpire = 1000 * 60 * 60 * 24 * 365;
var item = eventArgs.get_item();
fixervaleur("LastUsedObjet", item.get_value(), tpsexpire)
}

My problem is that eventArgs is always undefined. Do you know why ?
Nencho
Telerik team
 answered on 26 Nov 2014
7 answers
150 views
Hi, I'd like to show the date heading in a different style for today's date in week view.
Is it possible?  I've updated the CSS on the time slot and that only changes the actual timeslots, not the corresponding heading for that day.
Thanks!
Boyan Dimitrov
Telerik team
 answered on 26 Nov 2014
1 answer
113 views
Hi,

I have a website on DNN 6.2.6 and telerik version 2013.2.717.40. We very recently moved the website to windows 2008 R2 (IIS7.5) from IIS6 on windows 2003 server. We are currently running the application pool in integrated mode in .net 4.0 with 32 bit enabled.  We are seeing huge spike in the memory whenever we are loading huge files using RadUpload control. We allow files upto 2GB to be uploaded, with 1.5GB file we are getting OutofMemoryExceptions. I monitored the memory usage, the instant I click submit button on my page, the memory is spiked by the approximately same size as the file I am uploading, this is happening even before the file barely started uploading. I understand that the RadUpload is replaced with RadAsyncUpload, this module is built 4 years ago and in the future we will move to that control but we need the issue to be resolved with RadUpload until we do so. 

I read through the http://www.telerik.com/help/aspnet-ajax/upload-getting-started.html and added the changes to web.config:

<system.webserver>
<modules>
. . .
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="integratedMode"/>
</modules>
<handlers>
. . .
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode"/>
</handlers>
</system.webserver>

In the modules section preCondition used to be mangedHandler and I changed it to integratedMode. The way the upload is being used is as follows:   

<telerik:RadUpload ID="_newFileFileUpload" runat="server" OnClientFileSelected="CheckIfZip" MaxFileInputsCount="1"
                    ControlObjectsVisibility="None" Width="300px" />

Any idea why the issue is happening.

Thank you,
dana










Peter Filipov
Telerik team
 answered on 26 Nov 2014
1 answer
115 views
Hello,

I am working on a project with a RadSplitter.
I have used the code example here

However, my project requirement is that I must have a Div element at the top of the page (above the RadSplitter).

Unfortunately, this causes a problem. When the user resizes the page to a smaller size, a horizontal scrollbar doesn’t appear at the bottom of the page.

Please see the following video:[See Video]

How can I solve this problem?

Thanks,
Daniel.
Daniel
Top achievements
Rank 1
 answered on 26 Nov 2014
1 answer
56 views
Hello,

My site works in this IE modes:
Browser Mode: IE10 Compat View.
Document Mode: IE5 quirks.

If I paste the flash video code inside the <span> tag and switch the editor to Design View, I see nothing in preview. Is there a way to fix this behaviour? I can reproduce this on the RadEditor demo page.

The code that I am using:
<span><object id="limelight_player_706467" class="LimelightEmbeddedPlayerFlash" name="limelight_player_706467" data="http://flash-animation.ru/img/fla/fire.swf" width="480" type="application/x-shockwave-flash"><param name="movie" value="http://flash-animation.ru/img/fla/fire.swf"/><param name="wmode" value="window"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="flashVars" value="playerForm=d5250f0fce0f4a7fbfb1f6d0ff2af2d4&amp;mediaId=6853d410e2c2466382fa8e2b637b59ee"/></object></span>

Thank you. Best Regards,
Viktor 
Ianko
Telerik team
 answered on 26 Nov 2014
4 answers
82 views
Hi all,
I try to set Client template for Search Box using SqlDataSource with this code
 
<telerik:RadSearchBox runat="server" ID="RadSearchBox1" Width="350"
                DataTextField="LocName" OnClientSearch="OnClientSearch"
                DataSourceID="SqlDataSource1" DataKeyNames="LocID" DataValueField="LocID">
                <DropDownSettings Height="400px">
                    <ClientTemplate>
                    <h3>#= Text #</h3>
                    <div class="details">                     
                        <span class="info">
                            <p>
                                <b> #= DataItem.Descr# </b>                               
                                 <b> #= DataItem.Lang# </b>
                                 <b> #= DataItem.Long# </b>
                            </p>
                        </span>
                    </div>
                    </ClientTemplate>
                </DropDownSettings>
            </telerik:RadSearchBox>

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TDMTConnectionString %>" SelectCommand="SELECT * FROM [tdmt_Location]"></asp:SqlDataSource>

But it's just get LocName.
Please, how can i get the others field (Descr, Lang, Long).
P/S: I custom this code from Client site Searchobox demo
Do Xuan
Top achievements
Rank 1
 answered on 26 Nov 2014
3 answers
232 views
I've a radgrid with popup for insert/edit the data , and i'm using Advanced binding using the Need data source Event
I noticed that the cancel command call the need data source implicitly 
i need to override this behavior to disable the auto rebind of RadGrid
Jayesh Goyani
Top achievements
Rank 2
 answered on 25 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?