Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
228 views
Hello,

i have a problem with calling ClientScript.RegisterStartupScript(this.Page.GetType(), "OpenReport", popupScript);
in a page that contain a radblock, could you help me please, does ClientScript.RegisterStartupScript has any problem with telerik components

thank!


Slav
Telerik team
 answered on 02 Dec 2011
5 answers
672 views

I'm trying to use a client-site row click to fire a custom item command and I'm not sure how to go about it. I have a GridButtonColumn that allows the user to run the command however we need to have the entire row clickable. I can have the row go into edit mode when clicked but that isn't what we are looking for. Here is the code I have so far:

<telerik:RadCodeBlock ID="rcbCode" runat="server">
    <script type="text/javascript">
        function RowClick(sender, eventArgs) {
            var editedRow = eventArgs.get_itemIndexHierarchical();
            $find("<%=rgStudents.MasterTableView.ClientID %>").editItem(editedRow);
        }
    </script>
</telerik:RadCodeBlock>
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0"
    GridLines="None" OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand"
    OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound"
    OnNeedDataSource="RadGrid1_NeedDataSource">
    <ClientSettings EnableRowHoverStyle="true">
        <ClientEvents OnRowClick="RowClick" />
    </ClientSettings>
    <MasterTableView CommandItemDisplay="Bottom" InsertItemDisplay="Bottom">
        <Columns>
            <telerik:GridBoundColumn DataField="ID" DataType="System.Guid" FilterControlAltText="Filter ID column"
                HeaderText="ID" UniqueName="ID" Display="False" ReadOnly="True" ForceExtractValue="Always"
                Visible="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="name" Display="False" FilterControlAltText="Filter name column"
                HeaderText="Name" UniqueName="name">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn CommandName="StartProcess"
                ButtonType="LinkButton" FilterControlAltText="Filter StartProcess column"
                Text="Start Process" UniqueName="StartProcess">
            </telerik:GridButtonColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

This opens the row in edit mode but what I'm really looking for is to call the "StartProcess" item command the same way the last GridButtonColumn does.

Marin
Telerik team
 answered on 02 Dec 2011
1 answer
98 views
Hi there,

We presently have a number of RadChart controls in a single page that we are looking to ToolTipify.
After some study, we learnt that this is possible if we were to add a RadToolTipMgr directly underneath the RadChart in question and set the manager's ToolTipZoneID value as the ClientID of the containing div.

However there are two things that we need clarification on, these are:

1) If we move the RadToolTipManager to the top of the page, it stops working as intended, is this true or are we doing something wrong?
2) Is there any way to have one RadToolTipManager that targets a number of ToolTipZoneIDs? we have approximately 8 RadChart's that we would like to ToolTipify, which based on our current knowledge for this control would require 8 RadToolTipManagers.

Hope you can help

Regards

A.
Tsvetie
Telerik team
 answered on 02 Dec 2011
1 answer
83 views
Hi

We have set our config file to strip out absolutepaths so that they are all changed to relative ones.  This is correct and how we want it, however occassionally we do need to insert an absolute path into the RadEditor and I would like to know if there is a way to do this that prevents the overall config from converting it to a relative path?

Thanks

Rumen
Telerik team
 answered on 02 Dec 2011
3 answers
386 views
Hello,

This is my requirement --

1. I do not want to have the Add New Record button in Grid.
[ I have handled this as below in ItemDataBound event --]

if

(e.Item is GridCommandItem)  

//Hide Addnew and refersh button from code behind  

 

GridCommandItem cmditem = e.Item as GridCommandItem;  

if (cmditem.FindControl("InitInsertButton") != null)

 {

cmditem.FindControl("InitInsertButton").Parent.Visible = false
}

}

2. I have a button "Add New Record" outside the grid, Onclick of this, I want to insert a row in Grid.
Additional Information --
1. I ahve the below piece of code in my aspx page -

<telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton" HeaderText="Edit"> 

<ItemStyle Width="10%" HorizontalAlign="Center" />
<HeaderStyle Width="10%" HorizontalAlign="Center" /> 

<FooterStyle Width="10%" HorizontalAlign="Center" />
</telerik:GridEditCommandColumn>

2. When I tried the below piece of code on buttn click,

GridName.MasterTableView.ShowFooter = true;
GridName.Rebind(); 
 

I am not getting the Edit image button.

Please suggest.

Marin
Telerik team
 answered on 02 Dec 2011
1 answer
78 views
Hello,

I need to use the raeditor control in order to post a messages within forum. As you know some of the forum messages could contain images, documents, media or other components.
I know how to use the ImageManger, DocumentManger ... dialogs in order to upload that components. But the problem is that these components must be uploaded to the server even before clicking the submit button in order to insert them the content area.

How can I post the forum messages with the diffrent components I mentioned above without uploading to the server until I click the submit button?

Regards,
Bader
Rumen
Telerik team
 answered on 02 Dec 2011
3 answers
223 views
hi all

  Anu one help how to Exportgrid to text file without using "response.write".
Because when export datatable to text file, the full page is also write into that text file.

thanks,
vinoth
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Dec 2011
4 answers
113 views
Hi

I have a RadComboBox (EnableLoadOnDemand is True) and 3 numeric boxes in Edit Template in a RadGrid.

What I am trying to do is when a user selects a option in the RadComboBox then it populates the Textboxes via its attributes.

I have the following javascript which I have used to do this previously but not in a Grid

                function rcb_Changed(sender, args) {
                    //copy port long/lat to input boxes
                    var item = args.get_item();
                    var Longitude = item.get_attributes().getAttribute("Longitude");
                    var Latitude = item.get_attributes().getAttribute("Latitude");

                     var rtxtLongDegree = $find("<%=rtxtLongDegree.ClientID %>");
                    rtxtLongDegree.set_value(Longitude_Deg);

                }
<telerik:RadComboBox ID="rcbPortList" runat="server" AllowCustomText="false" DropDownWidth="590px"
   EmptyMessage=" - Select a port - " EnableLoadOnDemand="True" Height="150px" HighlightTemplatedItems="true"
   MarkFirstMatch="True" Width="170px" OnClientSelectedIndexChanged="rcb_Changed"
   ShowMoreResultsBox="True" EnableVirtualScrolling="True">

I have tried chaging "<%=rtxtLongDegree.ClientID %>" to the name of the Textbox in the Grid Edit Template but I get an error saying it cannot find the control.

How do I do this is so when I change the ComboxBox in the Grid it populates the textboxes,,... Using Javascript.

Thanks in advance
Ajay
Top achievements
Rank 1
 answered on 02 Dec 2011
6 answers
87 views
Team,

I want to add "show more" and "show less" for RadTreeView control. Please let me know If there is any property for the same or kindly suggest a way to achieve as attached images.

Please find attached!

Thanks & Regards
Ubahariya
Ubahariya
Top achievements
Rank 1
 answered on 02 Dec 2011
3 answers
57 views
We have encountered a problem with recurring scheduling entries. I am not sure if this is caused by a default value or is a limitation that cannot be overcome.
When entering repeating scheduler entries without an end date, it appears that there is a hard stop after 3000 occurrences. After the 3000th entry the next run date is basically empty and no further entries are in the scheduler. Our clients have  events that are recurring on an hourly basis, which would limit the availability of the recurring entry to only 125 days.  Is there a default setting I am missing? 
Peter
Telerik team
 answered on 02 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?