Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
88 views
Hi,
I have a web form with RadEditor and input text,I want to put the cursor in the text input, so i use this code from http://www.telerik.com/help/aspnet-ajax/editor_setfocus.html
<body onload="SetFocusOnTextBox();">
   <form id="form1" runat="server">
   <asp:ScriptManager id="ScriptManager" runat="server"/>                             
   <telerik:radeditor runat="server" ID="RadEditor1">
       <Content>
           Here is sample content!
       </Content>
   </telerik:radeditor>
   <input type="text" id="text"/>
   <input type="button" value="Set Focus On RadEditor" onclick="SetFocusOnRadEditor()" />
   <script type="text/javascript">
   function SetFocusOnRadEditor()
   {
       var editor = $find("<%=RadEditor1.ClientID%>"); //get a reference to RadEditor client object
       editor.setFocus(); //set the focus on the the editor
   }
   function SetFocusOnTextBox()
   {
       var editor = $get("text"); //get a reference to the input textbox with id text
       editor.focus(); //set the focus on the the textbox
   }
   </script>
   </form>
</body>

It's OK with Forefox or chrome , but not work with IE 8

dali
Top achievements
Rank 1
 answered on 29 Dec 2010
1 answer
73 views
Hi,

I want to filter templategridcolumn same way as google filtering .iI found example of google filtering for griddatabound column and it work perfectly fine.In same way ,I want to filter template column.

Thanks
Swarnlata
Princy
Top achievements
Rank 2
 answered on 29 Dec 2010
1 answer
113 views
Hello,
          I would like to know whether I can accomplish what we have in gmail using RadTreeView control. When the user clicks on inbox on the left, it connects inbox with the email section on the right. Is it possible when a user selects a node in RadTreeView control I want to connect the node with a box on the right.

Thanks,
Bharani
Shinu
Top achievements
Rank 2
 answered on 29 Dec 2010
1 answer
48 views
Hello in my grid .. top of the grid Add new button when i click the button that time want to show all filed that i want to add. Snapshot i attach to this post .. but when i click on grid Edit button want to show only two field for edit

how to achieve this .. how to allow field to edit .. how to disabled other field

In attach file .. shown
Game Name and Game Price . i want to update when  i click on edit button
other wise .
display all fields on Add new record



thanks


Radoslav
Telerik team
 answered on 29 Dec 2010
1 answer
62 views
Hi there Telerik Friends,

I've tried searching for hours and cannot find an answer to this problem. Either I'm going about it the wrong way, or I'm missing something. Hopefully one of you will take the time to help me out!

My question is this:

I have a RadGrid with NestedViewTemplate. I followed the example here. My little test works pretty slick.

Here is a picture of my work-in-progress.

As you'll see -- when you expand a user... you get different Tabs. On the "Tools" tab I have one button to "Delete User". Instead of using a button, doing a postback, and firing off some server-side code, I decided it would be nice to have a "Do you really want to delete this user?" prompt.

I tried following this example to do a "Confirm Postback". Doesn't work though :(

Well, after playing with it for a while...  it works if it's OUTSIDE the NestedViewTemplate... but not when it's buried inside. Anyone else have this issue? Any tips on how to resolve this?

Thanks so much for your time.

-Josh
Radoslav
Telerik team
 answered on 29 Dec 2010
2 answers
73 views
Now, I can't format "LastModifiedAt" column of RadFilter like as "dd/MM/yyyy hh:mm tt". I don't want to set Culture="tr-TR" Page.
Does other way  implement this format?
How to set this field focus?
How to asign ShorCutKey for "OnApplyExpressions" event?

My coding is below:
    <telerik:RadFilter ID="RadFilter1" runat="server"  OnApplyExpressions="radFilterGridControl_SearchGridData">
        <FieldEditors>
            <telerik:RadFilterDateFieldEditor FieldName="LastModifiedAt" DisplayName="LastModifiedAt" DataType="System.DateTime" />
        </FieldEditors>
    </telerik:RadFilter>
               
    <telerik:RadGrid ID="radGridControl" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
         AllowSorting="True"
        GridLines="None">
        <MasterTableView AutoGenerateColumns="False"  >
            <Columns>

                <telerik:GridBoundColumn DataType="System.DateTime" DataField="LastModifiedAt" HeaderText="LastModifiedAt" >
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

Can you help me this problem?

Thanks,
Mr PhuongLD
Le Danh
Top achievements
Rank 1
 answered on 29 Dec 2010
1 answer
50 views
Folks,

Is it posssible to add additional controls and remove current controls of the Edit Appointment Box?

Cheers
Shinu
Top achievements
Rank 2
 answered on 29 Dec 2010
1 answer
65 views
hi,

I have a rad grid with  edit for mas like below.
<EditFormSettings EditFormType="Template">
                  
                    <FormTemplate>

  <tr>
        <td style="width: 140px;">
            
        </td>
        <td>
            <asp:RadioButtonList ID="rbtntagtype" runat="server" AutoPostBack="true"  onselectedindexchanged="rbtntagtype_SelectedIndexChanged" >
            <asp:ListItem Text="Service" Value="Service" Selected="True"></asp:ListItem>
            <asp:ListItem Text="Doctor" Value="Doctor"></asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td style="width: 140px;">
             <asp:Label ID="Label2" runat="server" Text="Service Tags"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlservicetag" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
</FormTemplate>
                </EditFormSettings>

I have a Radio button list.

Based on the radio button list selection have to load the values to drop down.

In code behind i written like below.

protected void rbtntagtype_SelectedIndexChanged(object sender, EventArgs e)
    {
        RadioButtonList rbtntag = (RadioButtonList)sender;

        GridEditableItem edititem = (sender as DropDownList).NamingContainer as GridEditableItem;
        DropDownList ddList = edititem.FindControl("ddlservicetag") as DropDownList;

        DataSet dl_loadservice = new DataSet();

        if (rbtntag.SelectedItem.Value == "Doctor")
        {
            dl_loadservice = objClass_RegisterDept.fn_getservicetags(true);
        }
        else
        {
            dl_loadservice = objClass_RegisterDept.fn_getservicetags(false);
        }
        ddList.DataSource = dl_loadservice;
        ddList.DataTextField = "tagname";
        ddList.DataValueField = "tagid";
        ddList.DataBind();
        ddList.Items.Insert(0, "Select");
    }

in selected index chnage itis saying
GridEditableItem edititem = (sender as DropDownList).NamingContainer as GridEditableItem;
is null..

can anyone suggest me how do i proceed with this..

Thenmozhi
Top achievements
Rank 1
 answered on 29 Dec 2010
4 answers
116 views
Hello,

I have implemented tree-view with context-menu.

Code look like as below
======================================================================
<Telerik:RadScriptManager runat="server" ID="RadScriptManager1" >
</Telerik:RadScriptManager>

<Telerik:RadTreeView runat="server" ID="TVtreeview" BorderWidth="1px" Height="300px"
    padding="2px" Width="800px" BackColor="#CCCCCC" ShowLineImages="false" BorderStyle="Solid"
    LoadingStatusPosition="BeforeNodeText">
    <ContextMenus>
        <Telerik:RadTreeViewContextMenu ID="ContextMenuVerbatium" runat="server">
            <Items>
                <Telerik:RadMenuItem Value="0" Text="Alphabetically Asending" PostBack="True" Enabled="false" />
                <Telerik:RadMenuItem Value="1" Text="Alphabetically Desending" PostBack="True" />
                <Telerik:RadMenuItem Value="2" Text="Ascending By Character Length" PostBack="True" />
                <Telerik:RadMenuItem Text="Desending By Character Length" Value="3" PostBack="True" />
            </Items>
        </Telerik:RadTreeViewContextMenu>
    </ContextMenus>
    <Nodes>
        <Telerik:RadTreeNode Text="Root">
        </Telerik:RadTreeNode>
    </Nodes>
</Telerik:RadTreeView>

======================================================================
I am binding record in above tree-view, it is working perfect last 15 days. Now it is working with some data and in some data it is not working properly it gives error like as below.

Error: this._element is undefined
Source File: http://localhost/mysite/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a3de828f0-5e0d-4c7d-a36b-56a9773c0def%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.713.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7302be66-e7a1-4bc1-8280-71f03d66eba0%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3ae524c98b
Line: 447
9

Can you please me help me out.

Thanks in advance.
Dimitar Terziev
Telerik team
 answered on 29 Dec 2010
1 answer
53 views
hi
when i export to excel IgnorePaging didn't fire
and show just 50 records from 200 records
thanks
my code:
  grdShareHolder.ExportSettings.IgnorePaging = true;
 grdShareHolder.ExportSettings.ExportOnlyData = true;
  grdShareHolder.ExportSettings.OpenInNewWindow = true;
 grdShareHolder.MasterTableView.ExportToExcel();
Daniel
Telerik team
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?