Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi,

Here I need to select parent and based on parent selection all childs should be selected. I got the code of HeaderItem checkbox but Its not solving my problem as I am unable to find TreeListSelectColumn at page_prerender to register JS onclick of its checked event.

Is there any solution by which I can select any of the parent in radtreelist and related childs will be select?

Thanks & Regards,

Kaushal Jani
Kaushal
Top achievements
Rank 1
 answered on 13 Jul 2011
1 answer
106 views
Hi,

I have one grid and i have set CommandItemSettings-AddNewRecordText on this grid. When clicks on this Add New i am getting one insert row in Grid to enter new data then to Insert data in DB i am doing my functionality on RadGrid_ItemCommand by checking e.CommandName == RadGrid.PerformInsertCommandName. Upto here everything working fine. Data is inserting in DB and all. but just after that a new row shows in grid to insert new data and i don't want.

How to do that i will not get this new insert row in grid just after inserting data ? I want user will click again the Add new on Grid header to get this new insert row in grid to insert new data. 

Thanks,
--Jai
Jai
Top achievements
Rank 1
 answered on 13 Jul 2011
1 answer
74 views
I am looking to show a different context menu, based on the value of a cell when right clicking on a row. For example. I have a grid, that displays a list of emails. One of the cells in the grid is an Boolean, called isread. If the value is true, when I right click on the email. I want an option to "Mark as Unread" If the value is false, I want to display "Mark as Read" 

Any assistance in how to do this, and if it is possible would be greatly appreciated. 
Shinu
Top achievements
Rank 2
 answered on 13 Jul 2011
2 answers
172 views
Hi!
We have an ASP.NET page with a lot of Rad controls including (Textboxes, Lists, comboboxes) and a RadGrid. I'm trying to improve the performance of the page and currently about 35% of the page size is occupied by the script blocks of Rad controls. Example of the javascript statements are mentioned below and these get repeated for each control. I'm guessing that this gets generated on-the-fly when the control is spitted out to HTML.

Is there a way one could compress/minimize the javascript code on the page? Any help/suggestions would be appreciated.


------------Example Javascript function calls on the page ----------
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTextBox, {"_focused":false,"_postBackEventReferenceScript":"setTimeout(\"__doPostBack(\\\u0027ctl00$PageContent$woMaint$tbxRateSchedule\\\u0027,\\\u0027\\\u0027)\", 0)","_skin":"WebBlue","clientStateFieldID":"ctl00_PageContent_woMaint_tbxRateSchedule_ClientState","enabled":true,"styles":{HoveredStyle: ["width:50%;", "riTextBox riHover"],InvalidStyle: ["width:50%;", "riTextBox riError"],DisabledStyle: ["width:50%;", "riTextBox riDisabled"],FocusedStyle: ["width:50%;", "riTextBox riFocused"],EmptyMessageStyle: ["width:50%;", "riTextBox riEmpty"],ReadOnlyStyle: ["width:50%;", "riTextBox riRead readonly"],EnabledStyle: ["width:50%;", "riTextBox riEnabled"]}}, null, null, $get("ctl00_PageContent_woMaint_tbxRateSchedule"));
});
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTextBox, {"_focused":false,"_postBackEventReferenceScript":"setTimeout(\"__doPostBack(\\\u0027ctl00$PageContent$woMaint$tbxLoanType\\\u0027,\\\u0027\\\u0027)\", 0)","_skin":"WebBlue","clientStateFieldID":"ctl00_PageContent_woMaint_tbxLoanType_ClientState","enabled":true,"styles":{HoveredStyle: ["width:80px;", "riTextBox riHover"],InvalidStyle: ["width:80px;", "riTextBox riError"],DisabledStyle: ["width:80px;", "riTextBox riDisabled"],FocusedStyle: ["width:80px;", "riTextBox riFocused"],EmptyMessageStyle: ["width:80px;", "riTextBox riEmpty"],ReadOnlyStyle: ["width:80px;", "riTextBox riRead readonly"],EnabledStyle: ["width:80px;", "riTextBox riEnabled"]}}, null, null, $get("ctl00_PageContent_woMaint_tbxLoanType"));
});
Johny
Top achievements
Rank 1
 answered on 13 Jul 2011
6 answers
2.8K+ views
Hi,
In my current project, I am using Visual Studio 2008, .NET Framework 3.5 and Telerik 2011 Q1.
On one of the web pages which use a common master page, I need to retrieve the value of a Session whose is set by the code behind.

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <script type="text/javascript">
        function showConfirm() {
            var exist = '<%= Session("SubscriptionsExist")%>';
            ...
        }
    </script>
    ...
</asp:Content>

I got the following error message
Compiler Error Message: CS0103: The name 'Session' does not exist in the current context

If I used the following instead
var exist = '<%= Session("SubscriptionsExist")%>';
I got the following error message
Compiler Error Message: CS1955: Non-invocable member 'System.Web.HttpContext.Session' cannot be used like a method.

Can you please help me?

Regards,
Herman
Bojjaiah
Top achievements
Rank 1
 answered on 13 Jul 2011
1 answer
180 views
Hello,

Maybe I don't understand correctly but I thought that I could override the default css styling....?? For example
telerik:RadTreeView ID="MyAppsTreeView" runat="server" CheckBoxes="True" TriStateCheckBoxes="true" CheckChildNodes="true" Skin="Windows7">
    <Nodes>
        <telerik:RadTreeNode Text="Centura Health Resource" Expanded="true" CssClass="CategoryNode">
            <Nodes>........

and I have a css file:
.CategoryNode
{
    width: 186px !important;
    height: 35px !important;
    background: transparent url('../images/PhysSteth.png') no-repeat !important;
}

The image displays as it should but the width and height do not???

Any help would be greatly appreciated.



Shinu
Top achievements
Rank 2
 answered on 13 Jul 2011
2 answers
58 views
I have a RadGrid where each row has an Edit button that opens an edit form that is in a Web UserControl.

These work fine. Say I edit row 1, but then click on the Edit button on Row 2, Row 1 closes as expectd.

However, If I click on say row 1 but then click the Add New Record link, Row 1 stays open along with a new blank form for the row I am adding.

When Adding a new record, how do I close all other edit forms?
Brad
Top achievements
Rank 1
 answered on 13 Jul 2011
3 answers
134 views
Hello,i have a string date time such as '8/15/2011 12:00:00 AM' ,so how to add to picker ?

Thanks,
Trung Hiếu
Princy
Top achievements
Rank 2
 answered on 13 Jul 2011
1 answer
85 views
Hello, everyone

 I refer the demo code and use the following code to build arraylist.

=================================
public class MyObjECG
    {
        public string _date = "";
        public string _time = "";

        public MyObjECG()
        {
        }

        public MyObjECG(string strDate, string strTime)
        {
            _date = strDate;
            _time = strTime;
        }
        public string Date
        {
            get
            {
                return _date;
            }
        }
        public string Time
        {
            get
            {
                return _time;
            }
        }
    }
================================= 
I want to show these data in two rows. It likes outlook style 'form/subject'. So I add '<telerik:GridTemplateColumn>' in my gridview. 
When I set  '<telerik:GridTemplateColumn>' in my grid, the grid view will show twice data like the following.

Date/Time            Date                Time
===============================
2011/07/18       2011/07/18          18:00
18:00

I just want to show.

Date/Time        
===========
2011/07/18       
18:00

Anybody help me ??

Thanks, Tseng

Shinu
Top achievements
Rank 2
 answered on 13 Jul 2011
6 answers
343 views
I have a web form with 2 radbutton. Approve and Reject. When Reject button is clicked. I would like to pop up radprompt to capture reject reason and update the reason via stored proc from code behind.
How can I capture the reason and using it from code behind?
cheekl
Top achievements
Rank 2
 answered on 13 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?