Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
100 views
Hi all,
          I am using a popup page for inserting details into the scheduler,and I want to enable reccurrence in the popup page.I tried with the provided user control that is advancedFormCs but it is not working,Is there any way to use this user control in a popup page of scheduler.and how to customize the page.Its really urgent...
Thanks in advance...........
Thanks and Regards
 VishU
Peter
Telerik team
 answered on 14 Jul 2010
1 answer
85 views
Hello Friends,

 I need to remove width of particular radpane when resolution in not 1024*768. means when resolution is 1024*768 than i need contentpane width is : 1089px otherwise i want to remove width property of contentPane.
my aspx page code is.

 <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="560" Width="100%" OnClientLoaded="setclasswidth"  >
            <telerik:RadPane ID="navigationPane" runat="server" Width="163">
                <div>
                    This is header
                </div>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward" />
            <telerik:RadPane ID="contentPane" Scrolling="None" runat="server"  Width="1089px">
                <div>
                    This is content
                </div>
        </telerik:RadPane>
</telerik:RadSplitter>

i made one function setclasswidth and call it on OnClientLoaded event.
my javascript function is,

function setclasswidth(sender, Args)
{
    if ((screen.width==1024) && (screen.height==768))
   {
     alert('something');
   }
   else
   {
          var splitter = sender;
          var endPane = splitter.getPaneById("contentPane");   
          alert(endPane.get_width());
   }
  }

by using alert(endPane.get_width()); i get the contentPane width but how i will remove width on that case.

Pls help me.

Thanks & Regards
Jignesh Patel
Dobromir
Telerik team
 answered on 14 Jul 2010
1 answer
94 views
Hi,

I found a strange problem in Radgrid Footer - which is the Paging. Below is the runtime source:

<td colspan="4"><div class="PagerLeft_Office2007">
换页: <span style="font-family:Tahoma;font-size:9pt;"><img title="Previous Page" 
src="/eSolutions/Images/page/previous.png" alt="Previous Page" style="border-width:0px;" />&nbsp;p</span>&nbsp;n&nbsp;<img title="Next Page" src="/eSolutions/Images/page/next.png" alt="Next Page" style="border-width:0px;" />

It'll auto generate a <span> for 'Previous' but not 'Next'. I suspect because of that, the alignment for PrevPageImageUrl and NextPageImageUrl aligned. See picture below:
Dimo
Telerik team
 answered on 14 Jul 2010
4 answers
145 views
Good Day All

I am working looking at the Demo, The Demo Shows the Grouped by Field Distinctively , but mine keeps on repeating its self.  i have a screenshot attached. Please help.

My Schedular is defined like this

<telerik:RadScheduler ID="RadScheduler1" ColumnWidth="2000px" RowHeaderWidth="2000px"  DayView-GroupingDirection="Vertical" RowHeaderHeight="500px"  runat="server" DataSourceID="SqlDataSource2"
    DataEndField="ENDDATE"   DataKeyField="ID"  Skin="Telerik"  DataSubjectField="SUBJECTS"  DataStartField="STARTDATE" AllowDelete="False" AllowEdit="False" AllowInsert="False"   DayEndTime="20:00:00" OverflowBehavior="Expand" SelectedView="MonthView"  OnDataBound="RadScheduler1_DataBound" OnAppointmentCreated="RadScheduler1_AppointmentCreated" CssClass="ConfigurationPanel1" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" GroupingDirection="Vertical" EnableViewState="False" DisplayDeleteConfirmation="False" EnableAdvancedForm="False" EnableResourceEditing="False" ReadOnly="True" MinutesPerRow="60" OnAppointmentCommand="RadScheduler1_AppointmentCommand">
 
        <TimelineView GroupBy="SESS" GroupingDirection="Vertical" />
      
     <ResourceTypes>
    <telerik:ResourceType KeyField="SESS"  Name="SESS" TextField="SESS" ForeignKeyField="SESS" DataSourceID="SqlDataSource2" />
    </ResourceTypes>
 
    <DayView GroupingDirection="Vertical" />
</telerik:RadScheduler>

and the Sqldatasource is defined as follows
<asp:SqlDataSource ID="SqlDataSource2" EnableCaching="true" runat="server" ConnectionString="Data Source=(local);Initial Catalog=oDirectv3;Persist Security Info=True;User ID=o;Password=abacus"
    SelectCommand="sp_Timetable_View" DeleteCommand="sp_Timetable_View" ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure" OnSelecting="SqlDataSource2_Selecting">
    <SelectParameters>
        <asp:SessionParameter DefaultValue="" Name="selectionType" SessionField="viewOptions"
            Type="String" />
        <asp:SessionParameter DefaultValue="" Name="selectedItems" SessionField="selectedItems"
            Type="String" />
        <asp:SessionParameter DefaultValue="" Name="selectedTerms" SessionField="selectedTerms"
            Type="String" />
        <asp:Parameter Name="RangeStart" />
        <asp:Parameter Name="RangeEnd" />
    </SelectParameters>
    <DeleteParameters>
        <asp:Parameter Name="selectionType" Type="String" />
        <asp:Parameter Name="selectedItems" Type="String" />
        <asp:Parameter Name="selectedTerms" Type="String" />
    </DeleteParameters>


and my code behind where i binding the number of slot

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        BLL.BLL obj = new BLL.BLL();
        try
        {
            int Day = obj.Get_Max_Day_Viewer(Convert.ToString(Session["ActiveDatabase"]));
 
            //RadScheduler1.WeekView. = Day;
 
            RadScheduler1.TimelineView.NumberOfSlots = Day;
             
            //it makes sure that the Viewer is showing the date of the timetable
            RadScheduler1.SelectedDate = obj.Get_Selected_Date_Viewer(Convert.ToString(Session["ActiveDatabase"]));
 
        }
        catch (SqlException ex)
        {
            lblMessage.Visible = true;
 
            lblMessage.Text = ex.Message;
 
        }
        finally
        {
            obj = null;
        }
    }
  
}

Thanks
Peter
Telerik team
 answered on 14 Jul 2010
1 answer
151 views
Hello,telerik.

I designed one web page which has 4 rad listview that displays data loading from db.
but when I visit this page in debugging time,it is very slow.

So can I load the listview one by one ?or other way to improve the speed of loading the page?
BaiH
Top achievements
Rank 1
 answered on 14 Jul 2010
1 answer
174 views
Hello,

I have radgrid with

OnDeleteCommand

 

 

="Grid_DeleteCommand"

 

protected

 

 

void Grid_DeleteCommand(object source, GridCommandEventArgs e)

 

{

 

 

GridDataItem dataItem = (GridDataItem)e.Item;

 

 

 

string name= dataItem["Name"].Text;

 

 

 

try

 

{

 

 

var Id= (int)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Id"];

 

DeleteItem(Id);

 

 

 InsertGridMessage("Name: " + name+ " is deleted!", false);

 

}

 

 

catch (Exception ex)

 

{

InsertGridMessage(

 

"Name: " + name+ " cannot be deleted. Reason: " + ex.Message, true);

 

e.Canceled =

 

true;

 

}

}


private

 

 

void InsertGridMessage(string message, bool isFailure)

 

{

 

 

var lblMessage = new Label

 

{

ID =

 

"LblGridMessage",

 

Text = message,

ForeColor = isFailure?

 

Color.Red:Color.Green

 

};

Grid.Controls.AddAt(0, lblMessage);

}

When i delete the item for first time it all works fine. But any action on radgrid will throw following exception. The reason is because the viewstate is not updated.  Any ideas?

I get following error

Webpage error details

Message: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
Line: 6
Char: 84093
Code: 0
URI: https://localhost/EzURWeb/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%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3acf630f82-0e77-4618-bf5c-22b81f4ec1c5%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3aed16cbdc%3a86526ba7%3a8e6f0d33%3aaa288e2d%3aa7e79140%3a6a6d718d%3a874f8ea2%3a19620875%3a33108d14%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1

 

Tsvetoslav
Telerik team
 answered on 14 Jul 2010
8 answers
231 views
Not sure how to go about this so I'm looking for any tips or ideas. Thanks

Basically I have a RadPane and I set the contentURL property to a text file on a fileshare. That is all currently working just fine. The contents of the text file show up in the RadPane.

What i have is a search variable passed into the page from a previous page and I want to search the contents of the RadPane for the search term and highlight the search term in the text document in yellow.

In addition I would really like to have a couple buttons on top (back, and next) that when clicked would automatically scroll the user to the next or previous instance of the search term within the RadPane.

Any examples or pointers would be great. I'm not even sure where to start with this.

thanks
Jason Bourdette
Top achievements
Rank 1
 answered on 14 Jul 2010
2 answers
283 views
I'm currently trying to set a modal window title dynamically from my stored procedure search and it works fine when I add it to the <UpdateControls><telerik:AjaxUpdatedControl> but even though it displays as it should, the window refuses to close now. I tried setting an individual UpdateControl just for the modal window but that did not work as well. A friend of mine suggested somehow using JavaScript to $find("modalComment.ClientID"); but I've never coded in javascript so this poses a bit of an issue to me. Has anyone else tried to set a dyanamic modal window titles from the backend code were able to close the window successfully?
 What I currently have is:
            <telerik:AjaxSetting AjaxControlID="gvSearchResults">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="gvSearchResults" /> 
                    <telerik:AjaxUpdatedControl ControlID="modalComment" /> 
                    <telerik:AjaxUpdatedControl ControlID="rptComments" /> 
                    <telerik:AjaxUpdatedControl ControlID="modalStatus" /> 
                    <telerik:AjaxUpdatedControl ControlID="rptStatus" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
This displays my title and dynamic content just as is should.

In my actual column that I want to call the window from an image button:

<telerik:GridTemplateColumn UniqueName="Title" HeaderText="Title" InitializeTemplatesFirst="false" SortExpression="Title">  
                        <ItemTemplate> 
                            <table cellspacing="0" width="100%">  
                                <tr> 
                                    <%#Eval("Title") %> <asp:ImageButton ID="imgButton" runat="server" ImageUrl="~/images/icons/16/message_add.png" OnClick="fillModalComment" /> 
                                </tr> 
                            </table> 
                        </ItemTemplate> 
                        <ItemStyle HorizontalAlign="Left" /> 
                    </telerik:GridTemplateColumn> 
 and the working title code on the backend is:
        public void fillModalComment(object sender, EventArgs e)  
        {  
            int reqID = 0;  
            reqID = int.Parse(((ImageButton)sender).CommandArgument);  
 
            rptComments.DataSource = Comments.GetComments(reqID);  
            rptComments.DataBind();  
 
            MainSearch ms = new MainSearch(reqID);  
            string title = "Comments on " + ms.Title;  
 
            int len = ms.Title.Length;  
 
            if (title.Length < 40)  
                modalComment.Title = title;  
            else  
                modalComment.Title = title.Substring(0, 40) + "...";  
 
            modalComment.Show();  
        } 

Any ideas that may avoid the javascript? Or is javascript a necessity in this case?

Thanks in advance.
Assia
Top achievements
Rank 1
 answered on 14 Jul 2010
1 answer
118 views
I have the following map tag on my page

<map name="mapWeeklyDeal">
<area shape="RECT" coords="773,55,902,84" href="" title="WHATS THE DEAL?" id="amWhatTheDeal">
<area shape="RECT" coords="660,52,764,87" href="SOMELINK"
target="_blank" title="Become a Fan of Baudville!">
<area shape="RECT" coords="549,54,645,88" href="SOMELINK" target="_blank"
title="Join Us on Twitter!">
</map>


What I would like to do is attach the tooltip to WHATS THE DEAL area tag and not exactly sure how to make this work, I have tried setting my tag like so

<rad:RadToolTip ID="radCustomInfoTT" runat="server" TargetControlID="amWhatTheDeal"
IsClientID="true" Sticky="true" Visible="false" AutoCloseDelay="1000" Animation="none"
Position="TopLeft" RelativeTo="Element" OffsetY="2" Height="240px" Width="400px"
Skin="Default" HideDelay="100" Title="Add Your Logo - Custom Information">
<asp:Literal ID="ltrWhatsTheDeal" runat="server"></asp:Literal>

</rad:RadToolTip>

I even tried to add the onmouseover event to the area tag in question, but then I couldn't find any code that will allow me to bring up the tooltip. So any help on this would be appreciated.

 

 

 

 

 

 

Svetlina Anati
Telerik team
 answered on 14 Jul 2010
1 answer
59 views
hi

Telerik team member has opened a ticket for my problem .Ticket last response is below
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ticket ID : 325019 .

Hello nsrikanth 2009,

This forum post was transferred to a support ticket.

Please excuse us for the delayed response, we were preparing the Q2 release. We can't reproduce the problem in our local environment. Please, send us a live URL or a sample runnable project where the issue can be seen and tested. This will allow us to resolve the problem quickly. Thank you.

Greetings,
Genady Sergeev
the Telerik team
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
bu there is no option to response or reply . by using this post i am unable to send the code . i am sending live URL please Check

http://66.166.156.178:6303/TelerikUplaodSample/Default.aspx

in the Default.aspx open dialog button please click

thanks
Srikanth.N


Genady Sergeev
Telerik team
 answered on 14 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?