Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
298 views
Hi all,

I have rad scheduler and I need to redirect to another page when the time slot or appointment click with appointment id or start time and end time in the url. Please any one help regarding this. 

thanks,
Saravanan.S
saravanan subramanian
Top achievements
Rank 1
 answered on 29 Sep 2009
7 answers
219 views
Hi,

I would like to have a toolbar where you can drag an item from a toolbar into the relevant dock area which will then create the item in the dock - the toolbar item should be available to be dragged multiple times to create the same item in different dock areas.

Has anyone else implimented this / or are there any demos on how to do this?

thanks
Toby
Pero
Telerik team
 answered on 29 Sep 2009
2 answers
224 views
Can someone tell me how to write this in VB:

void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)   
{   
    if (e.Item is GridNestedViewItem)   
    {   
        (e.Item.FindControl("InnerGridId") as RadGrid).NeedDataSource += new GridNeedDataSourceEventHandler(_Default_NeedDataSource);   
    }   
} 

I tried using the converter and got:

    Private Sub gridActivities_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridActivities.ItemCreated  
        If TypeOf e.Item Is GridNestedViewItem Then 
            (TryCast(e.Item.FindControl("gridInvoices"), RadGrid)).NeedDataSource += New GridNeedDataSourceEventHandler(_Default_NeedDataSource)  
        End If 
    End Sub 

But I get a syntax error on the first parenthesis of the try cast line.  Thanks.

Sam
Dave
Top achievements
Rank 1
 answered on 29 Sep 2009
2 answers
181 views
HI,

I have a requirement where i want to show radtreeview and grid in explorer like view.We also need a functionality where an item from grid can be drag and drop from rad grid to treeview.

Can anyone point to any such demo where we can drag and drop items from rad grid to rad treeview?

Can i write custom code on item drop in treeview so as to add that item in backend list to which this treeview is binding?


Regards,
Amit
Pavlina
Telerik team
 answered on 29 Sep 2009
2 answers
269 views

Hello i created a simple RadGrid, see below, with 1 column for each type of column that a RadGrid can hold and i would like to figure out how to simply traverse thru every column and put an arbitrary value in that column or boolean ect. And in particular, i'm trying to figure out how to address the GridTemplateColumns but can't seem to identify or address them at all.

In this link: http://www.telerik.com/help/aspnet/grid/grdcolumntypes.html  , the "GridTemplateColumn" example contains a G
idTemplateColumn that contains colums for "CustomerID", "CompanyName", "ContactName", "ContactTitle" ect and i'm really trying to duplicate this same example scenario and then traverse thru all columns in this GridTemplateColumn and put an arbitary value in each of these columns, just so i can figure out how address all column types.

And in my example below i would be trying to populate the GridTemplateColumns, TextBox1-4 and put any text value in them.

Thanks for any  code examples you may be able to provide!
rc
 

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication3._Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

    <title></title>

</head>

<body>

    <form id="form1" runat="server">

        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"

            GridLines="None" ondatabinding="RadGrid1_DataBinding"

            ondatabound="RadGrid1_DataBound"

        ondeletecommand="RadGrid1_DeleteCommand"

        onneeddatasource="RadGrid1_NeedDataSource" style="margin-top: 0px">

<MasterTableView>

<RowIndicatorColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

<ExpandCollapseColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

    <Columns>

        <telerik:GridBoundColumn UniqueName="column1" HeaderText="myCol1">

        </telerik:GridBoundColumn>

        <telerik:GridCheckBoxColumn HeaderText="CheckBox" UniqueName="column2">

        </telerik:GridCheckBoxColumn>

        <telerik:GridDropDownColumn HeaderText="DropDown" UniqueName="column3">

        </telerik:GridDropDownColumn>

        <telerik:GridTemplateColumn HeaderText="Template1" UniqueName="TemplateColumn">

            <EditItemTemplate>

                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>

            </EditItemTemplate>

            <FooterTemplate>

                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>

            </FooterTemplate>

            <HeaderTemplate>

                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>

            </HeaderTemplate>

            <ItemTemplate>

                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

            </ItemTemplate>

        </telerik:GridTemplateColumn>

        <telerik:GridEditCommandColumn HeaderText="EditCommand">

        </telerik:GridEditCommandColumn>

        <telerik:GridButtonColumn HeaderText="ButtonColumn" UniqueName="column">

        </telerik:GridButtonColumn>

    </Columns>

<EditFormSettings>

<EditColumn UniqueName="EditCommandColumn1"></EditColumn>

</EditFormSettings>

</MasterTableView>

        </telerik:RadGrid>

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

    <div>

    </div>

    </form>

</body>

</html>

 

protected void RadGrid1_DataBound(object sender, EventArgs e)

{

    foreach (GridDataItem item in RadGrid1.Items)

    {

        (item["TemplateColumn"].Controls["Textbox1"] as TextBox).Text = "bbbbb";

   }

}

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication3._Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

    <title></title>

</head>

<body>

    <form id="form1" runat="server">

        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"

            GridLines="None" ondatabinding="RadGrid1_DataBinding"

            ondatabound="RadGrid1_DataBound"

        ondeletecommand="RadGrid1_DeleteCommand"

        onneeddatasource="RadGrid1_NeedDataSource" style="margin-top: 0px">

<MasterTableView>

<RowIndicatorColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

 

<ExpandCollapseColumn>

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

    <Columns>

        <telerik:GridBoundColumn UniqueName="column1" HeaderText="myCol1">

        </telerik:GridBoundColumn>

        <telerik:GridCheckBoxColumn HeaderText="CheckBox" UniqueName="column2">

        </telerik:GridCheckBoxColumn>

        <telerik:GridDropDownColumn HeaderText="DropDown" UniqueName="column3">

        </telerik:GridDropDownColumn>

        <telerik:GridTemplateColumn HeaderText="Template1" UniqueName="TemplateColumn">

            <EditItemTemplate>

                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>

            </EditItemTemplate>

            <FooterTemplate>

                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>

            </FooterTemplate>

            <HeaderTemplate>

                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>

            </HeaderTemplate>

            <ItemTemplate>

                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

            </ItemTemplate>

        </telerik:GridTemplateColumn>

        <telerik:GridEditCommandColumn HeaderText="EditCommand">

        </telerik:GridEditCommandColumn>

        <telerik:GridButtonColumn HeaderText="ButtonColumn" UniqueName="column">

        </telerik:GridButtonColumn>

    </Columns>

 

<EditFormSettings>

<EditColumn UniqueName="EditCommandColumn1"></EditColumn>

</EditFormSettings>

</MasterTableView>

        </telerik:RadGrid>

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

    <div>

    </div>

    </form>

</body>

</html>

 

Bob
Top achievements
Rank 1
 answered on 29 Sep 2009
4 answers
149 views
Is there any workaround that will allow me to use the RadInputManager on an MVC application?

Specifically in a block of code like:

    <% using (Ajax.BeginForm("Search", "Events")) 
       { %> 
    <span id="EventSearchDiv"> 
        <%= Html.TextBox("EventSearch")%> 
        <input type="submit" value="Search" /> 
    </span> 
    <telerik:RadInputManager ID="RadInputManager1" runat="server"> 
        <telerik:TextBoxSetting BehaviorID="EventSearchBehavior" 
            EmptyMessage="Enter Event ID" 
            Validation-IsRequired="true" 
            ErrorMessage="Enter search text"> 
            <TargetControls> 
                <telerik:TargetInput ControlID="EventSearchDiv" /> 
            </TargetControls> 
        </telerik:TextBoxSetting> 
    </telerik:RadInputManager> 
    <% } %> 

I get 

Control ... RadInputManager1_EventSearchBehavior' of type 'InputSettingCustomValidator' must be placed inside a form tag with runat=server.



Georgi Krustev
Telerik team
 answered on 29 Sep 2009
2 answers
596 views
Hi

How can I disable the Edit and Delete Column if my RadGrid is in Edit or Insert Mode? I'm disabling the Refresh and AddNew Button OnItemDataBound but can't find the buttons for each row. 

At the moment I cancel the the event in the OnItemCommand handler but would like to give the user som visual hint (greyed out) that these buttons aren't working.

Thanks for advice!
Softec
Top achievements
Rank 1
 answered on 29 Sep 2009
1 answer
88 views
I'm trying to use the Rad Editor to build a document, but it seems to change my document when I switch between the design view and html view.

How can this be avoided?

I enter this
<!--
CUSTOM CODE HERE
--> 
fail 
<!--
CUSTOM CODE HERE
--> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html> 
    <head> 
    </head> 
    <body>       
       some text 
    </body> 
</html> 
<!--
CUSTOM CODE HERE
--> 


and its converted to this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html> 
    <head> 
<!--
CUSTOM CODE HERE
--> 
    </head> 
    <body> 
        fail 
<!--
CUSTOM CODE HERE
--> 
      some text 
<!--
CUSTOM CODE HERE
--> 
    </body> 
</html> 


Tervel
Telerik team
 answered on 29 Sep 2009
0 answers
55 views
Sorted it
Jonathan
Top achievements
Rank 1
 asked on 29 Sep 2009
3 answers
126 views

Hi!

I'm using the RadRotator for a thumb Image Gallery. That image gallery is within a ajaxified form which has a navigation area that enables the user to, without posting back the entire page, go to the next, previous, last or first form record (not image gallery record!). I've noticed that if I open form record 1, which the images from the image gallery take several seconds to load, and try to go to any other form record the ajax event is not fired while at least one or two images of the gallery are fully loaded. I.e., if an image takes 15 seconds to load, the user will wait at least 15s until he navigates to the next form record.

Of course this timings where an exaggerated example. My intention is to don't let the user hanged until some image is loaded to change is record, even if it's a 1s wait. Are you aware of this issue? How do I work around it?


Regards,

Rodrigo S.
Rodrigo Selada
Top achievements
Rank 1
 answered on 29 Sep 2009
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?