Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
if (e.Item is GridHeaderItem)  
                {  
                    GridHeaderItem headerItem = (GridHeaderItem)e.Item;  
                    headerItem["CheckboxSelectColumn"].ToolTip = "Select all or Deselect";  
                    headerItem["imgHeader"].ToolTip = "Action Past Due";  
                    headerItem.Attributes["onmouseover"] = "this.style.background='#dde9ff'this.style.fontWeight='normal';this.style.cursor='pointer'";  
                    headerItem.Attributes["onmouseout"] = "this.style.background=''this.style.fontWeight='';this.style.cursor=''";  
                } 
 hi im using the above code to display tool tip in the header section. but its is not geting insided the if loop. i need to do the mouse over color change too in that. please help. this same thing perfectly works for a data item.

Princy
Top achievements
Rank 2
 answered on 21 Dec 2009
1 answer
100 views
Hi,

I have one radgrid. i want to set the backcolor of cells in radgrid depending on certain conditions. How will i do this

Thanks in advance,
Suvarna

 

 

Dimo
Telerik team
 answered on 21 Dec 2009
1 answer
238 views
is there a roadmap for additional validators for input controls other than textbox?
I realize that you can use the .net validators but then the error message does not have the same look as the text boxes with telerik validation. we have a form with text boxes validated by inputmanager and combo boxes validated with .net validation and the error messages inside the text boxes look much better than the error messages from the .net validators.
Iana Tsolova
Telerik team
 answered on 21 Dec 2009
1 answer
307 views
Hi
I have created radcombobox dynamically.
In a xml file i have defined the name,size of the controls and on that basis i m creating the controls.
controls are created successfully.
now the problem occured when i am retrieving the value.
in the same way i have hae created asp control and i ma able to retrieve their values.
but in case of radcombobox there is error.
I have a asp panel and in that i have a table.
i am adding this control to the table.
I have defined a Table tblControl and finding the value as follows

string ctrlValue=((RadComboBox)tblControl.FindControl("cmbGender")).SelectedItem.Text;

when i debug the code then i fing that  findcontrol returns null.
means control is not availab;e at the server side by the name specified.

please help me in this regard
Shinu
Top achievements
Rank 2
 answered on 21 Dec 2009
3 answers
159 views
HI,
       i want to load separate usercontrol on tab selected event in clientside using javascript.. kindly provide sample code for the above



with regards,
Karthikeyan.G
Karthi Keyan
Top achievements
Rank 1
 answered on 21 Dec 2009
4 answers
282 views
Dear All,

I have three different panes in my masterpage layout, in the first pane I have panelbar that load different UserControls inside asp:panel inside the second pane, I have ajaxify this scenario using RadAjax manager.

The Issue is that the loading panel always appear on the upper left corner to the second pane no matter what I do and it doesn't cover the whole pane area.

what is the solution to this case !!

Best regards
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 21 Dec 2009
1 answer
236 views

I am using the RadEditor component. I am storing the content in a database text field with a max length of 4000 characters. I used a telerik javascript solution to limit the number of characters in the content to 4000 characters. This does not work because the database field needs to store not only the characters in the design or preview tab of the component but the HTML characters as well.

Anyway, I get the HTML from the editor.get_HTML(true), if I use the LENGTH (editor.get_HTML(True).Length). I get the number of characters that is previewed or in the design tab. I need the TOTAL number of characters in the HTML string including the HTML code such as <br />, <span>, etc.

editor.get_HTML(True).Length does not work is can not use a BLOB or CLOB.

Here is the javascript code.

 

<

 

script type="text/javascript">

 

 

 

 

 

var editorList= new Object();

 

 

var editorLengthArray = [4000,4000];

 

 

var counter = 0;

 

 

function isAlphaNumericKey(keyCode)

 

{

 

if ((keyCode > 47 && keyCode < 58) || (keyCode > 64 && keyCode < 91))

 

{

 

return true;

 

}

 

return false;

 

}

 

 

function LimitCharacters(editor)

 

{

editorList[editor.get_id()] = editorLengthArray[counter];

counter++;

 

editor.attachEventHandler(

"onkeydown", function(e)

 

{

e = (e ==

null)? window.event : e;

 

 

if (isAlphaNumericKey(e.keyCode))

 

{

 

var maxTextLength = editorList[editor.get_id()];

 

 

textLength = editor.get_html().length;

 

if (textLength >= maxTextLength)

 

{

alert(

'You are not able to type more than ' + maxTextLength + ' symbols!');

 

e.returnValue =

false;

 

}

}

});

 

 

var element = document.all ? editor.get_document().body : editor.get_document();

 

$telerik.addExternalHandler(element,

"paste", function(e)

 

{

e = (e ==

null)? window.event : e;

 

 

 

var maxTextLength = editorList[editor.get_id()];

//this code below does not work for me. it returns the number of characters previewed
//not the total number of characters in the HTML string/

 

textLength = editor.get_html(true).length;<<<<<<<<<<<<<

 

 

var clipboardLength = window.clipboardData.getData("Text").length;

 

textLength += clipboardLength;

 

if (textLength >= maxTextLength)

 

{

alert(

'You reached the 4000 symbol limit for your content.');

 

e.returnValue =

false;

 

 

return false;

 

 

}

});

}

 

 

function CalculateLength(editor, value)

 

{

 

var textLength = editor.get_html(true).length;

 

 

var clipboardLength = value.length;

 

 

textLength += clipboardLength;

 

return textLength;

 

}

 

 

function OnClientPasteHtml(editor, args)

 

{

 

var maxTextLength = editorList[editor.get_id()];

 

 

var commandName = args.get_commandName();

 

 

var value = args.get_value();

 

 

 

if (commandName == "PasteFromWord"

 

|| commandName ==

"PasteFromWordNoFontsNoSizes"

 

|| commandName ==

"PastePlainText"

 

|| commandName ==

"PasteAsHtml"

 

|| commandName ==

"Paste" )

 

{

 

var textLength = CalculateLength (editor, value);

 

alert(

'TL='+textLength);

 

 

if (textLength >= maxTextLength)

 

{

alert(

'You reached the 4000 symbol limit for your content.');

 

args.set_cancel(

true);

 

}

}

}

 

function OnClientSubmit(editor)

 

{

 

var textLength = editor.get_html().length;

 

 

if (textLength > 4000)

 

{

alert(

'You reached the 4000 symbol limit. Your content will be truncated!');

 

}

}

 

</

 

script>

 

Rumen
Telerik team
 answered on 21 Dec 2009
2 answers
77 views
hi please refere the attached.
i have edit and delete image in the grid, if i delete the record should delete. if i click edit the contents should populated in the above three fields and there i can edit. after i click update the contents should go back to the grid.
any idea on how to do this?

<

 

telerik:GridTemplateColumn HeaderStyle-VerticalAlign="Middle" UniqueName="TypeOfLead"

 

 

HeaderText="Action" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="40">

 

 

<ItemTemplate>

 

 

<asp:Image runat="server" ID="imgManualType" ImageUrl="../Images/icons/icon_edit.gif"

 

 

Visible="true" />

 

 

<asp:Image runat="server" ID="Image1" ImageUrl="../Images/icons/icon_delete.gif"

 

 

Visible="true" />

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 



Pavlina
Telerik team
 answered on 21 Dec 2009
1 answer
91 views
Hi,

I have been implementing RAD GRID Pagination as it was working for me with Multiview RAD Control and Tab Strips, but since I tried it to make compatible with Jquery Tab Search, it's not working anymore.

If I click on "2" i.e. Page 2 or so... the grid goes blank and then I need to click on search button "which eventually populates the grid. I have checked for the view state, viewstate doesn't seems to be an issue.

What could be the possible cause?
Thanks
Pavlina
Telerik team
 answered on 21 Dec 2009
2 answers
117 views
Hi :
 
                    <telerik:GridGroupByExpression> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldAlias="StartDate" FieldName="Start" FormatString="{0:d}"></telerik:GridGroupByField> 
                        </SelectFields> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="Start" SortOrder="Ascending" FormatString="{0:d}"></telerik:GridGroupByField> 
                        </GroupByFields> 
                    </telerik:GridGroupByExpression> 
In the source-code above, a field named Start is added into the GridField and the grouping field title will be something like
StartDate:2009-10-1. However, it is possible to remove the StartDate and just show 2009-10-1.
Does anyone have idea for it?
Princy
Top achievements
Rank 2
 answered on 21 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?