Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
213 views
I have a sample program and trying to use the declarative binding using WCF service. It does not give error but only shows empty grid. it also shows the count but not the data. Data service returns data JSON data as well that I can see via browser developer tools.
            <ClientSettings>
                <ClientEvents OnDataBindingFailed="onError" />
                <DataBinding Location="DataService.svc"
                    SelectMethod="GetStatesForGrid"                    
                    DataPropertyName="Data"
                    FilterParameterType="Linq"
                    SortParameterType="Linq"></DataBinding>
            </ClientSettings>

Here is the service interface:
    [ServiceKnownType(typeof(State))]
    [ServiceContract]
    public interface IDataService
    {
        [OperationContract]
        [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
        StateResult GetStatesForGrid(int startRowIndex, int maximumRows, string sortExpression, string filterExpression);

Here is the service code (this is just sample code, goal is not to actually try filtering paging etc, just to send data and see if it binds):

    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
    public class DataService : IDataService
    {
        public StateResult GetStatesForGrid(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)
        {
            StateResult result = new StateResult();
            List<State> states = GetDataFromDb();
            result.Count = states.Count;
            result.Data = states;

            return result;
        }

If I use the ASMX service and call the same service method - it works fine. But not for WCF.

Another issue is, I tried calling the same method via PageMethod and use the .aspx page and method name in the declarative clientsettings - but that gives error that 'startIndex' not found.
Marin
Telerik team
 answered on 14 Jan 2014
1 answer
74 views
Hi,

I am using drag and drop on the same RadTreeList. I removed paging on my Treelist and had
<Scrolling AllowScroll="true"/> in ClientSettings.
I am also using Ajax on it.
The Scrolling Functionality is normally working fine but It doesn't work,
When I try to drag an Item and Move it Up and Down to drop on something on the Same TreeList.
All the functionality is working fine when I don't have many items in the list,
I just need to get this scrolling thing done, If I have many items to display.
I tried many solutions online but all those seems to work with Silverlight.
Can you please help me with this? I wish I could have an event like 
AllowAutoScrollOnDragDrop which I use on RadGrid everytime.
<ClientSettings AllowAutoScrollOnDragDrop="true" >
<Scrolling AllowScroll="true" />
</ClientSettings>
Thanks in Advance, Narender

Venelin
Telerik team
 answered on 14 Jan 2014
5 answers
230 views
My Radgrid is binding to a list<>, the sort and staticHeader working fine, however it cannot sort and lost staticHeader after export to excel. Can anyone help me? Thanks.


protected void btnExportToExcel_Click(object sender, ImageClickEventArgs e)
    {
        ConfigureExport(RadGrid1);
        RadGrid1.ExportSettings.FileName = "title";
        RadGrid1.MasterTableView.Caption = "title";
        RadGrid1.MasterTableView.ExportToExcel();
        ScriptManager.GetCurrent(Page).RegisterPostBackControl(btnExportToExcel);
    }
Kostadin
Telerik team
 answered on 14 Jan 2014
1 answer
139 views

Hi,

I've created a simple application which usesz RadGrid to connectt o my Windows Azure SQL Database. When I run the site localy all the editing features of RadGrid work great.



But when I deploy to WA Web Sites when I click on the edit buton i.e. the loading panel just shows for a second and disappears.



I've attached the debugger from VS 2013 and the error I'm getting is:



Unhandled exception at line 15, column 16485 in http://my_app_name.azurewebsites.net/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:en-US:9d967110-0dc5-4d20-a086-c7556058bb3c:16e4e7cd:f7645509:22a6274a:ed16cbdc:88144a7a:58366029

0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500


Any suggestions how to fix it?

Maria Ilieva
Telerik team
 answered on 14 Jan 2014
1 answer
117 views
Hi , I'm using radtreeview width checkbox="true" style .
in button click I want to retrievechecked Items .
I try to do this is 2 ways, but both have zero item counts . please check my code
<asp:Button ID="Save" runat="server" Font-Names="Tahoma" Text="Save" OnClick="Save_Click" CssClass="savebutton"></asp:Button>
                      </div>
                      <telerik:RadTreeView ID="RadTreeView1" runat="server" DataTextField="SecNameFr" DataValueField="AccessId" DataFieldID="SecId" CheckBoxes="true" DataFieldParentID="SecIdRef" CheckChildNodes="true" Font-Names="tahoma" RenderMode="Classic" Skin="Office2010Blue">
                          <DataBindings>
                              <telerik:RadTreeNodeBinding Checkable="true" CheckedField="HasAccess" />
                          </DataBindings>
                      </telerik:RadTreeView>
protected void Save_Click(object sender, EventArgs e)
       {
           List<RadTreeNode> dss = RadTreeView1.CheckedNodes.ToList();
 
           Dictionary<int, bool> accessIdDic = new Dictionary<int, bool>();
           foreach (RadTreeNode item in RadTreeView1.Nodes)
           {
               if (item.Checked)
                   accessIdDic.Add(Convert.ToInt32(item.Value), item.Checked);
           }
          
       }
Shinu
Top achievements
Rank 2
 answered on 14 Jan 2014
1 answer
86 views
In my radgrid, I have a linkbutton column which opens up a radwindow.  The radwindow shows some details and has some editable fields and a save button.  I have a requirement from the users that once they click the save button in the window, they want the window to save their changes then automatically load the next radgrid row's details.  How would I go about doing something like this?
Viktor Tachev
Telerik team
 answered on 14 Jan 2014
1 answer
88 views
Hi,

When i zoom out an orgchart at some point the connecting lines disappear. How do i make sure the connecting lines are always visible no matter how much i zoom out.

Thanks
-Sekhar
Plamen
Telerik team
 answered on 14 Jan 2014
1 answer
77 views
Hello,

I have a RadGrid that uses a Static header.

<telerik:RadGrid
                        ID="radFolderGrid"
                        EnableViewState="true"
                        padding-left="15px"
                        runat="server"
                        Height="230px"
                        Width="990px"
                        AllowSorting="true"
                        CssClass="AddCustom"
                        EnableHeaderContextMenu="false"
                        BorderWidth="1px"
                        BorderColor="#CC9966"
                        EnableEmbeddedBaseStylesheet="false"
                        EnableEmbeddedSkins="false">
                        <AlternatingItemStyle CssClass="epListDataShadeLightNormal"></AlternatingItemStyle>
                        <ItemStyle CssClass="epListDataShadeDarkNormal"></ItemStyle>
                        <MasterTableView AutoGenerateColumns="False" Width="97.8%" TableLayout="Fixed">
                            <Columns>
                                <telerik:GridBoundColumn DataField="UI_LNAME" HeaderText="Last Name" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" ItemStyle-CssClass="epTextWrap" HeaderStyle-Width="100px" SortExpression="UI_LNAME" UniqueName="UI_LNAME" />
                                <telerik:GridBoundColumn DataField="UI_FNAME" HeaderText="First Name" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" ItemStyle-CssClass="epTextWrap" HeaderStyle-Width="100px" SortExpression="UI_FNAME" UniqueName="UI_FNAME" />
                                <telerik:GridBoundColumn DataField="eopff_eff_date" HeaderText="Latest Eff. Date" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="90px" SortExpression="eopff_eff_date" UniqueName="eopff_eff_date" />
                                <telerik:GridBoundColumn DataField="EUI_CPO_ID" HeaderText="PO ID" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="75px" SortExpression="EUI_CPO_ID" UniqueName="EUI_CPO_ID" />
                                <telerik:GridBoundColumn DataField="EUI_ORG_CODE" HeaderText="Org Code" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="75px" SortExpression="EUI_ORG_CODE" UniqueName="EUI_ORG_CODE" />
                                <telerik:GridBoundColumn DataField="EUI_ACTIVITY_CODE" HeaderText="Activity Code" HeaderStyle-Width="75px" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" SortExpression="EUI_ACTIVITY_CODE" UniqueName="EUI_ACTIVITY_CODE" />
                                <telerik:GridBoundColumn DataField="eopff_folder_status" HeaderText="Folder Status" HeaderStyle-Wrap="true" ItemStyle-Wrap="True" HeaderStyle-Width="75px" SortExpression="eopff_folder_status" UniqueName="eopff_folder_status" />
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Open" HeaderText="Open" CommandName="Open" DataTextField="Open" ImageUrl="../images/ig_treeXPFolderClosed.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Add_Doc" DataTextFormatString="Add Doc" HeaderText="Add Doc" CommandName="Add Doc" DataTextField="Add Doc" ImageUrl="../images/tb_add.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Show_All_Docs" DataTextFormatString="Show All Docs" HeaderText="Show All Docs" CommandName="Show All Docs" DataTextField="Show All Docs" ImageUrl="../images/SelectedFolder.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Emergency_Data" DataTextFormatString="Emergency Data" HeaderText="Emergency Data" CommandName="Emergency Data" ImageUrl="../images/tb_emergency.gif" DataTextField="Emergency Data">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="Clip_Folder" DataTextFormatString="Clip Folder" HeaderText="Clip Folder" CommandName="Clip Folder" DataTextField="Clip Folder" ImageUrl="../images/tb_ClipFolder.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="View_PDQ" DataTextFormatString="View PDQ" HeaderText="View PDQ" CommandName="View PDQ" DataTextField="View PDQ" ImageUrl="../images/tb_pdq.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="View_Career_Brief" DataTextFormatString="View Career Brief" HeaderText="View Career Brief" CommandName="View Career Brief" DataTextField="View Career Brief" ImageUrl="../images/tb_cb.gif">
                                    <HeaderStyle CssClass="action" HorizontalAlign="Center" />
                                    <ItemStyle CssClass="action" HorizontalAlign="Center" />
                                </telerik:GridButtonColumn>
                                <telerik:GridBoundColumn DataField="eopff_side" DataType="System.Decimal" HeaderStyle-Width="0px" HeaderText="ID" UniqueName="eopff_side" Display="false" />
                                <telerik:GridBoundColumn DataField="UI_ID" DataType="System.Decimal" HeaderStyle-Width="0px" HeaderText="ID" UniqueName="UI_ID" Display="false" />
                            </Columns>
                        </MasterTableView>
                        <SortingSettings EnableSkinSortStyles="false" />
                        <ClientSettings ClientEvents-OnColumnResizing="onColumnResizing" AllowKeyboardNavigation="true">
                            <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True"></Scrolling>
                            <Selecting AllowRowSelect="true" />
                            <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="true" AllowResizeToFit="true" />
                        </ClientSettings>
                    </telerik:RadGrid>


If useStaticHeader is set to True, when tabbing through the Grid it goes through the header only and ignore the data. If useStaticHeader is set to false, it tabs through the both header and data.

What can I do to make it Tab through both the Header and Data when useStaticHeader = true.
Milena
Telerik team
 answered on 14 Jan 2014
6 answers
90 views

Hi ,

I am using Radscheduler with Wcf.
I am using Javascript to communicate with Wcf.

When i edit single recurrence in Radscheduler and call below function from javascript --
scheduler.deleteAppointment(appointment, false);
scheduler.insertAppointment(appointment);
and  it show error---
Cannot parse parentAppointment recurrence rule during delete operation. Appointment ID is 762, parentAppointment ID is 762. 

Please give the solution.

Thanks ,
Kuldeep
Plamen
Telerik team
 answered on 14 Jan 2014
3 answers
97 views
Hi,
Show 24 hours.. is not working in MultiDayView.I m using the grouping direction vertical.The telerik dll verison i m using 2012 for the telerik.web.ui and for the telerik.web.UI.Skins i m using the same version.
Plamen
Telerik team
 answered on 14 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?