Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
201 views
I am using Telerik.Web.UI 2009.1.311.20. I have a grid in a master page and I am creating its structure and populating it from the content pages. This is the code I use in a content page:

protected new void Page_Load(object sender, EventArgs e) 
    { 
         
        ContentPlaceHolder cph = Master.Master.FindControl("PageContents"as ContentPlaceHolder; 
        RadGrid grid = cph.FindControl("RadGrid1"as RadGrid; 
 
        if(!IsPostBack) 
        { 
            DefineGridStructure(grid); 
        } 
 
        PopulateGrid(grid); 
    } 
 
    public override void DefineGridStructure(RadGrid grid) 
    { 
        grid.MasterTableView.DataKeyNames = new string[] { "CustomerID""Name"}; 
          
        GridBoundColumn boundColumn; 
        GridTemplateColumn templateColumn; 
         
        boundColumn = new GridBoundColumn(); 
        grid.MasterTableView.Columns.Add(boundColumn); 
        boundColumn.DataField = "Name"
        boundColumn.HeaderText = Resources.Strings.Name; 
 
        templateColumn = new GridTemplateColumn(); 
        grid.MasterTableView.Columns.Add(templateColumn); 
        templateColumn.DataField = "CustomerId"
        templateColumn.HeaderText = ""
        templateColumn.AllowFiltering = false
        templateColumn.ItemTemplate = new ImageLinkTemplate("CustomerId""~/Images/View.gif"
            "CustomersView.aspx", Resources.Strings.View); 
    } 
 
    public override void PopulateGrid(RadGrid grid) 
    { 
        CustomerService service = new CustomerService(); 
        grid.DataSource = service.GetGridData(base.GetCompanyId()); 
    } 
 

The problem I have is that whenever I do a post back (by sorting the grid or navigating to a different grid page), the GridTemplateColumn is no longer shown. Any suggestions on how to fix this?

Ion
Top achievements
Rank 1
 answered on 07 Apr 2009
2 answers
98 views
Hi,

I want to use RadGrid with ViewState set to false.  Each of my grid row has some text of data, a serverside hyperlink and button?
How can I subscribe to these events as  the CommandArgument that is  retrieved on ItemCommand is null?

What's the workaround for this?  Any pointers in this direction is greatly appreciated?

Regards,
Rajesh
Rajesh
Top achievements
Rank 1
 answered on 07 Apr 2009
1 answer
124 views
Hello
I have above 30+ items in a dropdown menu what control is the best help me organize usability?

Is combobox a better choice?

Thanks,
Shinu
Top achievements
Rank 2
 answered on 07 Apr 2009
2 answers
118 views
Hello ,

I am using telerik grid latest version. Whether any javascript is there to remedy Resize problem based on window resize.?Please help for this.

senthil
Top achievements
Rank 1
 answered on 07 Apr 2009
0 answers
131 views
Hi,

I have a web application (asp.net 2.0, telerik) in a Windows 2003 server. This morning, the server was restarted and when I tried to access the application, I received this error message:

"Unknown server tag 'asp.ScriptManager'. at System.Web;Ui.TagPrefixTagNameToTypeMapper.System.Web.UI.ItagNameToTypeMapper.GetControleType..."

Could you help me to understand what is happened?

Thanks in advance!

Verusa
Verusa
Top achievements
Rank 1
 asked on 06 Apr 2009
8 answers
276 views
Is the Popup Calendar broken for FireFox in the DatePicker control?  It seems to work in IE.  Do I have a bad install/config?  I have the classic RadControls running in the same app.  I also had promethus running and upgraded it to the latest RadControls.  Other controls in this new version seem to work fine.  I've always used the DatePicker from classic (which works in firefox & ie) but now trying to upgrade my whole app to the latest RadControls.  However, if the Popup Calendar is busted in FireFox I can't overhaul to the latest RadControls :/.
cli
Top achievements
Rank 1
 answered on 06 Apr 2009
2 answers
71 views
I recently upgraded to the AJAX Q2 2008 controls.
When I did a strange problem started happening.  The rows per minute on the scheduler control started doubling.  When i put in 5, the scheduler shows 10.  When I put in 10, the scheduler shows 20 minutes per row.
I've debugged and can watch the value being set on the scheduler and it doubles that value.
Is anyone else having an issue with this property of the control?
Thanks....
Ben
Top achievements
Rank 1
 answered on 06 Apr 2009
1 answer
99 views
Hello,

I'm getting a "null" or not an object error when the javascript gets to this line:

firstTreeView.trackChanges();


I'm trying out the TreeView component in the 2009 Ajax controls with Visual Studio 2005.  I used the example vb files.  Then, deleted the qsf references because I wasn't sure how to fix them.  The demo code works for the text box and the grid, but whenever I drag and drop an item from one treeview to the other, it doesn't complete and I notice the JavaScript error.  I traced it this line using alerts.

Is there sometime of setup that's required to get this to work?

Thanks,

Mike
Mike Philbrick
Top achievements
Rank 1
 answered on 06 Apr 2009
3 answers
119 views



Here is the rad scheduler and the data sources, I get the resources to enter into the db however
when I go back to edit them They do not bind the dropdown anymore.

Can someone explain what else is needed to get that to happen?

<
telerik:radscheduler runat="server"  Width="797px" SelectedView="MonthView" id="appointmentScheduler" 
            Height="565px" DataEndField="End" DataKeyField="appointmentId" DataSourceID="SqlDataSource1"  
            DataStartField="Start" DataSubjectField="subject" Skin="WebBlue"  
            StartInsertingInAdvancedForm="True" OnAppointmentDataBound="appointmentBound">               
            <resourcetypes> 
                <telerik:ResourceType DataSourceID="SqlDataSource3" ForeignKeyField="typeId"  
                    KeyField="appointmentTypeId" Name="Type" TextField="type" /> 
            </resourcetypes> 
        </telerik:radscheduler> 
        <asp:SqlDataSource ID="SqlDataSource3" runat="server"  
            ConnectionString="<%$ ConnectionStrings:myConnection %>"  
            SelectCommand="SELECT [appointmentTypeId], [type] FROM [v2AppointmentTypes] ORDER BY [type]"
        </asp:SqlDataSource> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
            ConnectionString="<%$ ConnectionStrings:myConnection %>"  
            SelectCommand="SELECT * FROM [v2Appointment]"  
            DeleteCommand="DELETE FROM [v2Appointment] WHERE [appointmentId] = @appointmentId"  
            InsertCommand="INSERT INTO [v2Appointment] ([typeId], [Start], [End], [subject]) VALUES 
(@typeId, @Start, @End, @subject)"
  
            UpdateCommand="UPDATE [v2Appointment] SET [typeId] = @typeId, [Start] = @Start, [End] = @End, 
[subject] = @subject WHERE [appointmentId] = @appointmentId"
            <DeleteParameters> 
                <asp:Parameter Name="appointmentId" Type="Int32" /> 
            </DeleteParameters> 
            <UpdateParameters> 
                <asp:Parameter Name="typeId" Type="String" /> 
                <asp:Parameter Name="Start" Type="DateTime" /> 
                <asp:Parameter Name="End" Type="DateTime" /> 
                <asp:Parameter Name="subject" Type="String" /> 
                <asp:Parameter Name="appointmentId" Type="Int32" /> 
            </UpdateParameters> 
            <InsertParameters> 
                <asp:Parameter Name="typeId" Type="String" /> 
                <asp:Parameter Name="Start" Type="DateTime" /> 
                <asp:Parameter Name="End" Type="DateTime" /> 
                <asp:Parameter Name="subject" Type="String" /> 
            </InsertParameters> 
        </asp:SqlDataSource> 
Rick
Top achievements
Rank 1
 answered on 06 Apr 2009
2 answers
202 views
Hi All,

I want to implement an Ajax rating control in my Grid. My initial idea is to include the rating control from the MS AJAX toolkit, but will happily settle for a telerik slider instead. I hope this has been posted and resolved before, but can't find any references.

"Out of the box" / Workaround or not possible.

Links, guidance or alternatives will be gratefully received.

Cheers.
Greg
Top achievements
Rank 1
 answered on 06 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?