Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hello, with this (http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx) custom provider I can't delete and rename files. I fixed it:

public override string GetPath(string path)
{
    // First add the '~/' signs in order to use the VirtualPathUtility.GetDirectory() method ;
    /*string PathWithTilde = "~/" + path;
    string virtualPath = VirtualPathUtility.GetDirectory(PathWithTilde);
    virtualPath = virtualPath.Remove(0, 2);// remove the '~' signs
 
    return virtualPath;*/
    string virtualPath = "";
    if (Path.GetFileName(path).Length > 0)
        virtualPath = path.Replace(Path.GetFileName(path), "");
    return virtualPath;
}

It's correct?
Rumen
Telerik team
 answered on 17 Jan 2011
2 answers
182 views
Hi, I'm getting the following page error when selecting a row from RadGrid to display content in a separate pane using ajax manager. This error only appears when published to a a web server not on local development server.
----------------------------------------------------
Webpage error details
  
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; BRI/1; InfoPath.2; .NET4.0C; .NET4.0E; MALC)
Timestamp: Sat, 15 Jan 2011 23:43:05 UTC
  
  
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '
  
<!DOCTYPE html P'.
Line: 6
Char: 84093
Code: 0
URI: http://host/pro2/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_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%3aen-US%3aaa801ad7-53c4-4f5c-9fd3-11d99e4b92f4%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a11a04f7e%3a24ee1bba%3af46195d3%3a1e771326%3aa7e79140%3ae524c98b%3a874f8ea2%3a19620875%3a490a9d4e%3a407acb1c%3ae330518b%3ac8618e41%3ae4f8f289%3a58366029%3a7165f74%3a86526ba7%3abd8f85e4

 

Mark
Top achievements
Rank 1
 answered on 17 Jan 2011
6 answers
147 views
Hi - I need to use the scheduler as an events calendar - I tried using the calendar control but just couldn't bind event data to the days.

So - I only need the scheduler in a 250 * 250 box with no scrolling but when I set the row height (to get it to fit) the actual events/appointments are so thin you cant read the contents - I just want the appointment to be a similar height to a day.

Also - I only want to show month view - this is done but I then want to be able to scroll through the months easially - to be able to pick a month. So - if I want to go to december 2012, I don't have to scroll through 26 or so months.

Any easy way around this?

Cheers
Peter
Telerik team
 answered on 17 Jan 2011
5 answers
141 views
how to change the items in start and end time combobox in appointment insert and edit mode?
it currently only shows time items between 8am and 5:30 pm. I need it to show time items through out 24 hours
Peter
Telerik team
 answered on 17 Jan 2011
3 answers
361 views
I want to send editor html content up to a webservice, but the content is mangling my request

Can I encode it somehow in the editor?...
Rumen
Telerik team
 answered on 17 Jan 2011
2 answers
92 views
Have a grid bound to a list of email-addresses. I need to add a column where I can select wich ones to delete ...
Then I need to walk though the rows to see wich mails to process ...

Thanks for all help // h
Princy
Top achievements
Rank 2
 answered on 17 Jan 2011
1 answer
89 views
Export to excel option is working properly with grid with pages

I have set page size to 50 and actual rows are 1000+
Now when I take use export option, Excel is showing records for first page only and some distorted data in the bottom.

I have use following code:

private void ExportGridToExcel(Telerik.Web.UI.RadGrid radgrid1)
    {
        radgrid1.PageSize = 1000;
        radgrid1.Rebind();
        radgrid1.MasterTableView.ExportToExcel();
        radgrid1.PageSize = 50;
        radgrid1.Rebind();
    }

It also not working..
Shinu
Top achievements
Rank 2
 answered on 17 Jan 2011
2 answers
186 views
I have a button 'btnSave', a ModalPopup 'mpuEditAddr', and a TabContainer 'tabGridview' with 2 panels each containing a gridview.

'mpuEditAddr' has two usercontrols 'uc_Address'

On btnSave Click I'm getting 'The method or operation is not implemented' error with the below code.
Any suggestions on where I'm going wrong would be greatly appreciated!!

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="btnSearch" EventName="Click">

 

 

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="tabGridview" /></UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadGrid1" /></UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1" EventName="SlectedIndexChanged">

 

 

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="mpuEditAddr" /></UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

<asp:Button ID="btnSearch" runat="server" Text="Search/ Refresh" />
  
  
  <asp:Button ID="btnEditAddr" runat="server" Text="Button" Style="display: none" />
    <asp:ModalPopupExtender ID="mpuEditAddr" runat="server" OkControlID="btnClose" TargetControlID="btnEditAddr"
        PopupControlID="panAddr" BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>
    <asp:Panel ID="panAddr" runat="server" CssClass="ModalWindow" Style="display: none">
        <asp:TabContainer ID="tabAddress" runat="server" Width="10%" ActiveTabIndex="1">
            <asp:TabPanel ID="tabPickupAddr" runat="server">
                <HeaderTemplate>
                    Pickup Address
                </HeaderTemplate>
                <ContentTemplate>
                    <uc1:uc_Address ID="uc_PickupAddr" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="tabDpoffAddr" runat="server">
                <HeaderTemplate>
                    Dropoff Address
                </HeaderTemplate>
                <ContentTemplate>
                    <uc1:uc_Address ID="uc_DropoffAddr" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
        <asp:Button ID="btnUpdateAddr" runat="server" Text="Update" />
        <asp:Button ID="btnClose" runat="server" Text="Close" CausesValidation="False" />
    </asp:Panel>
  
  
 <asp:TabContainer ID="tabGridview" runat="server">
        <asp:TabPanel ID="tabEdit" runat="server" HeaderText="Edit Reservations">
            <HeaderTemplate>
                Edit Reservations</HeaderTemplate>
            <ContentTemplate>
                <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" ShowGroupPanel="True" AllowFilteringByColumn="true"
                    AutoGenerateColumns="False" AllowPaging="True" >
                    <GroupingSettings ShowUnGroupButton="True" />
                    <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ColumnsReorderMethod="Reorder"
                        ReorderColumnsOnClient="True">
                        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
                    </ClientSettings>
                    <MasterTableView EditMode="InPlace" DataKeyNames="Trip_ID" GroupLoadMode="Client" AllowFilteringByColumn="true">
                        <PagerStyle AlwaysVisible="true" />
                        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton">
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn CommandName="Select" Text="Edit Address" ButtonType="ImageButton"
                                UniqueName="column" ImageUrl="Images/Home-Edit.gif">
                            </telerik:GridButtonColumn>
                           '
                           '
                           '
  
  </Columns>
                        <EditFormSettings>
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView><HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Sunset"
                        EnableImageSprites="True">
                    </HeaderContextMenu>
                </telerik:RadGrid>
            </ContentTemplate>
        </asp:TabPanel>
<asp:TabPanel ID="tabView" runat="server" HeaderText="View Reservations">
            <ContentTemplate>
 <%--Another RadGrid Here--%>
  </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>



Iana Tsolova
Telerik team
 answered on 17 Jan 2011
1 answer
76 views
Hi

Whenever i hide a label in  the itemtemplate the vertical gridline seems missing.

<ItemTemplate>
                <asp:Label ID="Product" runat="server"                 
                  Visible='<%# IIf(DataBinder.Eval(Container.DataItem, "Product") = "DisCon", "True", "False")%>' Text='<%# Eval("Price", "S{0:C}") %>'></asp:Label>
 </ItemTemplate>

How should i solve this? thanks
Pavlina
Telerik team
 answered on 17 Jan 2011
1 answer
113 views
hi
i have template field(datetime picker) in grid
when i click button for search radgrid databind
how can i set value in serch click?
for examplae i write this code but it has error:
  (grdGoods.FindControl("pdtDate") as AspNetPersianDatePickup.PersianDatePickup).SelectedDateTime=DateTime.Now;
thanks
Princy
Top achievements
Rank 2
 answered on 17 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?