Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
216 views
I was wondering how it would be possible to use pure client-side population of the scheduler, or if it is possible.  What I envision is changing the view (whether the month, etc), and having a way of firing off a javascript event that shows what the new visible start and end date/time is, then using that to spawn off a webservice call and then iterating through the results and calling the insertAppointment method on the scheduler.

I imagine this would show quite the increase in performance vs using callbacks since the problem with callbacks is that they still have to include the viewstate during that callback. 

My problem is that I'm on a page that sits around 120kb total size so that passes back and forth a few times and things get pretty slow.  It would be so much cleaner to ask for only what I needed to update (the scheduler) so my response object would be 1kb or thereabouts (at most), and the response might be 20kb.

Thoughts?
Atanas Korchev
Telerik team
 answered on 16 Jun 2009
6 answers
206 views
I am using the RadEditor MOSS in a WSS only scenario. I tried to change the skin of the editor to Office2007 but that did not display correctly (most of the toolbar images  could not be found. I also could not find any skin folders (shoud there be any?) and aI m not sure if skinning is supported in this scenario or what skins are available to use.

For your information, the following directory structure is installed on my server under C:\Program Files\Common Files\Microsoft Shared\web server extensions:

wpresources
|--  RadEditorSharePoint
          |-- 5.1.0.0.__1f131a624888eeed
                   |-- Resources
                           |-- App_Data
                           |          |-- RadSpell
                           |-- App_GlobalResources
                           |-- ToolImages

Can you be of help on this topic?
Stanimir
Telerik team
 answered on 16 Jun 2009
3 answers
178 views
Hello team,

I've got a RadGrid containing a NestedViewTemplate with a FormView to modify data in every row.
I need to add a Row to the Radgrid, the row should be expanded and the contained FormView should be in insert mode to add a new entry. How can I do this?

Have a look at my current approach:

<telerik:RadGrid ID="RadGrid1" Skin="WebBlue" runat="server" DataSourceID="dsSelectDirectoryScan"
        GridLines="None" OnItemCommand="RadGrid1_ItemCommand" OnPageIndexChanged="RadGrid1_PageIndexChanged">
        <HeaderContextMenu>
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </HeaderContextMenu>
        <MasterTableView AutoGenerateColumns="False" DataSourceID="dsSelectDirectoryScan" DataKeyNames="DirectoryID">
            <Columns>
                <telerik:GridBoundColumn DataField="SenderCompany" HeaderText="SenderCompany" ReadOnly="True"
                    SortExpression="SenderCompany" UniqueName="SenderCompany">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="SenderName" HeaderText="SenderName" ReadOnly="True"
                    SortExpression="SenderName" UniqueName="SenderName">
                </telerik:GridBoundColumn>
                
                <telerik:GridBoundColumn DataField="ReceiverCompany" HeaderText="ReceiverCompany"
                    ReadOnly="True" SortExpression="ReceiverCompany" UniqueName="ReceiverCompany">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ReceiverName" HeaderText="ReceiverName" ReadOnly="True"
                    SortExpression="ReceiverName" UniqueName="ReceiverName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ScanPath" HeaderText="ScanPath" SortExpression="ScanPath"
                    UniqueName="ScanPath">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="TransferType" HeaderText="TransferType" SortExpression="TransferType"
                    UniqueName="TransferType">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="PackageType" HeaderText="PackageType" SortExpression="PackageType"
                    UniqueName="PackageType">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Mode" HeaderText="Mode" SortExpression="Mode"
                    UniqueName="Mode">
                </telerik:GridBoundColumn>
            </Columns>
            <NestedViewTemplate>
            <asp:FormView runat="server" ID="fvDirectoryScanDetails" DataSource="dsDirectoryScanDetails" >
              <ItemTemplate>
                    <asp:TextBox runat="server" ID="txtTest" Text="This is a cool test"></asp:TextBox>
              </ItemTemplate>
              <EditItemTemplate>
                    <asp:TextBox runat="server" ID="txtTest" Text="This is a cool test"></asp:TextBox>
              </EditItemTemplate>
              <InsertItemTemplate>
                    <asp:TextBox runat="server" ID="txtTest" Text="This is a cool test"></asp:TextBox>
              </InsertItemTemplate>
            </asp:FormView>--%>
            <asp:FormView ID="fvDirectoryScanDetails" DataKeyNames="DirectoryID" runat="server" DataSourceID="dsDirectoryScanDetails" OnDataBound="fvDirectoryScanDetails_DataBound" OnItemUpdating="fvDirectoryScanDetails_ItemUpdating" OnItemUpdated="fvDirectoryScanDetails_ItemUpdated" OnItemInserted="fvDirectoryScanDetails_ItemUpdated">
            <EditItemTemplate>              
                       ...many things here...                   
            </EditItemTemplate>
            <InsertItemTemplate>
                ...many things here...
            </InsertItemTemplate>
            <ItemTemplate>
                              ...many things here...
            </ItemTemplate>
        </asp:FormView>
            
            </NestedViewTemplate>
            <ExpandCollapseColumn Visible="True">
            </ExpandCollapseColumn>
        </MasterTableView>
        <FilterMenu>
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </FilterMenu>
    </telerik:RadGrid>

Thanks,

Joachim
Joachim
Top achievements
Rank 1
 answered on 16 Jun 2009
6 answers
158 views
I have a client that posts many new photos each day. (Last year they uploaded 2500 new photos.) Obviously the image manager can't or shouldn't try to list 2500 photos at once, plus, the client only needs to choose from the last few uploaded photos anyways.

So I would like to implement the following: 

Afetr the client uses radUpload to upload the 10-20 photos for the day, he/she goes to the editor and clicks the image manager which displays only the most recent 50 photos uploaded. 

Could anyone take a stab at how I would restrict the image manager to listing only the newest 50 images?
Sergio Henrique Antunes
Top achievements
Rank 1
 answered on 16 Jun 2009
8 answers
481 views
Hello;

I did a small project and I use the template exam. It works fine. However I want to use the same in my real project and I took this error message.

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

I search in google and this forum and I cant find any answer. I receive this error on double-click on the scheduler.

Thanks...
Atanas Korchev
Telerik team
 answered on 16 Jun 2009
1 answer
80 views

Hi,

I am using PanelBar to display templated items.In the first item, I have a vertical RadRotator that rotates images.In the seocnd item, I have a calendar.The first item is displayed by default, so the rotator shows when the page is loaded.When I click on the second panelbar item, the calendar is displayed but after 2 to 3 seconds, I get a javascript error:
==============

A runtime error has occured.

Error: 'control' is null or not an object

==============

I am thinking there is a javascript function trying to move the retator frames but it is missing something, since the rotator is hidden (because the panel item is not displayed)

Any ideas??

Thanks

ENV:
Vista,IIS7, ASP.NET 3.5 SP1,Telerik 2008 Q3,IE7

Atanas Korchev
Telerik team
 answered on 16 Jun 2009
2 answers
202 views
Hi,

I had a radgrid in a pageview within a multipageview with some javascript to allow a windowt o open when a row in the grid is clicked. This worked fine until I changed the Multipageview so that the pageviews would load on demand (on tabclick) which I implemented by creating a user control for each pageview and moving the existing radgrid into this control.

Now when the pageview is loaded I get a javascript error on the page "Error: 'RowSelected' is undefined" and when I view the source the RowSelected function does not seem to exist. I have tried adding the javascript programatically using RegisterClientScriptBlock whithin the .ascx.cs file in the Page_Load method but this does not seem to help and I'm not sure about how to deal with the radcodeblock tags. I don't have alot of experience with javascript or user controls so it's bound to be something simple I'm missing.

Any help would be much appreciated, I can supply more code if required.

User Control:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PhoneDir.ascx.cs" Inherits="PhoneDir" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<telerik:RadCodeBlock ID="rcb1" runat="server">  
 
<script type="javascript">  
function RowSelected(sender, args)  
            {  
                var firstDataItem = $find("<%=rgPhoneDir.ClientID %>").get_masterTableView().get_dataItems()[0];  
                var uname = args.getDataKeyValue("username") ;  
                window.radopen("userinfo.aspx?id=" + uname,"RadWindow1");  
            }  
</script> 
 
</telerik:RadCodeBlock> 
<telerik:RadGrid ID="rgPhoneDir" runat="server" AllowSorting="True" GridLines="None" 
    Height="100%" Skin="Office2007" DataSourceID="SqlDataSource1"   
    onitemcommand="rgPhoneDir_ItemCommand">  
      
    <MasterTableView CellSpacing="-1" ClientDataKeyNames="username" AutoGenerateColumns="False" 
        DataKeyNames="username" DataSourceID="SqlDataSource1">  
        <Columns> 
            <telerik:GridBoundColumn DataField="username" HeaderText="username" ReadOnly="True" 
                SortExpression="username" UniqueName="username" Visible="False">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Internal Phone" HeaderText="Internal Phone" SortExpression="Internal Phone" 
                UniqueName="Internal Phone">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Surname" HeaderText="Surname" SortExpression="Surname" 
                UniqueName="Surname">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="First Name" HeaderText="First Name" SortExpression="First Name" 
                UniqueName="First Name">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Branch" HeaderText="Branch" SortExpression="Branch" 
                UniqueName="Branch">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Department" HeaderText="Department" SortExpression="Department" 
                UniqueName="Department">  
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Mobile" HeaderText="Mobile" SortExpression="Mobile" 
                UniqueName="Mobile">  
            </telerik:GridBoundColumn> 
        </Columns> 
        <EditFormSettings> 
            <EditColumn UniqueName="EditCommandColumn1">  
            </EditColumn> 
        </EditFormSettings> 
    </MasterTableView> 
    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="True">  
        <Selecting AllowRowSelect="True" /> 
        <ClientEvents OnRowSelected="RowSelected" OnRowClick="RowSelected" /> 
    </ClientSettings> 
</telerik:RadGrid> 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:sql %>" 
    SelectCommand="SELECT username,phoneinternal AS 'Internal Phone',sname AS 'Surname',fname AS 'First Name',office AS 'Branch',department AS 'Department',mobile AS 'Mobile' FROM Phone_Dir WHERE phoneinternal IS NOT NULL AND phoneinternal &lt;&gt; '' ORDER BY office,sname">  
</asp:SqlDataSource> 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
</telerik:RadWindowManager> 
<telerik:RadWindow ID="RadWindow1" runat="server">  
</telerik:RadWindow> 

When trying to add the javascript programatically:
    protected void Page_Load(object sender, EventArgs e)  
    {  
 
        string javascript = "<script type=\"text/javascript\">";  
        javascript += "function RowSelected(sender, args){var firstDataItem = $find(\"<%=rgPhoneDir.ClientID %>\").get_masterTableView().get_dataItems()[0];var uname = args.getDataKeyValue(\"username\") ;window.radopen(\"userinfo.aspx?id=\" + uname,\"RadWindow1\");}";  
        javascript += "</script>";  
        this.Page.ClientScript.RegisterClientScriptBlock(typeof(Page),"ClientScript", javascript);  
 
    } 
Greg
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
151 views
If the filter menu hits the bottom of the bowser window then it starts to go up, which is great except it flows behind my rad menu. The rad menu is in the master page and the grid is in the content page.

Any idea as to how to prevent that?

Thanks
Randy Miller
Princy
Top achievements
Rank 2
 answered on 16 Jun 2009
3 answers
327 views
Hi,
  I am having radgrid and other controls like textbox  in parent page .from parent page i open a radwindow and select some
values  and when i close that radwinow ,i want to refresh my radgrid only not the other control so that it should show new values .Is that possible. if yes could u please tell me how.
Thanks
Nirmal
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
103 views
Hello  team telerik,

When we use in Rad Editor Lite the font size "3", the html code is the following:
<div class="ExternalClassFD3A75651CF744CF81A19D8F45FE84D1">Test</div>
There ist no tag concerning the font size!

When we use the font size "2", the html code is:
<div class="ExternalClassFD3A75651CF744CF81A19D8F45FE84D1"><font size="2">Test</font></div>
Here we can see the expected font size tag.
The same result with font size "4":
<div class="ExternalClassFD3A75651CF744CF81A19D8F45FE84D1"><font size="4">Test</font></div>

We need the font tag "3" for our web design, but we can not use it. Why?
Stanimir
Telerik team
 answered on 16 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?