Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
111 views
Trying to bind the grid client-side.  However, no data is displayed even though valid JSON is being passed into assignDataSOurce.  Looks like it's dying on line 3 of the JS block (masterTable.set_dataSource(ds.d);). 


1.<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Metro"
2.                    AutoGenerateColumns="False" ViewStateMode="Disabled" ShowHeader="False">
3.                    <ClientSettings>
4.                        <Selecting AllowRowSelect="True" />
5.                        <Resizing AllowRowResize="False" ShowRowIndicatorColumn="False" AllowColumnResize="True" />
6.                        <Scrolling AllowScroll="False" />
7.                        <ClientEvents OnRowSelected="RowSelectionChanged"></ClientEvents>
8.                    </ClientSettings>
01.function assignDataSource(ds) {
02.            var masterTable = $("<%= RadGrid1.ClientID %>").get_masterTableView();
03.            masterTable.set_dataSource(ds.d);
04.            masterTable.dataBind();
05.        }
06.         
07.        function GetData() {
08.            
09. 
10.                var searchObj;
11.                var searchMethod;
12. 
13.                              $.ajax({
14.                    type: "POST",
15.                    contentType: "application/json; charset=utf-8",
16.                    url: "/WebServices/RwsSearch.svc/" + searchMethod,
17.                    data: JSON.stringify(searchObj),
18.                    dataType: "json",
19.                    success: function (data, textStatus) {
20.                        try {
21.                            assignDataSource(data);
22. 
23.                        } catch (err) {
24.                            //ConfirmOpen("Sorry, unable to search. " + err + " : " + textStatus);
25.                        }
26.                    },
27.                    failure: function (errMsg, textStatus) {
28.                        //ConfirmOpen(errMsg + " : " + textStatus);
29.                    }
30.                });
31.             
32.        }




Radoslav
Telerik team
 answered on 12 Mar 2014
1 answer
304 views
Could you recommend any tutorials/examples on how to use radGrid with EF6 data source?

The help topic http://www.telerik.com/help/aspnet-ajax/grid-entity-framework-crud-operations.html sounds to be out-of-date and contains a broken link to the online demo.

Thanks in advance.
Radoslav
Telerik team
 answered on 12 Mar 2014
1 answer
108 views
Hi All,

There has been some problem on my Radgrid viewing it on IE11/Windows 8.1. Columns not expanding, text are not showing and the whole grid is squeezing. Its working fine with Chrome and Firefox ver 26 and 27 running on Windows 8.1. Any info why this happening?

Thanks in advance,
RJ


Shinu
Top achievements
Rank 2
 answered on 12 Mar 2014
2 answers
173 views
I get System.OutOfMemoryException if i have to large files in the images folder...
Using "ImageGallery - Binding to Folder" exemple.

I have 7 images in the folder that is located on approximately 4-6 mb
Angel Petrov
Telerik team
 answered on 12 Mar 2014
9 answers
364 views
Hi,

I have RadPanelBar inside RadSplitter on master page.
I am calling different pages on click of RadPanelItem of RadPanelBar from master pages.
I have AjaxManager on master page with RadLoadingPanel for showing loading image.
Loading image doesnot animate when I redirects to another page but it works fine for other functionality.
Viktor Tachev
Telerik team
 answered on 12 Mar 2014
2 answers
87 views
I have a recurring appointment, with one exception. I edit the series, and press "Reset exceptions" in the advanced form, after which my resources on the advanced form have cleared and moved araound, and the validators apparently have kicked in as the fields are marked as erroneous.

If the exception in the series is a deleted appointment the advanced form behaves as expected.

I am sure I have done something wrong, and I don't know how to start debugging this, - could you please point me in the right direction?


Regards, Jill-Connie Lorentsen
Jill-Connie Lorentsen
Top achievements
Rank 1
 answered on 12 Mar 2014
5 answers
135 views
I want to set date format to template column same like below

2/28/2014 11:54:42.832921 AM


Please help me how to set date format like this.

Thanks in davance
Princy
Top achievements
Rank 2
 answered on 12 Mar 2014
6 answers
263 views
Is there a way to create a tab client side and apply a tab template to it?  I have the template being applied to all tabs and it works if they were created on the initial load of the page but when I add a tab using client-only code the tab template is not applied. 

Update.  I was creating the template server side which would explain why the template would not be applied to tabs created client side.  Does anyone have more information on making a global tab template that will be applied to all tabs (hopefully including newly created tabs client side).

I've seen this example (http://www.telerik.com/DEMOS/ASPNET/Prometheus/TabStrip/Examples/Functionality/Templates/DefaultCS.aspx) which is done by applying tab specific templates, not a global template.  I've also seen the help information here:
http://www.telerik.com/help/aspnet-ajax/tab_add-templates-design-time.html

These are not helpful at explaining simple things like getting the tab text using Databinder.Eval so you can set it in a global template (which is required for dynamically created tabs).  I would like to do a little more advanced work with tab templates but need a small push in the right direction.
Shinu
Top achievements
Rank 2
 answered on 12 Mar 2014
3 answers
120 views
When a RadTabStrip was moved into our header container control it stopped working.  It no longer appears to be associating itself with the MultiPageView control.  Previously the tab strip was at the same level in the control tree as the multi page, however, it is now placed in a header control which uses a content template.  You can see from the client object create statement that the IDs for the multi page and the tabs are missing (I would think the control should fail at this point if an ID was specified and it couldn't find the control).  I tried setting the client ID explicitly to the ID field and that didn't work.

I added the control named RadTabStrip1 for testing.
Works
            <Efficio:EfficioContainer ID="cHeader" ContainerType="Tabbed" Width="658" runat="server">                
            <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" MultiPageID="rmpMain" EnableEmbeddedSkins="False" Width="375" Align="Right" CssClass="tabStrip" runat="server">
                <Tabs>
                    <telerik:RadTab PageViewID="pvGeneral" Text="Add Pending" Value="Opportunity" runat="server" />
                    <telerik:RadTab PageViewID="pvActivity" Text="Add Activity" Value="Activity" runat="server" />
                </Tabs>
            </telerik:RadTabStrip>
            <Efficio:EfficioHeader ID="hTitle" HeaderType="Container" LeftWidth="220" runat="server">
                <ContentTemplate>
                    <Efficio:EfficioHeaderMenu ID="hmConfiguration" Width="200" runat="server">
                        <ItemTemplate>                            
                            <Efficio:EfficioContainer ID="cConfiguration" ContainerType="White" runat="server">
                                <Efficio:EfficioHeader ID="hConfiguration" Text="Configure" runat="server" />
                                <asp:CheckBox ID="chkEnableStageTasks" Text="Stage Tasks Enabled" ClientIDMode="Static" runat="server" />
                                <Efficio:EfficioButton ID="btnClose" Text="Close" OnClientClick="ConfigureStages();CloseHeaderMenu();return false;" runat="server"   />
                            </Efficio:EfficioContainer>
                        </ItemTemplate>
                    </Efficio:EfficioHeaderMenu>
                    <telerik:RadTabStrip ID="tsMain" SelectedIndex="0" MultiPageID="rmpMain" EnableEmbeddedSkins="False" Skin="EfficioSkin" Width="375" Align="Right" CssClass="tabStrip" OnClientTabSelected="tsMain_onTabSelected" runat="server">
                        <Tabs>
                            <telerik:RadTab PageViewID="pvGeneral" Text="Add Pending" Value="<%# TabName.Opportunity %>" runat="server" />
                            <telerik:RadTab PageViewID="pvActivity" Text="Add Activity" Value="<%# TabName.Activity %>" runat="server" />
                            <telerik:RadTab PageViewID="pvProposal" Text="Proposal" Value="<%# TabName.Proposal %>" runat="server" Visible="False" />
                            <telerik:RadTab PageViewID="pvHistory" Text="Activity History" Value="<%# TabName.History %>" Visible="false" runat="server" />
                        </Tabs>
                    </telerik:RadTabStrip>
                </ContentTemplate>
            </Efficio:EfficioHeader>            
            <br class="clear" />            
            <telerik:RadMultiPage ID="rmpMain" SelectedIndex="0" CssClass="radMultiPage multiPageContainer" runat="server">

Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTabStrip, {"_align":2,"_selectedIndex":0,"_skin":"Default","clientStateFieldID":"ctl00_cphM_cHeader_RadTabStrip1_ClientState","multiPageID":"ctl00_cphM_cHeader_rmpMain","selectedIndexes":["0"],"tabData":[{"value":"Opportunity","pageViewID":"ctl00_cphM_cHeader_pvGeneral"},{"value":"Activity","pageViewID":"ctl00_cphM_cHeader_pvActivity"}]}, null, null, $get("ctl00_cphM_cHeader_RadTabStrip1"));
});


Doesn't work
            <Efficio:EfficioContainer ID="cHeader" ContainerType="Tabbed" Width="658" runat="server">

            <Efficio:EfficioHeader ID="hTitle" HeaderType="Container" LeftWidth="220" runat="server">
                <ContentTemplate>
                    <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" MultiPageID="rmpMain" EnableEmbeddedSkins="False" Width="375" Align="Right" CssClass="tabStrip" runat="server">
                        <Tabs>
                            <telerik:RadTab PageViewID="pvGeneral" Text="Add Pending" Value="Opportunity" runat="server" />
                            <telerik:RadTab PageViewID="pvActivity" Text="Add Activity" Value="Activity" runat="server" />
                        </Tabs>
                    </telerik:RadTabStrip>

                    <Efficio:EfficioHeaderMenu ID="hmConfiguration" Width="200" runat="server">
                        <ItemTemplate>                            
                            <Efficio:EfficioContainer ID="cConfiguration" ContainerType="White" runat="server">
                                <Efficio:EfficioHeader ID="hConfiguration" Text="Configure" runat="server" />
                                <asp:CheckBox ID="chkEnableStageTasks" Text="Stage Tasks Enabled" ClientIDMode="Static" runat="server" />
                                <Efficio:EfficioButton ID="btnClose" Text="Close" OnClientClick="ConfigureStages();CloseHeaderMenu();return false;" runat="server"   />
                            </Efficio:EfficioContainer>
                        </ItemTemplate>
                    </Efficio:EfficioHeaderMenu>
                    <telerik:RadTabStrip ID="tsMain" SelectedIndex="0" MultiPageID="rmpMain" EnableEmbeddedSkins="False" Skin="EfficioSkin" Width="375" Align="Right" CssClass="tabStrip" OnClientTabSelected="tsMain_onTabSelected" runat="server">
                        <Tabs>
                            <telerik:RadTab PageViewID="pvGeneral" Text="Add Pending" Value="<%# TabName.Opportunity %>" runat="server" />
                            <telerik:RadTab PageViewID="pvActivity" Text="Add Activity" Value="<%# TabName.Activity %>" runat="server" />
                            <telerik:RadTab PageViewID="pvProposal" Text="Proposal" Value="<%# TabName.Proposal %>" runat="server" Visible="False" />
                            <telerik:RadTab PageViewID="pvHistory" Text="Activity History" Value="<%# TabName.History %>" Visible="false" runat="server" />
                        </Tabs>
                    </telerik:RadTabStrip>
                </ContentTemplate>
            </Efficio:EfficioHeader>            
            <br class="clear" />            
            <telerik:RadMultiPage ID="rmpMain" SelectedIndex="0" CssClass="radMultiPage multiPageContainer" runat="server">
                <telerik:RadPageView ID="pvGeneral" runat="server">

Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTabStrip, {"_align":2,"_selectedIndex":0,"_skin":"Default","clientStateFieldID":"ctl00_cphM_cHeader_hTitle_RadTabStrip1_ClientState","selectedIndexes":["0"],"tabData":[{"value":"Opportunity"},{"value":"Activity"}]}, null, null, $get("ctl00_cphM_cHeader_hTitle_RadTabStrip1"));
Dimitar Terziev
Telerik team
 answered on 12 Mar 2014
3 answers
455 views
In radEditor Q1 2014 AllowScripts marked as obsolete. How to correctly allow scripts in the editor content now?
Btw, I was not be able to find anything related in the online help.
Ianko
Telerik team
 answered on 12 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?