Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
117 views
Hi:

I have a RadGrid and RadTree that are tied to a SqlServer database.  When I click on a node which is represended by a Category ID, it brings up a list in the Grid of all Products that have that CategoryID.  I would like to be able to drag a row from the grid to another  node on the tree and update the database so that that product now shows up under the new category.

I am able to extract the ProductID in the NodeDrop event.  What I am having difficulty doing is extracting the CategoryID from the node that I am hovering over.  Partly this has to do with my limited ability to speak javascript.  Any help in doing this would be greatly appreciated.

Roger
Simon
Telerik team
 answered on 02 Dec 2008
2 answers
191 views
My RADGrid is slow while collapsing and expanding in groups.  I noted that it is posting back.  Can post-back be turned off on collapse.  ... what other suggestions?
Phil H.
Top achievements
Rank 2
 answered on 02 Dec 2008
2 answers
177 views
I'm trying to update the data from the grid using update_command, but after I click in the update button the edit form don't close, but the data is updated.

If I try to change the text or the visibility of a label inside the update_command to notify the update, nothing happens with the label.

I have in my code the item_updated sub, but it is never fired.

What I must do to close the edit form after the update is done?

Protected Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand
        Dim sql As String
        Dim conn As New ADODB.Connection
        Dim rs As New ADODB.Recordset


        conn.ConnectionString = ConfigurationManager.AppSettings.Get("strConexaoOracleAdodb")
        conn.Open()

        sql = "select * from pontos_digitais where cd_ponto_digital = '" & tbCdPontoDigital.Text & "'"
        rs.Open(sql, conn)

        Try
            If Not rs.EOF Then
                sql = "call SSG_PACKAGE.PONTOS_DIGITAIS_EDITAR(" & _
                    rs("id_ponto_digital").Value.ToString & ",'" & rs("cd_ponto_digital").Value.ToString & "','" & tbNmPontoDigital.Text & "','" & _
                    tbTxtPontoDigital.Text & "','" & rdcbAreas.SelectedValue & "','" & rdcbUsinaEdit.SelectedValue & "','" & _
                    rs("id_tipo").Value.ToString & "','" & rs("id_dados_tm1").Value.ToString & "','" & rs("id_dados_ons1").Value.ToString & "','" & _
                    rs("id_dados_iec1").Value.ToString & "','" & rdcbFonte1A.SelectedValue & "', null, null, null, null, 0, 1,'" & _
                    tbTxtAlarme.Text & "',0,'" & tbTxtRetorno.Text & "',1024,0,0,0,0,0,1)"

                conn.Execute(sql)

            End If
            rs.Close()
            conn.Close()
        Catch ex As Exception
            e.Canceled = True
        End Try

        Label1.Text = "Update Realizado"

    End Sub
Simón
Top achievements
Rank 1
 answered on 02 Dec 2008
3 answers
185 views
Hello,

The scheduler control isn't tall enough to show the entire day's schedule.  I was wondering if the general practice is to set a manual height, or if there's another setting I can use to set a relative height to show the work day's schedule in the same view without scrolling...  Figured it was setting the height of the control, but wasn't sure if there was another way.

Thanks.
Peter
Telerik team
 answered on 02 Dec 2008
1 answer
99 views
I need to access column uniquename in sortcommand event. Rightnow i am getting DataField name (through e.SortExpression) . But for some senario i want to get column unique name as well. Is the any way to do that.
Daniel
Telerik team
 answered on 02 Dec 2008
7 answers
759 views
I have a Grid with Link Columns.

When I export to Excel, all the data appears in the excel file except the data in the columns that are Links.

I have these Settings :

 Me.ExportSettings.ExportOnlyData = True
 Me.ExportSettings.IgnorePaging = True
  Me.ExportSettings.OpenInNewWindow = False

Is this related to ExportOnlyData being True ?

If so, How can I export the data without showing the Filters in the Excel file even if ExportOnlyData = False ?
Joseph
Top achievements
Rank 1
 answered on 02 Dec 2008
1 answer
140 views
I have a requirement to maintain  the state of context menu across the application.

Eg: If I selected a particular item in the context menu and that item should be highlighted with a different color. Next time again if I open the context menu, the selected menu item should be highlighted with that specified color.

Is there any method to achieve this requirement?

Thanks in advance.
Daniel
Telerik team
 answered on 02 Dec 2008
1 answer
111 views
Hello,

I have two pages.  On the first page I have a radgrid that is populated with data.  In one column of this grid, I have three hyperlink controls that allow me to navigate to different pages based on which Hyperlink control I click.  One of the Hyperlink controls is "Copy."  When I click "Copy" I need to go to a completely different page that has a radgrid with a copy of this item.  I can get to the next page without any problems, but right now my second page is just exposing an empty "Insert" form.  What I need is for some of the fields on this insert form to be populated with data from the previous page's item.  Any ideas?  I haven't been able to figure anything out on this as of yet.
Princy
Top achievements
Rank 2
 answered on 02 Dec 2008
4 answers
136 views
Hi,

I have customized advanced edit template for my application. On Update click I'm not able to get the data from the drop down selected and the textbox:

 Below are FormCreated and AppointmentUpdated methods.


protected void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e)
    {
        if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
        {
            //List of Labs based on the User
            DropDownList UserPI = (DropDownList)e.Container.FindControl("PIList");
            UserPI.DataSource = userData.GetLabByID(Request.Cookies["userInfo"]["UserID"].ToString());
            UserPI.DataTextField = "LabName";
            UserPI.DataValueField = "LabID";
            UserPI.DataBind();

            TextBox NoOfPlatesTextbox = (TextBox)e.Container.FindControl("NoOfPlates");
           
        }
    }

On Update I want to get the DropDown selected value and textBox text

protected void RadScheduler1_AppointmentUpdated(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e)
    {
           //This does not work
            pcrData.selectedPI = UserPI.SelectedItem.Value.ToString();
            pcrData.numberOfPlates = NoOfPlatesTextbox.Text;
       
    }

Is there any work around??


Thanks,
Vamshi.
Peter
Telerik team
 answered on 02 Dec 2008
1 answer
102 views
I notice when I style my page where I have a DIV to the left of the grid that the RadGrid will have it's white background take up the entire horizontal space, eating up space to the left (see attached file).

Below is my ASPX code:

    <div style="float: left; margin-top: 0px; padding-top: 0px; width: auto">
        <ul style="list-style: none">
            <li>
                <asp:Label ID="lblFromDate" runat="server" Text="From:" AssociatedControlID="rdpFromDate" />
                <telerik:raddatepicker id="rdpFromDate" runat="server"/>
            </li>
            <li style="margin-top: 20px; padding-top: 20px">
               <asp:Label ID="lblToDate" runat="server" Text="To:&nbsp;&nbsp;&nbsp;&nbsp;" AssociatedControlID="rdpToDate"/>
                <telerik:raddatepicker id="rdpToDate" runat="server"/>
            </li>
            <li>
                <telerik:radtreeview id="rtvCustomer" runat="server" height="400px" width="200px" style="float: left; margin-top: 10px" />
            </li>
            <li>
                <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" style="margin-top: 10px" />
            </li>
        </ul>
    </div>
    <telerik:radgrid id="rgTransactions" runat="server" gridlines="None" editmode="InPlace"
        showstatusbar="True" allowpaging="True" onneeddatasource="rgTransactions_NeedDataSource"
        onupdatecommand="rgTransactions_UpdateCommand" autogeneratecolumns="False">

Dimo
Telerik team
 answered on 02 Dec 2008
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?