Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
298 views
What I have is a radgrid with one column we are binding a persons email to it so that someone can click on the column and open outlook and then email someone.  But what happens is that it actually forwards the page and errors out, it still opens outlook but errors out the page.  Tired with a hyperlink and then tried seperately with a a href, both act the same way in forwarding the page to the persons email which errors it out.

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" OnNeedDataSource="RadGrid1_NeedDataSource"
            OnUpdateCommand="RadGrid1_UpdateCommand">
            <MasterTableView>
                <Columns>
                    <telerik:GridTemplateColumn>
                        <ItemTemplate>
                            <asp:HyperLink NavigateUrl='<%# Bind("Name", "mailto:{0}") %>' Text='<%# Bind("Name") %>'
                                runat="server" ID="hlEmail"></asp:HyperLink>
                                <br />
                                <a href='<%# "mailto:" + Eval("Name") %>'><%# Eval("Name") %></a>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn>
                    </telerik:GridEditCommandColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>


Antonio Stoilkov
Telerik team
 answered on 25 Apr 2012
8 answers
116 views
Hey Everybody!


I am redoing a clients site from classic asp to asp.net, and all is well up until it came down to a grid.


In short,

The grids columns are dynamic, as the customers site sells clothing, and sizes are dependent on the clothing size.

The grids should contain the contents of:

http://www.logodogzthreadz.com/productdisplay.asp?productID=201 

If you look down below 'Step 1', you'll see the colors name, a preview, and the sizes in columns with textboxes.


So, my question for you is this...


1. How could I add text boxes to a column programatically (in VB)
2. How could I add a color preview? It uses Hex codes, maybe add a label, make it blank and set the backcolor?

A code snippet would be fantastic.

Elliott
Top achievements
Rank 2
 answered on 25 Apr 2012
4 answers
71 views
Hi
 This is another error that I am getting:
Microsoft Jscript error. rows.0.cells is null or not and objehct

I get the above mentioned error when I transfere the database connection from the ASP.NET connetions in the code behind. I used the example http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx.

The demo works fine as it is but  when I do the changes to bind the RadScheduler from code behind, I get errors.

This is my code behind, please assist:

 protected void Page_Load(object sender, EventArgs e)
        {
           // XmlDocument xDoc = new XmlDocument();
          //  xDoc = DataTableToXmlDocument(getAppointment);
            //r order = xDoc.ChildNodes[2];
          // XmlDataSource1.Data = DataTableToXmlDocument(getAppointment).InnerXml;
           // xDoc = DataTableToXmlDocument(getAppointment).InnerXml;
            getmyAppointments();
            getmyRooms();
           
         // XmlDataSource1.DataBind();
        }
     
        public void getmyRooms()
        {
            SqlConnection myConnection = new SqlConnection();
            myConnection.ConnectionString = WebConfigurationManager.ConnectionStrings["Localstring"].ConnectionString;  
            SqlCommand myCommand = new SqlCommand();
            myCommand.CommandText = "SELECT [RoomID], [Name] FROM [Grouping_Rooms]";  
            myCommand.Connection = myConnection;  
            SqlDataAdapter myAdapter = new SqlDataAdapter(myCommand);  
            DataSet productsDataSet = new DataSet();  
            myAdapter.Fill(productsDataSet);
           
            ResourceType RT = new ResourceType();
            RT.DataSource = productsDataSet.Tables[0];
            RT.KeyField = productsDataSet.Tables[0].Columns[0].ToString();
            RT.ForeignKeyField = productsDataSet.Tables[0].Columns[0].ToString();
            RT.TextField= productsDataSet.Tables[0].Columns[1].ToString();
            RadScheduler1.ResourceTypes.Add(RT);
           
            
        }

        public void getmyAppointments()
        {
            SqlConnection myConnection = new SqlConnection();
            myConnection.ConnectionString = WebConfigurationManager.ConnectionStrings["Localstring"].ConnectionString;  
            SqlCommand Command = new SqlCommand();
            Command.CommandText = "SELECT [ID], [Description], [Start], [End], [RoomID], [RecurrenceRule], [RecurrenceParentID] FROM [Grouping_Events]";  
            Command.Connection = myConnection;  
            SqlDataAdapter Adapter = new SqlDataAdapter(Command);  
            DataSet AppDataSet = new DataSet();
            Adapter.Fill(AppDataSet);
           // RadScheduler1.
            RadScheduler1.DataKeyField = AppDataSet.Tables[0].Columns[0].ToString();
            RadScheduler1.DataSubjectField = AppDataSet.Tables[0].Columns[1].ToString();
            RadScheduler1.DataStartField = AppDataSet.Tables[0].Columns[2].ToString();
            RadScheduler1.DataEndField = AppDataSet.Tables[0].Columns[3].ToString();
            RadScheduler1.DataSource = AppDataSet.Tables[0];
          
            RadScheduler1.DataBind();
          
        }
Peter
Telerik team
 answered on 25 Apr 2012
12 answers
416 views
So I figured out how to have multiple radgrids and allow them to export to one page, which is great!
But I have an issue, I need the grids to fit on the screen of the web browser and they aren't.
I have two radgrids, one that has two columns and another that has about 10+ columns underneath. They are both within a radgrid, when I try to reduce the width nothing works, I have a scroll bar on the bottom the of browser which I don't want. The width of both radgrids are at 100% but the grid extends the screen to double instead of 100% being the screen itself, therefore not working properly.
Is there any way to have the scroll bar on one of the radgrids and not both? I have tried the Client Settings with Scrolling and it's working but I have 4 columns missing. I have also provided some code:

Can I get some help?
Anil Nautiyal
Top achievements
Rank 1
 answered on 25 Apr 2012
4 answers
287 views
I set RadGrid Height and it set correctly but the footer of radgrid is not set as per its height.
see the image.
Sagar
Top achievements
Rank 1
 answered on 25 Apr 2012
1 answer
115 views
Can your ASP.net controls be used with the MVP design pattern?
If yes, do you have any examples?
What would be the variances from web forms, such as the client-side events not being available or changes in binding or post-back support, etc.?
Do you have any plans in future to support other potential design patterns?

I have our team of developers using Telerik controls as our standard method. Your controls have saved us thousands of hours per year in time, PLUS have provided our end users a much richer, and easier to understand and use experience. The inherit problem with webform development can be addressed by several different design patterns including MVP and MVC. Using MVC means that the much wider set of options in your ASP.net AJAX suite is diminished to only the ASP.net MVC controls. Yes, we could mix webforms and MVC, but that isn't a good solution in my opinion. Looking into MVP, I would like to demo a project using MVP but need to know if I can get support in this direction from Telerik or not. Any input you have is greatly appreciated. I'm sure other developers who might be checking into this would find this of interest as well.
Daniel
Telerik team
 answered on 25 Apr 2012
1 answer
62 views
Hi,

Often discussed here, my problem although is a little bit different.

I have: a Masterpage,
a Usercontrol1 contains one RadGrid (gridParent), In this RadGrid there is a nested View, with a usercontrol also containing a Radgrid (gridChild).
From with the last RadGrid(childradGrid1), an Windowpopup (Defined in the masterpage) is opened.
OnClose of this window the gridChild's need datasource is triggered all datasets are up to date, so all data is correct (which is mostly the problem :))., but.. the chilradgrid1 gets no visual update.

Ive created a small demo project wich visualizes my problem.
The thing i left out is the AjaxUpdateSettings.
Ive tried so many things with the AjaxUpdateSettings, but cant bring it together.

Can you guys help me out??
Kind regards, Marco
Download the Example Soution: http://www.pridux.nl/WebApplication3.zip (145kb: telerik Web.UI not inlcuded, Version 2011 Q3)


Maria Ilieva
Telerik team
 answered on 25 Apr 2012
1 answer
46 views
Hi,

Clicking on any telerik link in the page is causing all the IE related stylesheets(IE7.css, IE8.css etc) to load in other browsers(Mozilla, chrome etc) also.

IE style sheets have been added as below:
<!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="content/css/ie7.css" />
    <![endif]-->
    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="content/css/ie8.css" />
    <![endif]-->
    <!--[if IE 9]>
    <link rel="stylesheet" type="text/css" href="content/css/ie9.css" />
    <![endif]-->


Regards
Kate
Telerik team
 answered on 25 Apr 2012
2 answers
60 views
Hi, i have a quick question.
Wenn a use the AdvancedInsertTemplate, a popup with 1 Textbox and 3 Buttons (Save,Cancel and option) appears.
Wenn i click of Options my great Template is visible.
The question is How Can I direct make that my templates appears directly next my click of the scheduler ?

Thanks for your Help

Fabrice
Fabrice
Top achievements
Rank 1
 answered on 25 Apr 2012
1 answer
36 views
I need to create a line graph that starts from a given position in the X axis
Peshito
Telerik team
 answered on 25 Apr 2012
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?