Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
148 views
The get_Collapsed() function is no longer working with the latest release.  It causes a full post back and never makes it past that call.

Thank you,


David
Top achievements
Rank 1
 answered on 21 Apr 2008
2 answers
101 views
Hey guys,

You had originally given me a snippet of code to use a couple of shared calendars I had created for the date picker popups on the advanced edit form of the scheduler.

You had me tie it to the FormCreated event and referenced the date pickers using _startDate and _endDate as the names. This worked great in Prometheus, but it no longer works in 2008.1.

I can't seem to find if the object names have changed to something else or if I have to do this in a different way now. If you can let me know when you get a chance, that would be great. Thanks.
Philip Senechal
Top achievements
Rank 1
 answered on 21 Apr 2008
1 answer
72 views
Dear Telerik,

when i disable embedded js and have script references to Telerik scripts, this line in RadPane.js causes a javascript error:

this._contentElement=$get("RAD_SPLITTER_PANE_CONTENT_"+this.get_id());

Thanks,


Simon


Tsvetie
Telerik team
 answered on 21 Apr 2008
1 answer
94 views
Hi,

I have definded some Wiki-Styles to the cssEditor.css

e.g.

".noteimportant{-moz-border-radius-bottomleft:20px;-moz-border-radius-bottomright:20px;-moz-border-radius-topleft:20px;-moz-border-radius-topright:20px;background-position:20px 50%;background-repeat:no-repeat;border-collapse:collapse;clear:both;margin:2em auto;min-height:40px;padding:15px 20px 15px 80px;text-align:justify;vertical-align:middle;background-color:#ffc;background-image:url(CSSImages/important.png);"


I enterd the following text in HTML-View...

"1st line
2nd line"

...and applied the style .notewarning

The Editor creates the following Code:
"
<p> </p><font class="notewarning">1st line<br />2nd line</font>
"

The result doesn't look nice in HTML-View
After I replace "font" with "div" all looks nice(as expected)


How can I configure the editor, to create different Tags with different styles?

e.g.

for styles like "div.styleNAMExyz{background-color:red;}" the editor creates "<div class="styleNAMExyz">1st line<br />2nd line</div>"
and for styles like "font.styleNAMExyz{background-color:red;}" the editor creates "<font class="styleNAMExyz">1st line<br />2nd line</font>"

Best would be dynamic, for styles like "tagNameXYZ.styleNAMExyz{background-color:red;}"
the editor creates  "<tagNameXYZ class="styleNAMExyz">1st line<br />2nd line</tagNameXYZ>"

Maybe it's all about configuration.
Or you add this feature to your next version?


kind regards,
Andreas
George
Telerik team
 answered on 21 Apr 2008
1 answer
153 views
Hi there, when i put Radcombobox in Radwindow, the childs expand Y position is correct for Firefox, but not IE. i can solve it by detect the client browser and set a OffsetY to a constant that will display correctly, but i think that's should be how the problem solved.
any idea? thanx
Simon
Telerik team
 answered on 21 Apr 2008
3 answers
153 views
I wish to change the background color of skin sunset of grid. I then modified the following


.GridCommandRow_Sunset
{
    background: #00FFFF none no-repeat 0 -1197px;
    color: #fff;
}

However, when I fresh my page, it does not take up the new setting and is always showing the original color. How do I make this work?
Dimo
Telerik team
 answered on 21 Apr 2008
1 answer
170 views
Dear Telerik,

We have been developing a RIA for the last couple of months. Recently it was tested form a location in England (with our development servers in Australia).

The results are disturbing as the page load is far longer (say 10-12 seconds) than we are getting from locations here in Australia. I have been using Firebug in an attempt to see what is happening and am convinced the problem is with multiple requests being sent back to our server to retrieve the embedded rsources. My reasons for this are:
1. Page loads are much faster (3 sec) when the Telerik controls are removed.
2. Page loads are faster if IE "check for newer versions of stored pages" is set to never.
3. Firebug color codes the network traffic in a lighter gray if it is saticefied by cache - this is not happening - .axd based resources are still the darker colour.

I have checked the response header using Firebug and the Cache-Control is set to Public.

The way the app is structured, the page content that contains Telerik controls is loaded into a dynamically added IFRAME element - does this have any ag=ffect on caching ? I am not adding any of my own headers, but i have added the following to the web.config :

 <system.web.extensions>
  <scripting>

   <scriptResourceHandler enableCompression="true" enableCaching="true"/>
  </scripting>

 </system.web.extensions>

 <compilation debug="false">

Simon
Telerik team
 answered on 21 Apr 2008
1 answer
66 views
I really like this style.  Unlike the other ones the status bar was low contrast and did not take the users attention away from the content window.

What do I have to do to keep using this skin for the next release Q2?


Sophy
Telerik team
 answered on 21 Apr 2008
7 answers
194 views
C#, web part for MOSS 2007:

Have my RadGrid defined and populated in the CreateChildControls() method.  I am trying to use the ItemCommand event handler with limited success.

When I debug, the following events are not fired and caught in my ItemCommand() event handler method:

PerformInsertCommand
UpdateCommandName

Meanwhile, the following events are fired and caught in my ItemCommand() event handler method:

InitInsertCommandName
EditCommandName

It seems as though the "pre" action events are firing, but not the "post" action events.

Any ideas?
Vlad
Telerik team
 answered on 21 Apr 2008
2 answers
246 views
I would like to use the EnableLoadOnDemand feature of the RadComboBox.  I have it working now but would like to use an ItemTemplate also and can't seem to figure out how to get it to work.

Here is the template:
<telerik:RadComboBox ID="ddlActivity2" runat="server" Skin="DWDS" EnableEmbeddedSkins="false" MarkFirstMatch="true" Width="728px"   
                                 Height="320px" ShowMoreResultsBox="true" EnableLoadOnDemand="true" OnItemsRequested="ddlActivity2_ItemsRequested" EnableVirtualScrolling="true" ShowToggleImage="true" 
                                  DataTextField=Name_Partner  
                                HighlightTemplatedItems="true"  
                                DataValueField=Activity_ID 
                                > 
                                <HeaderTemplate> 
                                    <table style="text-align:left; width:728px;"> 
                                        <tr> 
                                            <td style="text-align:left; width: 250px;">Activity</td> 
                                            <td style="text-align:left; width: 250px">Partner</td> 
                                            <td style="text-align:left; width: 228px">Category</td> 
                                        </tr> 
                                    </table> 
                                </HeaderTemplate> 
                                <ItemTemplate> 
                                    <table style="text-align:left; width:728px"> 
                                        <tr> 
                                            <td style="text-align:left; width: 250px;"><%# DataBinder.Eval(Container, "Attributes['Name']")%></td> 
                                            <td style="text-align:left; width: 250px"><%# DataBinder.Eval(Container, "Attributes['PName']") %></td> 
                                            <td style="text-align:left; width: 228px"><%# DataBinder.Eval(Container, "Attributes['Category_Name']")%></td> 
                                        </tr> 
                                    </table> 
                                </ItemTemplate> 
                            </telerik:RadComboBox> 

Here is the code behind:
protected void ddlActivity2_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) 
        { 
            DataTable data = new DataTable(); 
            SqlConnection myCN = new SqlConnection(ConfigurationManager.ConnectionStrings["oConnCF"].ConnectionString); 
            SqlCommand myCom = new SqlCommand(); 
            myCom = new SqlCommand("Activity_ByGrant_ByPartner_Ajax", myCN); 
            SqlDataAdapter da = new SqlDataAdapter(myCom); 
 
            myCom.CommandType = CommandType.StoredProcedure; 
            myCom.Parameters.Add("@filter", SqlDbType.Text).Value = e.Text; 
            if (uInfo.Access >= 30) 
            { 
                myCom.Parameters.Add("@gid", SqlDbType.Int).Value = _grantID; 
                myCom.Parameters.Add("@pid", SqlDbType.Int).Value = 0; 
            } 
            else 
            { 
                myCom.Parameters.Add("@gid", SqlDbType.Int).Value = _grantID; 
                myCom.Parameters.Add("@pid", SqlDbType.Int).Value = uInfo.PartnerID; 
            } 
 
             
                DataSet ds = new DataSet(); 
                da.Fill(ds,"Events"); 
                data = ds.Tables["Events"]; 
         
             
            try 
            { 
 
                int itemsPerRequest = 10; 
                int itemOffset = e.NumberOfItems; 
                int endOffset = itemOffset + itemsPerRequest; 
                if (endOffset > data.Rows.Count) 
                { 
                    endOffset = data.Rows.Count; 
                } 
                if (endOffset == data.Rows.Count) 
                { 
                    e.EndOfItems = true; 
                } 
                else 
                { 
                    e.EndOfItems = false; 
                } 
                for (int i = itemOffset; i < endOffset; i++) 
                { 
                    RadComboBoxItem item = new RadComboBoxItem(data.Rows[i]["Name"].ToString(), data.Rows[i]["Activity_ID"].ToString()); 
                    item.Attributes.Add("Name", data.Rows[i]["Name"].ToString()); 
                    item.Attributes.Add("PName", data.Rows[i]["PName"].ToString()); 
                    item.Attributes.Add("Category_Name", data.Rows[i]["Category_Name"].ToString()); 
 
                    ddlActivity2.Items.Add(item); 
                } 
 
                if (data.Rows.Count > 0) 
                { 
                    e.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), data.Rows.Count.ToString()); 
                } 
                else 
                { 
                    e.Message = "No matches"; 
                } 
            } 
            catch 
            { 
                e.Message = "No matches"; 
            } 
        } 
As you can see I have been trying several different approaches (this happens to be where I finally gave up).

Any suggestions would be appreciated.

Thanks





Curt
Top achievements
Rank 1
 answered on 21 Apr 2008
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?