Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Is it possible to bind the results from a Linq to SharePoint query to the SPRadGridWebPart? Can you please provide an example, if this is possible?

Thanks,
Larkin
Marin
Telerik team
 answered on 02 Nov 2011
1 answer
112 views
Hello,

I'm using a simple horizontal telerik menu in a user control, everything loaded alright and the menu looks great.
However, after a few clicks on the menu, going back and forth from Default.aspx to News.aspx, the menu just freezes.
I no longer see the hover styles and the links won't click.

Any advise on this one?

PS: I'm using C# in VS2010
Kate
Telerik team
 answered on 02 Nov 2011
1 answer
131 views
Hi,
 I am working with Telerik Radgrid. In this radgrid I am using dropdownlist in edit template in a way that when user clicks on add button on the grid, The whole grid goes into the editmode. By doing so when user clicks on the first dropdown list it postbacks and reload the whole page which populates the second dropdown list with data. 


I want to ajaxify the radgrid on the page, so the whole page does not get refresh or postback. I have used both ajax manager and rad ajax panel to perform this job. But unfortunately the whole page gets autopostback. In my code behind in item created event i have set the dropdown as autopostback to true. I have read through so many blogs and demos on telerik website. But so far I haven't found any solution regarding my issue.

I am providing you the design source. Please tell me how to handle this ajax request on client side and server side. Provide me any small example which is following my scenario or most efficient way to handle this request.

Thanks


 <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
                                        </telerik:RadScriptManager>


                                           <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
                                     DefaultLoadingPanelID="RadAjaxLoadingPanel1>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1t">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

<telerik:RadGrid ID="RadGrid1" ShowStatusBar="true" runat="server" AutoGenerateColumns="False" Skin="Outlook" AlternatingItemStyle="VerticalAlign">
                                      
         
                                         <MasterTableView  CommandItemDisplay="Top" TableLayout="Fixed" >
          <CommandItemTemplate>
                                        <asp:LinkButton ID="btnEdit" runat="server" Text="Edit" OnClick="btnEdit_Click">
                                        </asp:LinkButton>
                                        </CommandItemTemplate>
 <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                         <Columns>
              telerik:GridTemplateColumn DataField="Project" HeaderStyle-ForeColor="White" HeaderText="Company"  UniqueName="Company">
                    <ItemTemplate>
<asp:Label id="lblCompany" runat="server"></asp:Label>
   </ItemTemplate>
                    <EditItemTemplate>
                    
<asp:DropDownList id="ddCompany" runat="server" Width="80px"></asp:DropDownList>
                    <asp:RequiredFieldValidator id="vldddProjectRequired" runat="server" ErrorMessage="Please select a Company" 
ControlToValidate="ddCompany">!</asp:RequiredFieldValidator>
</EditItemTemplate>
                    </telerik:GridTemplateColumn> 


                    <telerik:GridTemplateColumn DataField="Employees" HeaderStyle-ForeColor="White" HeaderText="Employees" UniqueName="Employee" >
                    <ItemTemplate>
   <asp:Label id="lblEmployee" runat="server"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList id="ddEmployee" runat="server" Width="170px" ></asp:DropDownList>
</EditItemTemplate>
                    </telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>



Sebastian
Telerik team
 answered on 02 Nov 2011
1 answer
123 views
HI guys

I have a website with two types of master page, but both containing the same panelBar menu.
For maintainability, I want to have only a single place to update the menu so I thought I should
put it into ascx UserControl, and followed MS guidelines for the embedding

It actually works fine if I turn off debug in Internet Explorer (I am using Visual Studio 2010 btw), but when debug is on I get this error

SCRIPT5007: Unable to set value of the property 'control': object is null or undefined
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl03_TSM&compress=1&_TSM_CombinedScripts_
=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%
3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%
3bTelerik.Web.UI%2c+Version%3d2010.3.1109.20%2c+Culture%3dneutral%2c+PublicKeyToken%
3d121fae78165ba3d4%3aen-US%3a0b207b76-976c-4925-ba92-57c3001b0b77%3a16e4e7cd%3af7645509%
3a24ee1bba%3a1e771326%3a4cacbc31, line 6 character 74101

The ascx file is like this:

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="menuBar.ascx.vb" Inherits="UserControls_menuBar" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" Skin="myBlack" Width="175px"
                        EnableEmbeddedSkins="False" PersistStateInCookie="True">
etc etc
</telerik:RadPanelBar>

I would like to avoid the error in case it causes problems to visitors.  Can you shed any light on this?
The error is within the telerik dll it seems.

Thanks for any help!

Clive


Nikolay Tsenkov
Telerik team
 answered on 02 Nov 2011
1 answer
93 views
we are getting the following error only on Apple machines (ipad included) across all browser.  the funny thing is that its only when the page is loaded.  it's loaded with an ajax call and all we ever see is the loading panel.  on the mac computer we were able to get the error

RadUpload Ajax callback error. Source url returned invalid content: 

any suggestions on what we can try.  the page works fine on PC across all browsers.  there is an upload on the page but its not uploading anything at the time of the error.  its just loading the page.  the page is on a RadTab if that makes a difference.

Genady Sergeev
Telerik team
 answered on 02 Nov 2011
1 answer
87 views
Hi ,

  I am using radDatetImepIcker as a seperate control .(Not inline with grid or anything else). I need to set date/time in picker by default based on my server time zone like ‘DD.MM.YYYY HH24:MI:SS TZR’.


Please advice as soon as earlier.

THanks,
Priya
Vasil
Telerik team
 answered on 02 Nov 2011
3 answers
79 views
I need to customize the groupings in a grid.
In my case, I group by a column 'GridDropDownColumn' which has as public properties 'DataField = "ID"' and 'ListTextField = "description"', so in group shows a number instead of the description provided in the 'DropDown'.
Radoslav
Telerik team
 answered on 02 Nov 2011
2 answers
223 views
Hello.
i am working on a project, i used telerik control to upload the files. but now what is the problem it doesnot show progross area while uploading.

here are the steps i done
  1. Added all entries in web.config (modules, http handlers for telerik )
  2. set <httpRuntime maxRequestLength="102400" executionTimeout="3600"/> to allow files more than 50 mb
  3. uploading files is succcessfull, but it is not showing the progress area, as i tried to transfer 35 mb file. in localhost :(
  4. i'm having iis 7.5

i'm attaching my files to you . kindly check it and tell me whats the prob with these codes. i followed the same code in your demo examples

please do support soon, as i am having to relase files for production :(
Dimitar Terziev
Telerik team
 answered on 02 Nov 2011
1 answer
130 views
hi , i'm having problem with radgrid in my n-tier applicatin
i'm assigning radgrid datasource  to a List<Product> and i need radgrid provide me filterexpression in form of entity sql format eg: "it.CustomerID = ALFKI" but its format is like "(Convert.ToString(it[\"CustomerID\"]) = \"ALFKI\")"
how i can please radgrid to create entity sql filterexpression without using EntityDataSource ?




Radoslav
Telerik team
 answered on 02 Nov 2011
1 answer
133 views
I have the following page that pulls a simple grid and I got it to export to excel fine after checking out the demos.
How ever now, when the page loads the grid is empty until I select something from the drop down list.

Any ideas on how I should get the grid to populate with the first in the list when the page first loads?

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="report_daily_status_list.aspx.vb" Inherits="FacilityCodingStatus.report_daily_status_list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Daily Status list</h2>
    <asp:SqlDataSource ID="dsSiteList" runat="server"
        ConnectionString="<%$ ConnectionStrings:ServiceAudit_ConnectionString %>"
        SelectCommand="FacilityCodingStatus_SiteList"
        SelectCommandType="StoredProcedure"></asp:SqlDataSource>
 
 
    <asp:SqlDataSource ID="dsDailyStatuslist" runat="server"
        ConnectionString="<%$ ConnectionStrings:ServiceAudit_ConnectionString %>"
        SelectCommand="FacilityCodingStatus_DailyStatuslist"
        SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="cbSiteID" Name="sSiteID"
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
 
    <script type="text/javascript">
        function onRequestStart(sender, args) {
            if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToWordButton") >= 0 ||
                    args.get_eventTarget().indexOf("ExportToCsvButton") >= 0) {
                args.set_enableAjax(false);
            }
        }
    </script>
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ClientEvents OnRequestStart="onRequestStart" />
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
 
 
<p>Select a Site:<telerik:RadComboBox ID="cbSiteID" Runat="server" DataSourceID="dsSiteList"
        DataTextField="SiteDisplay" DataValueField="sSiteID" AutoPostBack="True">
    </telerik:RadComboBox>
 
</p>
 
 
 
 
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True"
        AutoGenerateColumns="False" CellSpacing="0" DataSourceID="dsDailyStatuslist"
        GridLines="None" OnItemCommand="RadGrid1_ItemCommand">
 
            <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" HideStructureColumns="true">
                <Excel Format="ExcelML" />
            </ExportSettings>
 
<MasterTableView DataSourceID="dsDailyStatuslist"  CommandItemDisplay="Top">
<CommandItemSettings ExportToPdfText="Export to PDF" ShowExportToExcelButton="true" ShowAddNewRecordButton="false"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
 
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="sSiteID"
            FilterControlAltText="Filter sSiteID column" HeaderText="SiteID"
            SortExpression="sSiteID" UniqueName="sSiteID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="MEDRECNUM"
            FilterControlAltText="Filter MEDRECNUM column" HeaderText="MedRec#"
            SortExpression="MEDRECNUM" UniqueName="MEDRECNUM">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="sDOS"
            FilterControlAltText="Filter sDOS column" HeaderText="DOS"
            SortExpression="sDOS" UniqueName="sDOS">
        </telerik:GridBoundColumn>
 
 
        <telerik:GridBoundColumn DataField="LASTNAME"
            FilterControlAltText="Filter LASTNAME column" HeaderText="Last Name"
            SortExpression="LASTNAME" UniqueName="LASTNAME">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="FIRSTNAME"
            FilterControlAltText="Filter FIRSTNAME column" HeaderText="First Name"
            SortExpression="FIRSTNAME" UniqueName="FIRSTNAME">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EXCEPTIONCODE" DataType="System.Int32"
            FilterControlAltText="Filter EXCEPTIONCODE column" HeaderText="Ex Code"
            SortExpression="EXCEPTIONCODE" UniqueName="EXCEPTIONCODE">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateReceived" DataType="System.DateTime"
            FilterControlAltText="Filter DateReceived column" HeaderText="Date Received"
            SortExpression="DateReceived" UniqueName="DateReceived">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateCoded" DataType="System.DateTime"
            FilterControlAltText="Filter DateCoded column" HeaderText="Date Coded"
            SortExpression="DateCoded" UniqueName="DateCoded">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateHeld" DataType="System.DateTime"
            FilterControlAltText="Filter DateHeld column" HeaderText="Date Held"
            SortExpression="DateHeld" UniqueName="DateHeld">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DateReleased" DataType="System.DateTime"
            FilterControlAltText="Filter DateReleased column" HeaderText="Date Released"
            SortExpression="DateReleased" UniqueName="DateReleased">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
 
 
</asp:Content>
Princy
Top achievements
Rank 2
 answered on 02 Nov 2011
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?