Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 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
180 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
243 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
291 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
126 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
64 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
1 answer
121 views
Hello,
I am having a bit of an issue with the rendering of my scheduler.  the area I am rendering it in is causing the header date(s) to be cut off.
Is there a way I can alter the format or css to compensate for the lack of space?  I see that there is a lot of space left of the date.  If I could even just move the date left a bit that would probably be enough.  I have attached an image to illustrate:
Peter
Telerik team
 answered on 14 Jul 2010
1 answer
137 views
I have ShowDropDownOnTextboxClick set to False, and as expected when the user sets focus to the text box nothing happens.

When the user types into the text box the first character typed correctly opens up the dropdown showing matching items, but the character does not appear in the text box.  Subsequent characters do appear.  Is this expected behaviour?

John
Veronica
Telerik team
 answered on 14 Jul 2010
2 answers
153 views
We had to move a website to a new server. We went from win2k iis 6 to win2k8 iis 7. Now, whenever I use the rad uploader I get a popup with this error.

Rad Upload Ajax callback error. Source url was not found:

Telerik.radUploadProgressHandler.ashx?RadUrid=004b9887-1c02...

Did you register the RadUploadProgressHandler in the web.config?

Please, see the help for more details: RadUpload for ASP.NET Ajax - 
Configuration - RadUploadProgressHandler

I saw this post http://www.telerik.com/community/forums/aspnet-ajax/upload/radupload-ajax-callback-error-source-url-returned-error-500.aspx and did what it had said but it didn't fix my problem. I have attached my web.config


Web Services
Top achievements
Rank 2
 answered on 14 Jul 2010
1 answer
227 views
  <table style="table-layout: fixed;" id="tblVisibility" runat="server">
                        <tr>
                            <td>
                                 Some Controls to add/update details.
     </td>
                        </tr>
                    </table>

                                <telerik:RadGrid ID="radGridStaffDetaills" AllowFilteringByColumn="false" runat="server"
                                    GridLines="None" AllowPaging="true" Height="150px" PageSize ="5" PagerStyle-Mode="NumericPages"
                                    AllowSorting="true" AutoGenerateColumns="false" EnableEmbeddedSkins="false">
                                    <ClientSettings EnableRowHoverStyle="true">
                                        <Scrolling AllowScroll="true" SaveScrollPosition="true"></Scrolling>
                                        <Selecting AllowRowSelect="true" />
                                        <ClientEvents OnRowSelected="rowSelected" />
                                        <ClientEvents OnCommand="radGridStaffDetaills_Command" />
                                    </ClientSettings>
                                    <MasterTableView TableLayout="Fixed" PagerStyle-Mode="NumericPages" CssClass="RadGrid_Web20"
                                        ClientDataKeyNames="Staff_Code">
                                        <Columns>
                                            <telerik:GridBoundColumn SortExpression="Staff_Code" UniqueName="Staff_Code" DataField="Staff_Code"
                                                HeaderText="Staff Code" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false" Display="false" >
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="FirstName" DataField="FirstName" HeaderText="First Name"
                                                HeaderStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="LastName" DataField="LastName" HeaderText="Last Name"
                                                HeaderStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="Designation" DataField="Designation" HeaderText="Designation"
                                                HeaderStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="JoiningDate" DataField="JoiningDate" HeaderText="JoiningDate"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left"
                                                ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="Country_Name" DataField="Country_Name" HeaderText="Country"
                                                HeaderStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="County_Name" DataField="County_Name" HeaderText="County"
                                                HeaderStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="PostalCode" DataField="PostalCode" HeaderText="Post Code"
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Wrap="false"
                                                ItemStyle-Wrap="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="Telephone" DataField="Telephone" HeaderText="Telephone"
                                                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Wrap="false"
                                                ItemStyle-Wrap="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="Mobile" DataField="Mobile" HeaderText="Mobile"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left"
                                                ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="Email" DataField="Email" HeaderText="Email"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left"
                                                ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="Department_Name" DataField="Department_Name"
                                                HeaderStyle-Wrap="false" Display="false" HeaderText="Department" HeaderStyle-HorizontalAlign="Left"
                                                ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="BusinessUnitId" DataField="BusinessUnitId"
                                                Display="false" HeaderText="BusinessUnitId" HeaderStyle-HorizontalAlign="Left"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false" ItemStyle-HorizontalAlign="Left">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="CaseTypeId" DataField="CaseTypeId" Display="false"
                                                HeaderText="CaseTypeId" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="CountyId" DataField="CountyId" Display="false"
                                                HeaderText="CountyId" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="CountryId" DataField="CountryId" Display="false"
                                                HeaderText="CountryId" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="SystemUserId" DataField="SystemUserId" Display="false"
                                                HeaderText="SystemUserId" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn SortExpression="Role_Id" DataField="Role_Id" Display="false"
                                                HeaderText="Role_Id" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                        

i have taken table above grid and which is having list on controls and i am hiding the table from button on a page so now i need to display grid with full space height so i m assigning control property Height=100% but its not working and if insated i am assigning in pixel as Height="400px" then its a fix height .So how can i set grid height flexible also i want scrolling automatically as i have added code in grid .



Dimo
Telerik team
 answered on 14 Jul 2010
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?