Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
How to get grid data values from detail table when expand=false.
mease i have not expanded the detail table view and i want to extract those values from the grid.

i m not geting the values in this scenerio.
please help me to find the values from the detail table view
Shinu
Top achievements
Rank 2
 answered on 23 Jul 2009
5 answers
667 views
I like to get the values with the right type (not strings) from GridDateTimeColumn and GridNumericColumn.
 GridColumnCollection columns = e.Item.OwnerTableView.Columns;     
        foreach (GridColumn column in columns) 
            { 
                if (column is GridDateTimeColumn) 
                { 
 
                    if (startdatetime.Equals(column.UniqueName)) 
                    { 
                        // How do i get the value as a DateTime?
 
                    } 
                    else 
                    { 
                        throw new Exception( 
                            String.Format("No implementation for column.UniqueName: {0} (UpdateResourceTimeOff) "
                                          column.UniqueName)); 
                    } 
                } 
                else if (column is GridNumericColumn) 
                { 
 
                    if ("someTextString".Equals(column.UniqueName)) 
                    { 
                        // How do i get the double value 
                    } 
                    else 
                    { 
                        throw new Exception( 
                            String.Format("No implementation for column.UniqueName: {0} (UpdateResourceTimeOff) "
                                          column.UniqueName)); 
                    } 
                } 


Daniel
Telerik team
 answered on 23 Jul 2009
1 answer
58 views
Hello,
        When i change telerik reference version 2008.2.826.35 to 2009.2.701.20 then control theme messed up. So give me solution to overcome this problem and give me steps to solve it.


Regards,

Bhavesh Rana


Paul
Telerik team
 answered on 23 Jul 2009
1 answer
983 views
When I do a radgrid (q2, 2009) databind on the client side, I want to set the column command argument (GridButtonColumn in this case). Alternatively, I'd like to set the command argument of the button inside this column.

I'd also like to set the command argument and name in the server side radgrid ItemDataBound event handler.

I have found no documentation or examples on how to do this. Any ideas?
Princy
Top achievements
Rank 2
 answered on 23 Jul 2009
6 answers
358 views
Hi,

I have a web-usercontrol which works fine - on a normal (ajax enabled) page.
But when I place the control in a Grid's Edit FormTemplate the emitted script no longer works.
The control is only used in edit mode - and I looked around a lot here - but I could not get it to work.
By the way - the script is in the source of the page - but it is somehow ignored.

My Control renders some script in it's OnPreRender handler.
The approach is to add an "OnLoad" handler for a contained control.
Again - it works well as long as it is not in a grid.

Here is my (I tried what ever I found and could imagine) PreRender function:
protected override void OnPreRender(EventArgs e) {  
    string strScript="alert('Hello');";  
    base.OnPreRender(e);  
    Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyBlock" + ClientID, strScript, true);  
    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "MyBlock1" + ClientID, strScript, true);  
    RadScriptManager.RegisterClientScriptBlock(this, this.GetType(), "MyBlock2" + ClientID, strScript, true);  
    aM.ResponseScripts.Add("<script type=\"text/javascript\">\r\n" + strScript + "\r\n</script>");  
    this.Controls.Add(new LiteralControl("<script type=\"text/javascript\">\r\n" + strScript + "\r\n</script>"));  
        //rtBox.ClientEvents.OnLoad = "OnLoad_" + ClientID;  
To keep the things simple - I used just an alert to this script - which should alter when the script is seen by the client.
But it does nothing!!
Although the alert is there in source code!!

Being a bit frustrated - I tried the "direct approach" and changed my control to this:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WSTextBox.ascx.cs" Inherits="VJF09.Classes.WSTextBox" %> 
<script type="text/javascript">  
    function OnThisloaded() {  
        alert("Tet");  
    }  
</script> 
<telerik:RadTextBox runat="server" ID="rtBox" ClientEvents-OnLoad="OnThisloaded">  
</telerik:RadTextBox> 
 
 
The result - after I switch to edit I get an error message: "Onthisloaded" not found.

Regards

Manfred


ManniAT
Top achievements
Rank 2
 answered on 23 Jul 2009
4 answers
579 views
Hello Sir

 I want to open Rad window on  image button event Click in vb.net. i have dont this code but Radwindow not open with that form why >?


 Dim winmgr As New RadWindowManager
    Dim winwdw As New RadWindow
    Protected Sub imgmail_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgmail.Click

        winwdw.Height = 500
        winwdw.Width = 500
        winwdw.Modal = True
        '  winwdw.Behavior = WindowBehaviors.Default
        winwdw.NavigateUrl = "ReportEmail.aspx"
        winwdw.Visible = True
        winwdw.Enabled = True
        winmgr.Windows.Clear()

        winmgr.Windows.Add(winwdw)

    End Sub



Help me it Urgnet

Thanks For valuable time


mahendra reddy
Top achievements
Rank 1
 answered on 23 Jul 2009
5 answers
95 views
Why is it that if I check a checkbox inside of a RadSlidingPane, and then dock or collapse the pane, the checkbox goes back to being unchecked?  Is there anyway around this?

Thanks,
Justin

Tsvetie
Telerik team
 answered on 23 Jul 2009
5 answers
337 views
Hi 
    I have used Q2 2008 Rad Ajax Telerik control, I have bind RadMenu using dataset. Dataset is filled using Storeprocedure.

<

telerik:RadMenu ID="rmMain" runat="server"  BackColor="Firebrick"  Height="100%"  EnableOverlay="true"  Flow="Vertical" Width="99%" OnClientItemClicking="onClicking" > </telerik:RadMenu>

 

DataSet

ds = new DataSet();

 

ds = objTakCorseCont.TS_PROC_COURSE_GET_menu(

Convert.ToInt32(Session["EmployeeId"].ToString()),

 

rmMain.DataTextField =

"Name";

 

rmMain.DataFieldID =

"Id";

 

 

rmMain.DataNavigateUrlField = "NavigateUrl";

 

 

 

rmMain.DataValueField =

"Id";

 

rmMain.DataSource = ds;

rmMain.DataBind();


Whenever user will click on any Item of RadMenu, Navigation path defind for that selected item goes to target page, but I am not able to show selected menu item at that time.

Thanks
 

Rahul Khinvasara
Top achievements
Rank 1
 answered on 23 Jul 2009
3 answers
144 views
I am trying to get radEditor for ajax, latest release, to work in DotNetNuke 4.8.4. The editor installs, activates, and comes up ok but the toolbars are blank. You can hover over the toolbar and the tooltip appears and you can click on the blank spot and that action performs. I tried the hyperlink and the dialog box appears but the background is transparent. I tried in IE 7, IE 8 beta and Firefox 3 with the same results. Tried clearing the caches with same result. Any ideas?
Lini
Telerik team
 answered on 23 Jul 2009
3 answers
123 views
Hi.

I am trying to have a set of controls at the foot of every detail grid. These controls are not paging controls or edit controls, but I am using a Pager Template to place them where I want them. The result is something like this:
Outer Row 
   Inner Row 
   Inner Row 
   Inner Row 
      [list box] [button] 
Outer Row 
   Inner Row 
   Inner Row 
      [list box] [button] 
 
My problem is that the contents of the list box should be different for each inner grid and I don't know how to get at the control or it's construction to do that.

Is there a way to do this? Or am I looking in entirely the wrong direction?

Thanks.
Iana Tsolova
Telerik team
 answered on 23 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?