Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
435 views

Hello Telerik!

I need your help urgently. I am stuck in this problem since 2 days. I have a Rad Window which is opened in javascript. This window is opened as maximized using oWnd.maximize();

This window's content .aspx page is having a RadTabStrip with RadMultiPageView. The width of RadMultiPage is set in Pixels.

 When I restore the window and resize it , It should be showing the scroll bars as now the content of the window is beyond the size of the window. And this is what happens in FF and IE.. which is correct but I don't see any scrolls in the Chrome. 

 

I have spent a lot of time in this issue and still not able to figure it out... Kindly help me with this problem... or is this a known Chrome issue as it works fine in FF and IE.

 

Regards,

Nick.

 

Nick
Top achievements
Rank 1
 answered on 06 Jul 2016
1 answer
384 views

I have set the TargetFolder e.g. 

TargetFolder="~/content"

and it works fine except that i want the file names to be kind od hashed e.g. myfile.jpg to be saved as 8unfsKjfjskskdjf^7i.jpg

I have the HashFileName(string file) function but not quite sure where to apply it. 

 

Thank you

Veselin Tsvetanov
Telerik team
 answered on 06 Jul 2016
3 answers
125 views

Hi, I have a RadImageGallery with DisplayAreaMode="LightBox".

It's possible remove from LightBox the button "Maximize Image"?

 

Thanks in advanced.

Viktor Tachev
Telerik team
 answered on 06 Jul 2016
1 answer
188 views
RadTextbox can display a button and provides a client-side click event for it. How do you generate a server-side click event from that button?
Konstantin Dikov
Telerik team
 answered on 06 Jul 2016
1 answer
221 views

I'm modernizing some really old code that used the old Rad toolkit.  I found that the "argument" property is not persisting.  I was able to change the window's close code around to pass the element in the close() function, but can't find a way to do this when opening the form.  I'm using VS2013 with ASP.NET AJAX and Telerik.Web.UI v2015.3.930.45.

Please take a look and advise.  I don't want to make a round-trip to the server for this.  I also found that javascript globals do not persist between postbacks.  So I can't use that sloppy method either.  FYI - I keep the window open and the user may initiate a number of postbacks with an runat=server asp:button before I close it from the client side.

 

Javascript being called from a client-side radmenu click on the main page.  "notesExist" is a string value.

function ShowNotesForm(id, notesExist) {

    var oWnd = window.radopen("Dialogs/Notes.aspx?DocID=" + id, "NotesDialog");
    oWnd.argument = notesExist;

}

 

Javascript within my Notes.aspx:

 

        <telerik:RadScriptBlock runat="server">
            <script type="text/javascript">
                $(document).ready(function () {
                    alert(GetRadWindow().Argument);
                });
            </script>
        </telerik:RadScriptBlock>

 

I've tried reading GetRadWindow().Argument in other sections like after a button-click on the client-side, but put it here to make it easy to replicate on your end.

 

Marin Bratanov
Telerik team
 answered on 06 Jul 2016
1 answer
64 views

I want to create a TreeList with the EditForm below the tree.  Is that possible?  Can anyone provide an example?  I am still trying to get used to the Telerik Controls, and I am new to ASP.net (not .net in general).  I would prefer an example in VB.net, but C# would be fine too, I can translate. 

Viktor Tachev
Telerik team
 answered on 06 Jul 2016
2 answers
153 views

Hi,
I have a simple problem with a GridCalculatedColumn where i want to display the concatenation of a string and a int .
I dont have to filter or anything on it. I just need so text before the int value.

<telerik:GridCalculatedColumn UniqueName="c1" DataFields="myString, myInt"  DataType="System.String" Expression="{0}{1}"></telerik:GridCalculatedColumn>

myString And myInt are from a linq data source.
 I have try the : Expression="{0}Convert({1},'System.String')"

 

If you have any idea on how to do that without having to use databinding event or a Template Item.

 

Pierre
Top achievements
Rank 1
 answered on 06 Jul 2016
1 answer
127 views

Hello,

is it somehow possible to prevent that more than one root task can be created or only certain tasks can be deleted? My problem is that inside my gantt chart the root task represents some kind of project planning and all the child tasks are the different tasks of this project planning. So I want to prevent that the user can delete this root task or create other root tasks by drag and drop etc. This is a problem because I can only cancel e.g. the OnTaskDelete-event with some kind of data validation but the OnTaskUpdate events are fired before the OnTaskDelete-event. As a  consequence incorrect data is stored inside the updated tasks (e.g. the false OrderId), because the deletion of the root task is cancelled.

I really hope you can help me. Thank you very much.

Kind regards,

Felix

 

Felix
Top achievements
Rank 1
 answered on 06 Jul 2016
2 answers
154 views
I have a RadGrid with dynamically populated rows that updates frequently using Rebind, NeedDataSource, and a DataTable.  This functions very well, until I try to select rows in my grid.  The short explanation is that every time the DataSource on the RadGrid changes, selected rows are reset and do not persist.  I've been ripping my hair out trying to get around this, but I've had no success.  Here are some scenarios I've tried.

-Rebind, NeedDataSource, new DataTable - Selected rows do not persist
-Rebind, NeedDataSource, modify an existing DataTable - Selected rows do not persist
-Remove Rebind and NeedDataSource, manually modify an existing DataTable - Grid does not update
-Remove Rebind and NeedDataSource, manually modify an existing DataTable, set DataSource and call DataBind - Selected rows do not persist
-Rebind, NeedDataSource, manually track row selections and set the GridDataItem.Selected property after setting the DataSource - Selected rows do not persist

So the conclusions I've come to is that selected rows are reset whenever the DataSource property is changed, a RadGrid will not update unless the DataSource property is changed, and the GridDataItem.Selected set property does not do what I would expect it to do.

Is there any way to accomplish this, or am I completely out of luck?  Thanks!
Luis
Top achievements
Rank 1
 answered on 05 Jul 2016
3 answers
171 views

Hi,

I want reorder rows in javascipt, move some rows up to first. I don't want to use Drag and Drop row.

Ideally, I have some sort expression and I want to to move some rows which contain value in expression up to first.

Is it possible to do this in javascript ?

Many thanks,

Quang Anh

Maria Ilieva
Telerik team
 answered on 05 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?