Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
Dear All,

I just have a question , When UI telerik library will render it's UI elements as tabless layout(using DIV instead of table) to improve performance in complex business application UI ?
Or at least make it configurable by designer to choose what type of tags will rendering in layout of UI element.

Kind regards,

Bader Dokhan
Senior UI  Designer





Dimo
Telerik team
 answered on 23 Sep 2008
1 answer
79 views
Query is :
 
I am creating a server control of type class library. In this control i am deriving my servercontrol class with telerik RadTabStrip control and embedding some javascript. The problem i am facing is that while building the project i am getting following error :

The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced.
You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

From where i can add this assembly as its a class library.
Please  help me ..

Regards,
Sagar
Atanas Korchev
Telerik team
 answered on 23 Sep 2008
4 answers
127 views
Hi everybody ! I am a new user of Telerik RadControl and i want to make a toolbar like the Inox Skin, with rounded  corner !

When i apply the Inox skin in my ToolBar, i haven't got the rounded corner !

What happend ?
BRIAN
Top achievements
Rank 1
 answered on 23 Sep 2008
1 answer
85 views

Hi All,

I am using the latest version of ASP.NET AJAX controls and have encountered an error when trying to display a confirmation box.

The title bar of the confirm box is set to 'null'

The script i use is:

  <script type = "">  
 
//Replace old radconfirm with a changed version.   
 
var oldConfirm = radconfirm;   
 
 
window.radconfirm = function(text, mozEvent)   
 
{   
 
var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually   
 
//Cancel the event   
 
ev.cancelBubble = true;   
 
ev.returnValue = false;   
 
if (ev.stopPropagation) ev.stopPropagation();   
 
if (ev.preventDefault) ev.preventDefault();   
 
 
//Determine who is the caller   
 
var callerObj = ev.srcElement ? ev.srcElement : ev.target;   
 
 
//Call the original radconfirm and pass it all necessary parameters   
 
if (callerObj)   
 
{   
 
//Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again.   
 
var callBackFn = function (arg)   
 
{   
 
if (arg)   
 
{   
 
callerObj["onclick"] = "";   
 
if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz   
 
else if (callerObj.tagName == "A"//We assume it is a link button!   
 
{   
 
try   
 
{   
 
eval(callerObj.href)   
 
}   
 
catch(e){}   
 
}   
 
}   
 
}   
 
oldConfirm(text, callBackFn, 300, 100, nullnull);   
 
}   
 
return false;   
 
}   
 
</script> 

Along with this behind the button in the ASPX page

asp:Button ID="btnUpdate" runat="server" Text="Create" Font-Names="Verdana" Font-Size="9pt" onclientclick="radconfirm('Are you sure?', event, 330, 100); " />

I have tried numerous ways to change the title from 'null' but can not get my head around it.

Many Thanks
Stuart



stuart
Top achievements
Rank 1
 answered on 23 Sep 2008
1 answer
265 views
I have a rad editor of certain width and height. When i keep on typing characters, the words get wrapped to the next line after reaching the end of the content area.   However i would like the words not to wrap and continue in a single line till i manually press enter. A scrollbar needs to appear at the bottom for horizontally scrolling the content.  How can i achieve this with rad editor?

I want to display the content as it is,  in another screen in perfectly the same way it looked when it was being edited including line breaks and non wrappings,etc.

Pls this is urgent.

Nilanjan.
Rumen
Telerik team
 answered on 23 Sep 2008
0 answers
111 views
Hi,
         I am using drill down chart in my project.Here when i click the radchart i am taking the x axis label text and pass this to another datasource and bind another type.I saw u r example in that if we click the chart it drill down to another chart is it possible to drill down the chart for three or more times.Then i have another problem in this drill down is when i click the radchart i will take the label text but due to postback chart is disable and i need to bind my previous datasource once agail then only i can able to take the label text.
       How can i make my chart without disable when i click the radchart?
       
Give me the suggestion,
Thanks
Giri
Top achievements
Rank 1
 asked on 23 Sep 2008
3 answers
268 views
Hi there,

The documentation for RadWindow contains the following:


Optionally, you can add additional arguments to supply the dialog with a width, height, and title, as well as an object you can use to pass information you think will be helpful in the callback. This object can be programmer defined or you can send a reference to some HTML object on the page.


My question is, how do I access that object? I figured it would work like this:

// Code calling radconfirm
var myState = 'Some State';
radconfirm('Are you sure', MyCallBack, 300, 300, myState, 'Delete');

Then I could have the following call back handler:

function MyCallBack(arg, state)
{
  if (arg)
  {
    alert(state); // would alert the text 'Some State'
  }
}

This is the way many other callback handlers normally work. However, no matter what I try, state is always null.

Any ideas? Am I overlooking something? Or is the documention incorrect?

Kind regards,

Imar
Tervel
Telerik team
 answered on 23 Sep 2008
1 answer
299 views
Hey,
I'm trying to use a RadGrid with inline editing via a custom template.  The scenario is complicated by the use of a special selection control we've built which pops up in a modal popup and allows the user to select the value for one of the fields that the RadGrid displays.  When the user selects a value, the control fires its ItemSelected event with event args that pass the data we need to display and save to the database.  The code-behind handles this event by updating the text of the LinkButton that serves as both the displayed text and as the modal popup trigger, as well as updating the text of a css-hidden textbox that holds the actual value to save to the database.
This worked great when we were using a regular ASP.NET GridView, but we needed to show hierarchical data in nested DetailsTable rows below it, so we invested in the RadGrid for this purpose.  Now, however, I can't seem to access the controls that need to be updated inside the Edit FormTemplate, and it seems like every single example anywhere on the net is only accessing it through the event args of events raised by the RadGrid itself.
Let me post some trimmed-down code so you can follow what I'm doing.
Here's the markup in question inside the RadGrid MasterTableView EditFormSettings:

<FormTemplate> 
    <asp:LinkButton ID="selectGLAccountLinkButton" runat="server"  
    CommandArgument='<%# Eval("GLAccountID") %>'  
    OnCommand="SelectGLAccountLinkButton_Command"
        <%# Eval("GLAccount.GLAccountNumber")%> 
    </asp:LinkButton> 
    <asp:TextBox ID="selectedGLAccountTextBox" runat="server" CssClass="hideButton" Text='<%# Eval("GLAccountID") %>'></asp:TextBox> 
</FormTemplate> 

The SelectGLAccountLinkButton_Command event handler triggers a modal popup with the selection control inside it.
When the user selects the item they desire, the modal popup closes and fires this event handler to update the display and underlying data, which was working with a standard ASP.NET GridView as written below:

protected void GLAccount_ItemSelected(object sender, ItemSelectionPage.ItemSelectedEventArgs e) 
    GridViewRow row = projectGridView.Rows[projectGridView.EditIndex]; 
    ((LinkButton)row.FindControl("selectGLAccountLinkButton")).Text = e.DisplayText; 
    ((LinkButton)row.FindControl("selectGLAccountLinkButton")).CommandArgument = e.ItemID.ToString(); 
    ((TextBox)row.FindControl("selectedGLAccountTextBox")).Text = e.ItemID.ToString(); 

The problem being that, from the above event handler (which is in the code-behind of the same page as the RadGrid) I can't find a way to access the controls in question like I would need to do above. 

I've set a breakpoint inside that method and wandered all through the intellisense on RadGrid1., but I suspect I'm just not looking in the "right" place.

Can anyone give me a hand?  Or is accessing the edit FormTemplate only possible inside a telerik event handler, in which case we'll have to abandon RadGrid and go some other route?

Thanks!
Sebastian
Telerik team
 answered on 23 Sep 2008
3 answers
229 views

Ok so i've got RadMenu working in my Sharepoint site now by following the Telerik instructions. Can you give me some pointers how to link up a Sharepoint sitemap that will display dropdown menus and sub menus as shown in the Telerik RadMenu for Sharepoint example. Do I have to configure an xml data file and how do i hook this up to the Rad Menu in Sharepoint to show dropdowns and flyout menus from the dropdown. Not experienced enough i know but help appreciated because we are evaluating the Telerik controls with a view to buy.

Thanks in Advance



Gordon
Atanas Korchev
Telerik team
 answered on 23 Sep 2008
3 answers
141 views
Hi,
hoping you can help please.

Note?: I am using 

function RefreshParentPage()

{

GetRadWindow().BrowserWindow.location.reload();

}

called from function CloseOnReload  (as per Telerik examples), which works fine in all other situations.

Base aspx (AllocatedContacts) loads a rad window (Unallocated Contacts), which loads another radwindow(TabbedCreateContact) which loads another RadWindow (PhotoUpload) which contains an asp FileUpload control.

I browse get the file successfully, and then on closing the last RadWindow(PhotoUpload) ........

I get an IE7 popup dialog,  saying
"To display the webpage again, Internet explorer needs to resnd the Information you've previously submitted. If you were making a purchase ...blah blah

with Retry + Cancel buttons.

Strangely though , if I Go from AllocatedContacts and load RadWindow(TabbedCreateContact) and then to RadWindow PhotoUpload, I browse, get image and close / refresh successfully without the IE7 Popup problem.
and then closing / refeshing down the chain is also fine.
 
 but adding a 3rd radW (as the 1st RadW in the chain), (the rest then remain the same), fails with the  IE7 dialog.

and,..
I do use the following means to close the radwindows. as oppsed to the Telerik example (GetRadWindow().Close(); )..

function CloseOnReload()

{

var myTextField = document.getElementById('UploadBtn')

if(myTextField.value == "Close")

{

alert (

"Refresh and Close");

RefreshParentPage();

window.opener = self;

window.open(

'~/CloseDummyIE7.htm', '_self');

window.close();

}

}


Thanks
Neal
Georgi Tunev
Telerik team
 answered on 23 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?