Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
81 views
I need some help on the steps to take to bind data from a sharepoint webserivce call with C# ( calling the webservice from our public website as to display non editable events ).  

Can't seem to feed an XmlDocument object into the XmlSchedulerProvider, seems to need to be stored as a document on the server. 

Would it be better to parse the xml from the web service call into a generic list? 

Any insights will be helpful.  
Boyan Dimitrov
Telerik team
 answered on 26 Nov 2014
5 answers
302 views
Hi all,

I am struggling with binding some entities from the Entity Framework 6.0 to the RadGrid.
The solution contains an Entity Framework 6.1.1 Code First Migrations project in which I have a DBContext which contains several DBSets. A DBSet is just a set of POCO classes.

Now comes the struggle... How to bind it with a RadGrid inside an ASP.NET project. I already tried some things which I found in the demo`s forums and other internet posts.
I tried it with the EntityDataSource but this one only uses a ObjectContext instead of a DBContext. I know there is a NuGetPackage which contains an updated EntityDataSource and need to test this.
I also tried connecting the DBSet directly to the datasource property of the datagrid by using the NeedDataSource event. In this case I get an error on loading the web page: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported......For ASP.NET WebForms you can bind to the result of calling ToList() on the query or use Model Binding.

When I try to do as described in the above error and call the ToList() method on the DBSet the page is rendered correctly but all things like sorting, filtering, paging, etc are not working.

Can someone please help me on this and give me some advice how to bind the RadGrid to the Entity Framework 6.1.1 entities so the sorting, filtering, grouping, paging, etc is working out of the box?
Beside the above functionality I also need CRUD operations. I guess this has to be implemented through code and will not come Out Of the Box?

Thank you all in advance!!!
Sander
Top achievements
Rank 1
 answered on 26 Nov 2014
1 answer
186 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
219 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
69 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
117 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
159 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
123 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
138 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
69 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?