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

I am a new one on RadWindow.
Could we remove the OK button from RadAlert?

Thanks.

Andy.
Andy
Top achievements
Rank 1
 answered on 11 Aug 2011
3 answers
80 views
Hi,

we are using rad grid in one of our project. I have a small issue. In the rad grid  I have three columns with check boxes. I use jquery to select and deselect all check boxes in Rad Grid. This works fine. My problem is with paging. I am using default paging behaviour of RadGrid. The problem is that on the new page the checkbox in the page which fires click event to select and deselect checkboxes in Grid is still checked. As the paging is done with client side code in RadGrid , I need a way to set default value to check box on the page again. For example, on the first page user clicks on select all check box and all checkboxes in grid are selected. Now the user goes to next page the checkboxes in Grid are not selected which is desired behaviour but the check box on the page is still selected. And now if user wishes to select all check boxes in Grid he must click on the checkbox on the page twice to get the desired behaviour. Is there a client side event for paging so that I can add some jquery code there to set the checkbox value on the page back to default value.



Regards,

Bhupinder
Bhupinder Singh
Top achievements
Rank 1
 answered on 11 Aug 2011
6 answers
638 views
Hello,

I use RadComboBox like search enter box and would like to execute server side event when user click "enter" key inside RadComboBox. Could anyone post code how to do that?

Thank you very much.
Regards,
Tomas
Gabriel
Top achievements
Rank 2
 answered on 11 Aug 2011
2 answers
79 views
Any way to get this feature back?  Or an alternative way to hide the "end" graphics of the RadMenu?
Sam
Top achievements
Rank 1
 answered on 11 Aug 2011
1 answer
49 views
Hi,

I have a GridMaskedColumn in my RadGrid and in the edit mode, the Masked Textbox is supposed to take US phone number as input. I have added the following mask (###)###-#### to the GridMaskedColumn. But the problem is that its accepting space also. I want to display client side error/warning when the user does not enter all the 10 digits of the phone number and press on 'Update Button' so that the DB values are consistent. Is there any mask or any other way I can implement this client validation ?

Thanks,
Nishanth
Tsvetina
Telerik team
 answered on 11 Aug 2011
1 answer
58 views
I'm trying to update the value of the control that is outside the dynamically created RadGrid. I'm using the reference - http://www.telerik.com/help/aspnet/grid/grduseajaxtoupdateoutsidecontrols.html.
I need to update the text of the Label control(lies out of the grid) when the textbox's (in the grid) text is changed.

The JS within the literal control is created but is never called. I'm using the RadAjaxManager to update the grid and the Label. 

Can someone please see what the problem is and offer a solution
 protected override void OnLoad(EventArgs e)<br>    {<br>        RadGrid grid = (RadGrid)pc1.FindControl("dgSample");<br>        RadAjaxManager1.AjaxSettings.AddAjaxSetting(grid, grid);<br>        RadAjaxManager1.AjaxSettings.AddAjaxSetting(grid, Label2);<br>        base.OnLoad(e);<br>    }

 protected void cTextbox_TextChanged(object sender, EventArgs e)<br>    {<br>        LiteralControl ctrl1 = new LiteralControl<br>                       (String.Format("<script type='text/javascript'>document.getElementById('{0}').innerHTML = '{1}';</script>", this.FindControl("Label2").ClientID, "Teexx"));<br><br><br>        //You should add the LiteralControl to the Controls collection of RadGrid in order to make it work with Telerik RadGrid AJAX<br>        this.Controls.Add(ctrl1);<br>        return;<br>    }
Mira
Telerik team
 answered on 11 Aug 2011
1 answer
57 views

Scenario:

I am developing an application using Telerik RadControls for ASPX.NET AJAX. I have tree

different Rad controls in the main page. A RadTreeview, a RadTabStrip and a RadGrid.

The basic functionality is: I select a node from the Treeview, that builds dynamic questions sourced from a database) in the RadTabStrip. And the answer to those questions is given by

selection an option in the single column RadGrid.

My questions are:

1. How can I set a default selection in the RadGrid?

2. When a node is selected the RadTabStrip is rebuilt but the page always blinks. How can I

avoid that blinking from the whole page running some server side code like the example here: http://demos.telerik.com/aspnet-classic/treeview/Examples/Programming/ServerSideApi/DefaultCS.aspx?

3. After a node selection and rebuilding the tabstrip pages, the RadTreeView loses the selected node focus. How can I keep the focus on the previously selected node? (it has something to do with that blink, can it be from the PostBack of the page?)

4. How can I load the grid having for each row a value and a text (value is an id related to the text element)?

Thank you all.

Regards

Bruno

Plamen
Telerik team
 answered on 11 Aug 2011
2 answers
65 views
I am using the Telerik AJAX loading panel in my project. It is casuing an issue in animation in IE 8 (non-compatibility mode) only on Win 2008 server. I even tried the telerik Demo site as below and still the same issue. You can reproduce the issue of not showing the animation (the images are shown with out animation) by accessing the below url.

http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx

Please let me know if there is any plug-in or something that is missing to show this animation on Win 2008 server in IE 8.

I appreciate your help. Thanks!
Maria Ilieva
Telerik team
 answered on 11 Aug 2011
2 answers
66 views
Hi,

I have created a standard (small) web application using Telerik ASP.NET AJAX RadControls.
Now I want to make it run inside SharePoint 2010 as a "WebPart".

What is the easiest way to do it?

Thanks.

Lamk.


* I have researched and it is said that the simplest way is to convert Web app (.aspx) to user control (.ascx) and then import that .ascx file into "Visual Web Part" Project. Finally, Add that Visual Web Part project on SharePoint.
If you guys know any better solution. Please let me know. Thanks
LamKhoa
Top achievements
Rank 1
 answered on 11 Aug 2011
5 answers
99 views
I'm trying to modify the DragDrop example to my purposes.  Instead of updating an existing record I'd like to insert a new one.  But it's not working this is what I have.
private void ScheduleAppointment(string itemname, string vendor, string sortcode, decimal cost, DateTime start, DateTime end)
    {
        IDataSource dataSource = SchedulerDataSource;
        DataSourceView view = dataSource.GetView("DefaultView");
 
        IOrderedDictionary data = new OrderedDictionary();
        data.Add("ItemName", itemname);
        data.Add("Start", start);
        data.Add("End", end);
        data.Add("Vendor", vendor);
        data.Add("SortCode", sortcode);
        data.Add("Cost", cost);
 
        //IDictionary keys = new OrderedDictionary();
        //keys.Add("AppointmentID", id);
 
        view.Insert(data, OnDataSourceOperationComplete);
    }

<asp:SqlDataSource ID="SchedulerDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:Sitefinity %>"
    SelectCommand="SELECT [inventory_id], [item_date], [deadline_date], [item_name], [sort_code], [vendor] FROM [inventory] WHERE ([item_date] IS NOT NULL) AND ([deadline_date] IS NOT NULL)"
    InsertCommand="INSERT INTO [inventory] ([item_name], [item_date], [deadline_date], [vendor], [sort_code], [cost], [query_code], [committee_code]) VALUES (@ItemName, @Start, @End, @Vendor, @SortCode, @Cost, @Module, @Committee)"
    UpdateCommand="UPDATE [inventory] SET [item_date] = @Start, [deadline_date] = @End, [item_name] = @Subject WHERE inventory_id = @AppointmentID"
    DeleteCommand="DELETE FROM [inventory] WHERE [inventory_id] = @AppointmentID">
    <InsertParameters>
        <asp:Parameter Name="ItemName" Type="String" />
        <asp:Parameter Name="Start" Type="DateTime" />
        <asp:Parameter Name="End" Type="DateTime" />
        <asp:Parameter Name="Vendor" Type="String" />
        <asp:Parameter Name="SortCode" Type="String" />
        <asp:Parameter Name="Cost" Type="Decimal" />
        <asp:Parameter Name="Module" Type="String" DefaultValue="LUNCH" />
        <asp:Parameter Name="Committee" Type="String" DefaultValue="FOOD" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="ItemName" Type="String" />
        <asp:Parameter Name="Start" Type="DateTime" />
        <asp:Parameter Name="End" Type="DateTime" />
        <asp:Parameter Name="AppointmentID" Type="Int32" />
    </UpdateParameters>
    <DeleteParameters>
        <asp:Parameter Name="AppointmentID" Type="Int32" />
    </DeleteParameters>
</asp:SqlDataSource>
Thanks in advance!
Veronica
Telerik team
 answered on 11 Aug 2011
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?