Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
156 views
Hi,

I am using a rad editor with custom dialogs based on your demo: http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx

I am calling: showExternalDialog() and I give showStatusbar = false,
but I still get the status bar in my radwindow.

here is my code:

    Telerik.Web.UI.Editor.CommandList["LinkManager"] = function(commandName, editor, args) {
        var elem = editor.getSelectedElement(); //returns the selected element.

        if (elem.tagName == "A") {
            editor.selectElement(elem);
            argument = elem;
        }
        else {
            //remove links if present from the current selection - because of JS error thrown in IE
            editor.fire("Unlink");

            //remove Unlink command from the undo/redo list
            var commandsManager = editor.get_commandsManager();
            var commandIndex = commandsManager.getCommandsToUndo().length - 1;
            commandsManager.removeCommandAt(commandIndex);

            var content = editor.getSelectionHtml();

            var link = editor.get_document().createElement("A");

            link.innerHTML = content;
            argument = link;
        }

        var myCallbackFunction = function(sender, args) {
            editor.pasteHtml(String.format("<a href={0}>{1}</a> ", args.href, args.name))
        }

        editor.showExternalDialog(
            'InsertLink.aspx',
            argument,
            400,
            220,
            myCallbackFunction,
            null,
            'Insert Link',
            true,
            Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
            false,
            true);
    };

Do you have any idea why?
Is there any workaround to prevent the status bar from showing?

Thanks.

Rumen
Telerik team
 answered on 14 Feb 2013
3 answers
168 views

I want to save changes pro grammatically
don't.want that tool dilog(save image).
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 14 Feb 2013
3 answers
125 views
Hi,

We are about to buy telerik controls for our project, in those we are mainly concentrating on Radscheduler. Before purchasing your controls we want to make sure that radscheduler works for multiple users using objectdatasource . If yes please send me an working sample code. All the examples that I found are using sqldatasource in aspx page. But I want an example using objectdatasource for multiple users.
We are using the following versions
Asp.net Version 4.5
C#.net
Sql server as backend.

Thank you,
Sravya.
Plamen
Telerik team
 answered on 14 Feb 2013
2 answers
155 views
Hi,
  I have Hover over event at institution name. if i hover over couples of time the border at the bottom disappear. If i refresh my page and border start coming normal. Any reason for this behavior? Thanks in advance

<Telerik:RadToolTip ID="uxToolTip" runat="server" TargetControlID="uxInstitutionName"  BorderStyle="Solid" Animation="Slide" Width="350px" ShowCallout="True" ShowDelay="0" ShowEvent="OnMouseOver" Position="BottomCenter" RelativeTo="Element" Skin="Vista" HideEvent="LeaveToolTip">
<b>CEO Name</b><br />
<span style="margin-left: 5px" id="uxCreditUnionCEONameSpan" runat="server"></span>
<br />
<b>Bus. Hours</b><br />
<span style="margin-left: 5px" id="uxCreditUnionBusHoursSpan" runat="server"></span>
<br />
<b>Time Zone:</b><br />
<span style="margin-left: 5px" id="uxCreditUnionTimeZoneSpan" runat="server"></span>
<br />
<b>City & State:</b><br />
<span style="margin-left: 5px" id="uxCreditUnionCityAndStateSpan" runat="server"></span>
<br />
<b>Main Ph/Fax:</b><br />
<span style="margin-left: 5px" id="uxCreditUnionMainPhOrFaxSpan" runat="server"></span>
<br />
</Telerik:RadToolTip>
Balkar
Top achievements
Rank 1
 answered on 14 Feb 2013
4 answers
207 views
Hi,

How can I keep PopUp editForm within screen Boundary?

Thanks,
Prava
Eyup
Telerik team
 answered on 14 Feb 2013
1 answer
196 views
Hi,

We use Telerik's grid for VS2008. We added context menu to grid and one of option is to export grid data to MS Excel file. I've created the popup window that opens when we choose that option from context menu. The window opens up and we have Telerik's combo box on it.

My question is - how can I get the value of chosen option from combo box when click "OK" and proceed further in ASP.NET code? The code that should be executed to export grid data to MS Excel file is as following:

this.Grid.ExportSettings.ExportOnlyData = true;
this.Grid.ExportSettings.OpenInNewWindow = true;
this.Grid.MasterTableView.ExportToExcel();

We have 2 options in combo box: export all data from grid or export only selected data. It means I need to know which option has been chosen in order to proceed.

I need some code sample.

Thank you in advance,

Goran
Angel Petrov
Telerik team
 answered on 14 Feb 2013
1 answer
138 views

Dear Telerik Team,

We are very disappointed to write this mail. We are using Telerik RadControls for ASP.NET since last 4 years, we were happy to use your controls except in some scenarios related to performance. Intermittantly at some extent it degrades its performance.

Considering above fact in mind still we were suppose to go ahead developing our new big and our dream product on internet. However we have been observing a very degradbale performance of new radcontrols on your demo site itself. We are also afraid to see comments on different sites by users on internet relates such low performance and quite confused what to do ?

And coming to us it is very important decision to select controls before starting developement, we cannot roll it back.

1. What is the cause new radcontrols degrades the performance ?
2. Are you going to work on this issue ? Is it a known issue ?
3. What is an alternative to overcome such performance issues ?
4. Will it work with same performance with cross browsers ?

I hope your honest reply will help me to arrive our decision whether to go ahead with RadControls ?

Best Regards,

Kiran

 

 

Rumen
Telerik team
 answered on 14 Feb 2013
14 answers
343 views
Hi All,

             Can any onw pls let me know the code that is used to export TO PDF on the RadGrid with the child items.

Regards,
Asra
Radha
Top achievements
Rank 1
 answered on 14 Feb 2013
7 answers
1.1K+ views
Hi,

I have configured the CommandItemSetting of RadGrid to diplay Refresh button. But on clicking the button nothing happens.

Do I need to wire it up to any function? There is nothing mentioned any thing about this in Telerik demo.

-Rajesh
Princy
Top achievements
Rank 2
 answered on 14 Feb 2013
1 answer
101 views
I have a simple 2 level hierarchical grid with parent and child table joined on country id.  HierarchyLoadMode is set to  "Client".  Ive enabled AllowRowSelect="True" in clientsettings.  Its also set to have all parent rows collapsed by default (HierarchyDefaultExpanded="true")

So far so good and it works fine.

Ive put a simple button on the page that posts back  - nothing more.  In future that will loop through all the rows using foreach (GridDataItem item in myRadGrid.Items) and then send the selected output to a datatable etc etc.

What Ive noticed is the following:
 - I expand a country -> I select a region -> I collapse the same country - I click the button -> the page refreshes and all is well - the selected region is showing and the country is expanded - good.  This backs up what I had read, in that local settings such as whether a parent row is collapsed or expanded, and/or a child row is selected our passed back to the server. However,  I then collapse the region and then click the button again. This time the country is collapsed and when I expand it, the region is no longer selected.  I was expecting it to behave exactly as it did first time round.  When I loop through the items in code behind the child rows is not selected either.

I think what is happening here is that the first time round the parent row (country) starts off collapsed and is posted back collapsed.  And it is then able to remember the child rows selected. The second time round it starts off expanded, but is posted back collapsed which I am guessing makes it think no child rows are selected - or something like that. 

I guess there are two solutions:
 1. When a child row is selected then don't allow the user to then collapse the parent row (I imagine this is not too hard to do in javascript)
2. Fix the problem so that it remembers the selected child rows in the second stage described above.

Any help or advice greatly appreciated.  Ive pasted below extract of the mark up  - its pretty simple.

 <asp:Button ID="Button1" runat="server" Text="Button"   />
  <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
     <telerik:RadGrid ID="RadGrid1" DataSourceID="dsCountries" runat="server" AutoGenerateColumns="False"
        AllowMultiRowSelection="False" >

        <ClientSettings>
            <ClientEvents />
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <MasterTableView ClientDataKeyNames="CountryID" DataSourceID="dsCountries" DataKeyNames="CountryID"
             HierarchyLoadMode="Client" Width="100%">
                <DetailTables>
                <telerik:GridTableView  HierarchyLoadMode="Client"
                    DataSourceID="dsRegions" Width="100%" GridLines="Horizontal" CssClass="RadGrid2">
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="CountryID" MasterKeyField="CountryID">
                        </telerik:GridRelationFields>
                    </ParentTableRelation>
                    <Columns>
                        <telerik:GridBoundColumn  HeaderText="State" HeaderButtonType="TextButton"
                            DataField="State">
                        </telerik:GridBoundColumn>
                       
                    </Columns>
                </telerik:GridTableView>
            </DetailTables>
             <Columns>
                 <telerik:GridBoundColumn  HeaderText="Country" HeaderButtonType="TextButton"
                    DataField="CountryName">
                </telerik:GridBoundColumn>
               
            </Columns>
            
        </MasterTableView>
    </telerik:RadGrid>
Shinu
Top achievements
Rank 2
 answered on 14 Feb 2013
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?