Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
56 views
I have created a RadGrid control with a detail table programatically on page_init; imagine Country -> Regions

When the "Open" nested table icon is clicked, the whole page is posted back and as a result the Country list is re-populated then the regions associated with the selected country gets loaded.

The problem is that the Country list is already on the page, why everything should be reloaded again since only one country was selected to retrieve its regions.

As a result of this problem, my RadGrid is slow when using its nested tables as it has to reload all other layers each time.

How would that be possible to only load the nested table which is required rather than loading the whole Grid?

Many thanks,
Genti
Telerik team
 answered on 11 Jul 2011
1 answer
93 views
I recently downloaded the latest maintenance release and installed it yesterday.  I was testing some code today which contained an instance of the Editor.  I am having a strange problem when trying to create new bullet items.

I have attached two screen captures to show what is happening.  The first screen capture was taken BEFORE clicking the Bullet Item button.  It should be noted that before the Bullet Item button was clicked, the cursor was sitting 2 carriage returns below the second paragraph.

The HTML in the control before clicking the Bullet Item button is shown immediately below:

<span style="font-family: arial; font-size: 12px;">
<p><span style="font-family: arial; font-size: 12px;">When THDi Software builds a public website for your company, you will have the option of making certain "content mangement" fucntionality available for approved employees on your staff to use to maintain the text and verbiage on your website.<br />
<br />
There are many different categories of information for your maintenance purposes.  These tools will reduce the time you need to spend maintaining your website and will reduce your total charges for our labor.  Of course, if you want, we can maintain this information for you.<br />
<br />
</span></p>
</span>
<p> </p>


What I wanted to accomplish was to create a new bullet item UNDER the second paragraph.

The second screen capture shows what the Editor did when I clicked on the Bullet Item button.  Please understand, the cursor really was positioned two (2) carriage returns BELOW THE SECOND PARAGRAPH.

The created HTML after the action is immediately below:
<span style="font-family: arial; font-size: 12px;">
<p> </p>
</span>
<p> </p>
<ul>
    <li><span style="font-family: arial; font-size: 12px;">When THDi Software builds a public website for your company, you will have the option of making certain "content mangement" fucntionality available for approved employees on your staff to use to maintain the text and verbiage on your website.<br />
    <br />
    There are many different categories of information for your maintenance purposes.  These tools will reduce the time you need to spend maintaining your website and will reduce your total charges for our labor.  Of course, if you want, we can maintain this information for you.<br />
    <br />
    </span></li>
</ul>


Is there a problem with the Editor?  Why, with all of the carriage returns included in the text, did it go back to the first paragraph and create a bullet item?

Lynn
Rumen
Telerik team
 answered on 11 Jul 2011
2 answers
53 views
Hello, 

So I seem to have stumbled upon a very strange issue with the RadRotator that I have setup on one of my pages. I have two control buttons for scrolling left and scrolling right. When you click the scroll left control button all the way to the right it scrolls to the left, but if you click the scroll left control button on the left side of the button it scrolls the rotator to the right. Anyone have any idea as to why? The buttons that I am using are radbuttons with an image sprite doing the graphics. Please take a look at the link below to see the issue in action.

http://myheadpiece.com/test/Pages/HatCustomizerPage.aspx
Bruce
Top achievements
Rank 1
 answered on 11 Jul 2011
5 answers
178 views
Hi, we have a grid that for some reason renders differently from our PCs when we publish our web application to production.  The grid has static column headers, and we set its width to 100%.  For some reason, when we develop it in our PCs, it displays perfectly, with the content taking up the entire grid.  When we publish the same exact code to our production server (or any other server so that the application is not running locally on our PCs when we access it), and the grid is still set to 100%, but the content doesn't take up the whole grid.  When I run the rendered HTML code through WinDiff, it tells me that the following line renders differently:

In development:
<table cellspacing="0" class="rgMasterTable rgClipCells" border="0" id="Domestic_userControl_rgDomestic_ctl00_Header" style="width:100%;table-layout:fixed;overflow:hidden;text-overflow:ellipsis;empty-cells:show;"

In production:
<table cellspacing="0" class="rgMasterTable rgClipCells" border="0" id="Domestic_userControl_rgDomestic_ctl00_Header" style="table-layout:fixed;overflow:hidden;text-overflow:ellipsis;empty-cells:show;"

Notice how in development it adds "width: 100%".  Both are using the same exact code however:
<telerik:RadGrid runat="server" ID="rgDomestic" AllowFilteringByColumn="true" 
                                    AllowSorting="true"  ShowFooter="True" EnableLinqExpressions="false" 
                                    AllowPaging="True"  AllowMultiRowSelection="true" 
                                    ShowGroupPanel="true" ShowHeader="true" 
                                    PageSize="15" 
                                           
                                 AutoGenerateColumns="false">  
                                 <ClientSettings Selecting-AllowRowSelect="true"  ClientEvents-OnGridCreated = "DomesticGridCreated"  AllowDragToGroup="true" AllowGroupExpandCollapse="true"  EnableRowHoverStyle="true" ClientEvents-OnRowDblClick="RowDoubleClick" > 
                              <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" FrozenColumnsCount="2"/>  
                             </ClientSettings> 
                             <GroupingSettings ShowUnGroupButton="true" /> 
                                   <MasterTableView GroupsDefaultExpanded="false" GroupLoadMode="Client" HierarchyLoadMode="Client" ClientDataKeyNames="DocNum" DataKeyNames="DocNum">  
                                            <Columns> 

I attached two Screenshots, capture1 of the production result which doesn't seem to render correctly, and capture2 which is the result when we run it locally on our PCs which does seem to render correctly.  Why could this be happening?

Thank you!


Pavlina
Telerik team
 answered on 11 Jul 2011
2 answers
254 views
Now this is weird:

I initialize the page with :
this.StartDate.SelectedDate = DateTime.Now;

on postback, I don't click the control on the page,  "SelectedDate " is null.

When I actively select a date, the value is not null.

Why is that?

Thanks
-Itye
Mira
Telerik team
 answered on 11 Jul 2011
6 answers
210 views
Hi all,

I am looking to create a RadDock client-side, but noticed that calling Telerik.Web.UI.RadDock() does not produce an object as I was hoping it would. Is this functionality support explicitly? If not, how about a work-around that could achieve this functionality?

At the very least, let me explain my whole scenario:

I am converting a RadControls for AJAX application to MVC2. I have opted to use the AJAX controls inside of the MVC architecture. My application supports dynamically creating RadDocks and attaching them to dynamically created RadDockZone's on the page. If I create my RadDock in my Controller, then I have no means to Dock it to a RadDockZone (since the View knows about this control, not the Controller).

As such, I was planning on creating a RadDock in the controller, setting it all up, then passing it back to the view as JSON. Once in the view, I would like to create the RadDock object again based off of the JSON, but this does not seem possible?

Suggestions welcome..
Sean
Top achievements
Rank 2
 answered on 11 Jul 2011
2 answers
202 views
I am using NeedDataSource to databind a RadGrid to a collection of Entities using the Entity Framework 4.

protected void dgPerson_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            dgPerson.DataSource = LocalEntityManager.Context.People;
        }

That all works fine but the StartsWith and EqualTo filter option do not return any rows. I have tried setting EnableLinqExpression to true and false but it makes no difference. There are 65,000 objects in this list of people objects. Could it be that is too many to filter by?

<telerik:RadGrid ID="dgPerson" runat="server"
        AllowFilteringByColumn="True"
        AllowSorting="True"
        AllowPaging="true"
        PagerStyle-Mode="NextPrevNumericAndAdvanced"
        GridLines="None"
        OnNeedDataSource="dgPerson_NeedDataSource"
        EnableLinqExpressions="true"
        ShowStatusBar="true"
        Skin="Black">
    <MasterTableView 
        Name="Person"
        autogeneratecolumns="False"
        CommandItemDisplay="Top"
        datakeynames="PersonID"
        pagesize="20"
        EditMode="PopUp"
        EditFormSettings-PopUpSettings-Modal="false"
        EditFormSettings-PopUpSettings-Width="950px">
    <RowIndicatorColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
    <ExpandCollapseColumn>
        <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
    <SortExpressions>
        <telerik:GridSortExpression FieldName="FullName" SortOrder="Ascending" />
    </SortExpressions>
    <Columns>
        <telerik:GridBoundColumn DataField="PersonID" DataType="System.Int32" FilterControlWidth="40px"
            HeaderText="ID" ReadOnly="True" SortExpression="PersonID" UniqueName="PersonID">
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn HeaderText="Full Name" SortExpression="FullName" UniqueName="FullName" DataField="FullName" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith">
            <ItemTemplate><asp:Literal runat="server" ID="litFullName" Text='<%# Eval("FullName") %>'></asp:Literal></ItemTemplate>
            <EditItemTemplate><asp:TextBox runat="server" ID="txtFullName" Width="300px" Text='<%# Bind("FullName") %>'></asp:TextBox></EditItemTemplate>
        </telerik:GridTemplateColumn>
Curtis
Top achievements
Rank 1
 answered on 11 Jul 2011
1 answer
123 views

I am having some problems with the telerik editor templates. For instance, the ImageAndTitle.htmtemplate that came with the editor  does not seem to be reading its stylesheet, ImageAndTitle.css. This is a simple template with an image floating to the left and text wrapping around the image.

When the template is previewed, it looks fine, but once it is applied to the editor interface the formatting is lost.  I am using the editor with DotnetNuke 5.6.1. My goal is to create a custom template, but I want to understand why this one is not working before I create a custom template. 

Below is the code for the ImageAndTitle htmtemplate and css.

Template code:

<div class="template imageandtitle"
  <div class="container region content"
    <img width="100"; height="100" alt="image placeholder" title="replace with your own image" /> 
    <h3>Type the title here</h3
    <p>Type the text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ornare, nisl ac vehicula  
    
volutpat, tellus sem congue sem, et varius ipsum neque in tortor. Curabitur massa nunc, ultricies ac mollis id,  
    
varius ac sapien. Duis nec dolor ac velit semper malesuada eget non dolor. Vestibulum mollis ligula vel ipsum  
    
lobortis a adipiscing mauris imperdiet.</p
    </div
</div>

CSS code:
@charset "utf-8"; 
/* CSS Document with styles necessary for default HtmlEditor HTML "snippet" templates */
    
/* Styles for ALL Default Templates */
div.template 
 text-align: left; 
 width: 100%; 
 overflow: auto; 
    
div.template div.container 
 clear: both; 
 margin: 0; 
 padding: 0; 
 overflow: auto; 
 position: relative; 
    
div.template div.region 
 padding: 5px; 
 margin: 0; 
    
/* Styles for "Image And Title" template */
div.template.imageandtitle h3
 margin-top: 0; 
    
div.template.imageandtitle img 
 float: left; 
 margin: 0; 
 margin-right: 10px; 
}

Thanks for your help.
Gayle
Rumen
Telerik team
 answered on 11 Jul 2011
5 answers
85 views
Hello,

Does anyone know where I can find the documentation for the old version (2008.1.515.20)?  I can't seem to find it anywhere.

Thanks in advance.
Georgi Tunev
Telerik team
 answered on 11 Jul 2011
1 answer
94 views
hi,
i have a situation that I would love to hear if anyone knows a solutions.
Here is the issue: 

i have a Radwindow openned that allows user to upload files to my server, once the files are processed they then need to be downloaded back to the local computer.  the problems is on somoe computer IE, i receive a popup notification that informs the user that IE is blocking the download, and if they want to download it they need to verify and accept the it.

no problem so far...

now when the user accepts to download the files from the IE popup, the screen get refeshed and my Radwindow now disappears.
which means all the files they uploaded, are no longer there to retrieve

My question:
is there a way to keep the Radwindow open even though this IE accpt process forces refresh?  even though the refresh happens, it should refresh right back to the page with the radwindow openned....hoever it is not.

any ideas?

thanks
Georgi Tunev
Telerik team
 answered on 11 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?