Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views
Dim _comboBox As RadComboBox = TryCast(o, RadComboBox) 
    If _comboBox.SelectedIndex > -1 Then 
        Dim _dataItem As GridDataItem = CType(_comboBox.NamingContainer, GridDataItem) 
        _dataItem("Column2").Text = "Stuff" 
    End If 
End If 
 
The above updates a cell.  How do I find the control of Column2?
Princy
Top achievements
Rank 2
 answered on 23 Feb 2009
1 answer
115 views

I followed the example code to replace the edit form in the documentation. It all works fine except that I cannot get the scheduler to refresh after the radwindow closes.

I added an alert to the given javascript function:

function refreshScheduler()  
{

    alert('about to refresh scheduler');
    var ajaxManager = $find("RadAjaxManager1");
    ajaxManager.AjaxRequest('RebindScheduler');
}

The alert displays but immediately afterward there is an "Error on page". Detail is "Object doesn't support this property or method.". The AjaxRequest event of the radAjaxManager never fires so the scheduler does not refresh.

Any ideas?
John.

 

 

 

Peter
Telerik team
 answered on 23 Feb 2009
3 answers
176 views
Hi guys,
First of all, I need to say something about the documentation... I'm trying to fix a web application where the guy that left the company made, using Telerik (because he was confortable with it) and it did all in several files without any comments... So I'm always lost, and your documentation does not help me a bit! :(

I miss the "Related to" and the functions and methods when using the Grid dynamically... we have the setup in a XML that is changed using a Windows Form, and this web application has to "read" that XML and create the design made, so... I can't write anything into the aspx file except a couple of tags that server as an anchor.

Your documentation lacks (a lot) about using the Controls dynamically, so, make calls on runtime, create actions, use the events, etc...

for example... I have in his code something like:

if (masterTable.get_isItemInserted() == true) {
   __doPostBack('grid$ctl00$ctl02$ctl02$PerformInsertButton', '');
}

I wonder... where's the PerformInsertButton comes from? there is no reference at all in the code, and In some examples I can see that's something from the Grid Control.

Is there any tutorial, Documentation, anything (money is not a problem, I can schedule and buy a couple hours of Telerik Support), to get the know how of ALL functions and events (and descriptivly what do they do) of the Telerik controls, more specifically, the Ajax Controls?

Thank you...
Daniel
Telerik team
 answered on 23 Feb 2009
1 answer
49 views
Hi,

We are currently using Dundas (which we hate) for charting. I'm seriously considering migrating our project to Telerik charts since we already use Telerik for other stuff and was wondering if any new chart types / features were coming up that would help me justify the switch? 

-Al
Hristo
Telerik team
 answered on 23 Feb 2009
2 answers
149 views
Hi All!

I used RadToolTipManager on my aspx page:

<telerik:RadToolTipManager ID="ttEditSeason" runat="server" ManualClose="True" OnAjaxUpdate="ttEditSeason_AjaxUpdate" Position="TopRight" RelativeTo="Element" ShowEvent="OnClick" Width="950px" Height="200px" Skin="Web20"
</telerik:RadToolTipManager> 

and his AjaxUpdate event

protected void ttEditSeason_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e) 
        Control ctrl = Page.LoadControl("~/user/EditSeason.ascx"); 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl); 

So, I load my user control in ToolTip (I get it from example http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx).
In my user control exist RadDatePicker. But when I click on DatePopupButton then popup calendar displaying under tooltip area. Why?

It code  from my user control ascx page:
 
                                <telerik:RadDatePicker ID="dpBeginDate" runat="server" Width="150px" Skin="WebBlue" Culture="English (United States)" EnableTyping="False" AutoPostBack="True"
                                    <DateInput LabelCssClass="riLabel radLabelCss_WebBlue" Skin="WebBlue" ReadOnly="True" Width="" AutoPostBack="True"
                                    </DateInput> 
                                    <Calendar Skin="WebBlue" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                        ViewSelectorText="x"
                                    </Calendar> 
                                    <DatePopupButton CssClass="radPopupImage_WebBlue" HoverImageUrl="~/Images/DatePicker.png" ImageUrl="~/Images/DatePicker.png" /> 
                                </telerik:RadDatePicker> 
                            </td> 
                            <td> 
                                <telerik:RadDatePicker ID="dpEndDate" runat="server" Width="150px" Skin="WebBlue" Culture="English (United States)" EnableTyping="False"
                                    <DateInput LabelCssClass="radLabelCss_WebBlue" Skin="WebBlue" ReadOnly="True" Width=""
                                    </DateInput> 
                                    <Calendar Skin="WebBlue" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                        ViewSelectorText="x"
                                    </Calendar> 
                                    <DatePopupButton CssClass="radPopupImage_WebBlue" HoverImageUrl="~/Images/DatePicker.png" ImageUrl="~/Images/DatePicker.png" /> 
                                </telerik:RadDatePicker> 
<br /> 
<asp:Button id="btn" runat="server" text="Ok" /> 
 




Any ideas?

Thanks!
Evgeniy
Top achievements
Rank 1
 answered on 23 Feb 2009
1 answer
278 views
Hi All!

I have made the grid scrollable and set the width of master table to "96%" n table layout = auto.
1. This is to avoid horizontal scrollbar when its vertically scrollable. But when my grid contains only 2-3 items i want to reset this width to 100% through javascript. How can i do this.

2. There is another question, i wanted to set headers fixed, but when i do this.. my grid looks very odd in terms of row height n width. Also there comes an unknown patch sort of at the end of row header and. my itemtemplate column dissappeares where i m displaying radio buttons. Any solution??

Thanks!



Dimo
Telerik team
 answered on 23 Feb 2009
1 answer
128 views
Hi

i have a rad outlook style grid . while exporting grid into excel sheet want to hide particular columns(Edit ,Delete)  in excel  sheet.
In common grid  and hierarchical grid i achieved this issue like
Gridname.MasterTableView.Columns[i].Visible
= false
Gridname.MasterTableView.DetailsTables[0].Columns[i].Visible = false
, but in  outlook grid Edit and delete columns header text and item data null but those two columns getting display . but i don't want display those columns .


Thanks for any help.
Princy
Top achievements
Rank 2
 answered on 23 Feb 2009
3 answers
193 views
Hi,

I am using the Batch Update method as found in the help files as follows:

Hashtable newValues = new Hashtable(); 
                //The GridTableView will fill the values from all editable columns in the hash 
                e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem); 
 
                //sqlUpdatePayments.UpdateCommand = String.Format("Update Customers SET ContactName='{0}' WHERE CustomerID='{1}'", newValues["ContactName"], editedItem.GetDataKeyValue("CustomerID").ToString()); 
                sqlUpdatePayments.UpdateCommand = String.Format("UPDATE [MainBookings] SET [PaidType] = '{0}' WHERE [ClassBookedID] = '{1}'", newValues["PaidType"].ToString(), editedItem.GetDataKeyValue("ClassBookedID").ToString()); 
                sqlUpdatePayments.Update(); 

When performing the update, the update fails when it encounters a Null value. (Not all the records always need a value)
The data in question is coming from the below BoundColumn,

<telerik:GridBoundColumn UniqueName="PaidType" DataType="System.String" ConvertEmptyStringToNull="true" HeaderText="PaidType" DataField="PaidType" />

Could someone advise how I can deal with these null values?

Thanks in advance.
Harry

HarryS
Top achievements
Rank 1
 answered on 23 Feb 2009
1 answer
135 views
I am using radmenu with templates and would like to set the expansion panel to the width of the menu bar for all items so that the expansion panel  drops under the menu and is limited left and right by the width of the menu.  Can anyone explain the css mods needed to get this effect?
Yana
Telerik team
 answered on 23 Feb 2009
2 answers
86 views
I am trying to remove the vertical strip that the sliding zone appears from.  i would like the sliding zone appear out from element we designed, but do not want the default bordered look it has.  also, we do not want the icon bar (with the icons of X and push pin).  we want that removed too.

thanks much.
Bruce
Top achievements
Rank 2
 answered on 23 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?