Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
140 views

I am having trouble getting a custom skin to work.  I followed all of the steps and tips I could find, in the help and in these forums.  It appears that the skin is not found or not recognized, as when I try to apply the custom skin, the control appears the same as if I set skin to nothing  (The word "select" appears where the arrow should be, so it seems like either the skin was not applied or it cannot find the files.)

Peter
Sebastian
Telerik team
 answered on 09 Jan 2009
1 answer
321 views
I have an ASPX page. on this page i have a userControl, on this User Control i have another User Control. the Purpose of the last User Control is to allow selection of a tree view, however since we have thousands of what would be nodes, we have a grid and a RadTab, the RadTab options are GridView and TreeView, the control defaults to GridView listing the thousands of possible selections, there is also a textbox which searchs the grid, whenever the grid has less then 200 items, it defaults to tree view and the items are displayed in a tree view.

now, this control is on several pages and works great. however, now since i have this control, on a User Control thats on an ASPX page, i get errors.

Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object

whenever i take out the ajax of the control, it works fine. however, when trying to use the Ajax, that error occurs whenever a search is performed on the grid (the ajax is being called)

the RadAjaxManager and RadScriptManager and RadLoadingPanel are all on the ASPX page. and im trying to reference them from the user Control.

i used the following lines of code.

ScriptManager1 = (RadScriptManager)this.Parent.Page.FindControl("ScriptManager1");
RadAjaxLoadingPanel1 = (RadAjaxLoadingPanel)this.Parent.Page.FindControl("RadAjaxLoadingPanel1");

RadAjaxManager.GetCurrent(this.Parent.Page).AjaxSettings.AddAjaxSetting(LocationSetToolBar, LocationGrid, RadAjaxLoadingPanel1);

i also tried this.parent.parent.page, just to make sure i was hitting the correct length.

any help at all would be appreciated. thx.





Sebastian
Telerik team
 answered on 09 Jan 2009
1 answer
164 views
HI,

i am facing a issue in the RAD Editor which the same content changes when added in the html mode and moved to the design mode and coming back  to  the HTML Mode

below is the the orignal content 

<![if !supportMisalignedColumns]>
<tr height=0>
  <td width=4 style='border:none'></td>
  <td width=464 style='border:none'></td>
  <td width=122 style='border:none'></td>
</tr>
<![endif]>

after adding the original content in HTML mode in FF2 and then switch to design mode and coming back to the HTML mode will result in the below content  in the editor 

<br><!--[if !supportMisalignedColumns]-->

<!--[endif]-->

after adding the original content in HTML mode in IE7 and then switch to design mode and coming back to the HTML mode will result in the below content  in the editor 

<tr height="0">
<td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" width="4"></td>
<td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" width="464"></td>
<td style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none" width="122"></td></tr>

Is this expected behavour or due to any filter in the RAD Editor control

Thanks
Malinda






Lini
Telerik team
 answered on 09 Jan 2009
8 answers
151 views
Hi,
We are wondering if you had some best practice examples on how to configure the GridDropDownColumn. (Which properties to etc) We are having some problems in that it is querying db for data even when it's not in editmode.
Rosen
Telerik team
 answered on 09 Jan 2009
2 answers
146 views
Hello,

Is there a way to block null values for the date/time pickers, or is there an event that fires whenever the value in the textbox becomes null?  I want to ensure a value always exists...  I would like to know when the user enters a null value, which dateselected client-side event doesn't fire.  DateInput.OnClientDateChanged event didn't fire either.

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 09 Jan 2009
1 answer
142 views
Hi,

I'm still working with the RadEditor 7.3.3 version. I don't know if this is the correct place for my question but since this website got a new look I can't find any information about it anymore.

Scenario:
* Openening a page with the editor on it.
* typing:  www.link.com followed by a space (so it is converted into a hyperlink)
    the href property is now set to www.link.com
* Submitting the page back to the server
* On the server the href property is changed to another url (eg. www.myserver.com?followLinkId=1)
* opening the page with the editor on it loading the previous data.
* When submitting this page again (without changing anything) the name of the url ( the text between <a> and </a>) is changed to the href.

Any idea howto prevend the editor from changing these names?

Regards,
Roel Schlijper

Slampaq Solutions
The Netherlands
Lini
Telerik team
 answered on 09 Jan 2009
2 answers
339 views
Hi,

I am having problem in changing the color of the radtextbox at the client side,
the color changes only after the control gets the focous, but i want it to happen immediately as soon as i click on the button.
below is the code, kindly advise

 

<script language="javascript" type="text/javascript">

 

 

function validate()

 

{

 

var name = $find("<%= radtxtLastName.ClientID %>");

 

 

var name1= document.getElementById('radtxtFirstName');

 

alert(name1.value);

name1.style.background =

"red";

 

 

if(name.get_value()=="")

 

{

name.get_styles().EnabledStyle[0] =

"background-color: Red;";

 

 

return false;

 

}

 

return true;

 

}

 

</script>

 

 

<telerik:RadTextBox ID="radtxtLastName" runat="server" Width="250px" MaxLength="50" skin="Office2007"/>

 

 

<asp:TextBox ID="radtxtFirstName" runat="server" Width="250px" MaxLength="50"></asp:TextBox>

 

 

<asp:ImageButton ID="btnChange" ImageUrl="~/Images/btn_ok.gif" runat="server" OnClientClick="return validate()" />


Regards,

Santhosh

 

santhosh
Top achievements
Rank 2
 answered on 09 Jan 2009
7 answers
240 views
Hi,

there are 3 things i found.
All worked by just changing between View Mode and HTML View

1. A BR will be added in Tables under curtain conditions, everytime you change Views or do a Post Back
2. Table Style gets new Probertys 
Before:
style="width: 149px;"
After:
style="width: 149px; undefined: "
3. Spaces get added (I think this so HTML View looks better, but it changes the content)
Before:
<td style="width: 149px;" valign="middle">
<p>Genevieve <br />Simard</p>
</td>
After:
            <td style="width: 149px; undefined: " valign="middle">
            <p>Genevieve <br />
                        Simard</p>
            </td>
So between Genevieve and Simard are a lot of spaces now, that shouldnt be there in the content.

How can you disable this changes?
 
I want to edit the content myself, not let Rad Editor do it like he wants to.
Tervel
Telerik team
 answered on 09 Jan 2009
1 answer
376 views
Hi,

I am trying to add a function to the close event of a nested radWindow.

There is a Main Window which has 'RadWindow1' inside it.
Then in the Loaded Page in RadWindow1, I have the following code, where I am opening a nested radWindow using radopen()

I can open the nested radWindow and run the application in the page loaded in it .
But I am getting this error in the application for the Close function --> "telerik Can't execute code from a freed script"

The function is right there and is so simple.
I can't figure out what is the issue as the function is in the parent (RadWindow1) and not the child.
So, if the parent (RadWindow1) is not terminated, how come the script is freed??

  • The Code is as follows:

     

<

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

body>

 

 


<
script type="text/javascript">

 

 

function GetRadWindow()

 

{

 

var oWindow = null;

 

 

if (window.radWindow)

 

oWindow = window.radWindow;

 

else if (window.frameElement.radWindow)

 

oWindow = window.frameElement.radWindow;

 

return oWindow;

 

}

 

 

function ShowNewRadWindow(stringUrl)

 

{

 

var oBrowserWnd = GetRadWindow().BrowserWindow;

 

 

var oWin = oBrowserWnd.radopen(stringUrl, null);

 

oWin.add_close(myAlert);

oWin.setActive(

true);

 

oWin.setSize (600, 500);

oWin.moveTo(100,100);

oWin.maximize();

alert(

"Please select the Errored records and Update them.");

 

}

 

 

 


function
myAlert()

 

{

alert(

"Window is Closing......");

 

}

function OnClientClose(sender, eventArgs)

 

{

 

var hiddenPostBackField = document.getElementById("PostBackSourceHiddenField");

 

 

hiddenPostBackField.value = "ChildPostBack"

 

 

 

 

 

alert(

"Window is Posting Back.");

 

 

 

 

 

DoPostBack();

 

 

 

alert(

"Window is closing.");

 

}

 

 

function DoPostBack()

 

{

__doPostBack(

'ctl00_ContentPlaceHolder1_RadWindow1','My Argument');

 

 

}

 

 

 

 

</

script>

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

 

<div style="width:100%;">

 

<%

-------------------------------------------------------------------------------------------------------------%>

 

<%

-- Hidden field to check postback of the page from the Confirm Window. --%>

 

<%

-------------------------------------------------------------------------------------------------------------%>

 

 

<asp:HiddenField ID="PostBackSourceHiddenField" Value="SelfPostBack" runat="server" />

 

 

 

 

<%

-------------------------------------------------------------------------------------------------------------%>

 

 

.
.
.

 

 

<asp:Button ID="btnOpen_NestedradWindowConfirmInsert" Font-Bold="true" runat="server" Font-Size="small"

 

 

Text="Review new Window" ForeColor="red"

 

 

OnClientClick ="ShowNewRadWindow('./PopupPage.aspx');" />

 

 

.
.
--------------Other Code-----------------
.
.
.

 

 

</div>

 

 

 

 

 

</form>

 

</

body>

 

</

html>

 

 

 

 

 


Svetlina Anati
Telerik team
 answered on 09 Jan 2009
2 answers
212 views
I am having a problem retrieving the edited values from a radgrid control that I am processing in batch mode.  The user can enter edit mode and change multiple rows and then click a button to initiate the batch save.  I can not use a CommandItemTemplate and place the control that initiates the update in the grid header.

I am placing the grid control in edit mode by executing the following code on a button click:

Protected Sub btnFollowupEdit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFollowupEdit.Click
    Me.btnFollowupCancel.Visible = True
    Me.btnFollowupEdit.Visible = False
    Me.btnFollowupSave.Enabled = True

    For Each item As GridItem In radgFollowUp.MasterTableView.Items
        If TypeOf item Is GridEditableItem Then
            Dim editableItem As GridEditableItem = CType(item, GridDataItem)
            editableItem.Edit = True
        End If
    Next
    radgFollowUp.Rebind()
End Sub


This works correctly.

When clicking a button to save the edited values in the grid I execute the following code:

 

Protected Sub btnFollowupSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFollowupSave.Click
    For Each editedItem As GridEditableItem In radgFollowUp.EditItems
        If TypeOf editedItem Is GridEditableItem Then
            Dim theItem As GridEditableItem = CType(editedItem, GridEditableItem)
            Dim newValues As New Hashtable()
             'The GridTableView will fill the values from all editable columns in the hash
            theItem.OwnerTableView.ExtractValuesFromItem(newValues, theItem)

            '***
            'The newValues hashtable contains the original values for the editable controls, not the changed values

            ' ... do stuff here to save the data
        End If
    Next
end sub

 


Can anyone tell me how to access the new(changed) values for the edited controls.  I may have a cast wrong since I have a different event argument from the examples I have found.

Thanks for your help ,

John

 

 

 

 

 

 

 

 

 

John
Top achievements
Rank 1
 answered on 09 Jan 2009
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?