PDA

View Full Version : [CLOSED] MVC - RenderTo/ApplyTo



thchuong
Sep 29, 2014, 10:08 AM
Hi there,

Let see my page have a div and id is 'orgplaceholder'


@ext.LinkButton().Text("LINK").ApplyTo("orgplaceholder")

I want that link to be rendered into orgplaceholder element but it is not. Even I don't see any attribute of applyTo of script.

Do you have any advise?

Thank in advance.

Daniil
Sep 29, 2014, 12:50 PM
Hi @thchuong,

Please use RenderTo instead.

I think the ApplyTo property is an atavism since Ext.NET v1 and no longer supported. I will remove it.

Thanks for the question.

thchuong
Sep 30, 2014, 2:14 AM
Hi Daniil,

RenderTo does not work either.

geoffrey.mcgill
Sep 30, 2014, 4:34 AM
Based on only your description and simple code sample, using .RenderTo is the correct answer.

thchuong
Sep 30, 2014, 5:41 AM
Hi Geoffrey,

If it is the correct answer then it should prove something correct in script.

Let take a look at

I declare
@ext.LinkButton().RenderTo("orgplaceholder").Text("Link Button")
and here what I received
http://forums.ext.net/attachment.php?attachmentid=15361&stc=1

geoffrey.mcgill
Sep 30, 2014, 6:23 AM
Unfortunately I don't think we'll be able to provide any additional help.

You are not providing enough information for us to diagnose the problem.