Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
201 views
I've implemented a version of the javascript checking for the RadEditor that is found on this forum, but I am still having issues because if a person spellchecks the RadEditor they are able to bypass the checking.

For example if you want the max to be 100 charscters and they are at 100 characters, but in their text they have mispelled words that when fixed add characters it goes over the maximum length.  How would I tie into the spellcheck control to know the text has been changed and to recount it?
Rumen
Telerik team
 answered on 30 Jun 2009
5 answers
105 views
the buttons drawn by default are fat [top, bottom], below is a simple code.

 

<telerik:RadToolBar ID="lookup_button" runat="server" Skin="Default" OnClientButtonClicked="OnClientToolbarLookupButtonClicked" EnableViewState="false">

 

 

<Items>

 

 

<telerik:RadToolBarButton runat="server" PostBack="false" style="font-size: 8pt; font-weight: bolder;" Text="Lookup">

 

 

</telerik:RadToolBarButton>

 

 

</Items>

 

 

</telerik:RadToolBar>

we tried to play around with the padding but this distorted the button. How can can we make the buttons in the RadToolBar thinner. Thanks.

 

Martin
Top achievements
Rank 1
 answered on 30 Jun 2009
2 answers
115 views
hi all,
I have 6 Tabs in a radtabstrip control in a ASP .NET page and i want to make the second and the third tabs in visible = false
 This operation cause the next problem : my 4th tabs is not clickable.
Someone have an idea to resolve this problem?
Paul
Telerik team
 answered on 30 Jun 2009
1 answer
231 views
I am using a RadNumericTextBox that needs to support up 5 digits before the decimal point and up to 15 digits (which i am planning on enforcing with an asp RegularExpressionValidator) after the decimal point (for example, 12345.123456789012345).  If I enter this number it gets rounded off to 12345.123456789011 when the control loses focus.

If I enter 0.123456789012345 it stays as 0.123456789012345 when the control loses focus which is the desired behavior.

This is the markup for the RadNumericTextBox

<

 

telerik:RadNumericTextBox ID="radTXTValue" runat="server" Width="500px"><NumberFormat DecimalDigits="15" AllowRounding="false" /></telerik:RadNumericTextBox>

 



Any help in resolving this will be appreciated.

John

Dimo
Telerik team
 answered on 30 Jun 2009
1 answer
67 views
I've looked through the documentation and through a lot of the forum threads, and I haven't found an answer to a very basic question. I must be overlooking it though...

If I use the scheduler to schedule alerts or processing jobs that need to be created when the "appointment" fires, how do I know when the appointment is "now"? Is there not a way in the object model to iterate all the appointments every x minutes and determine that it should execute now without doing all of the time/date comparisons myself?

For example in VB.NET:

For Each appointment In appointments 
   If appointment.IsInRange( startTime, endTime ) Then 
      Execute( appointment ) 
   End If 
Next 


Thank you,
Terry

T. Tsonev
Telerik team
 answered on 30 Jun 2009
5 answers
199 views
I have a user on IE6 that is complaining of an intermittent problem with the slider.  When the page loads the slider doesn't render correctly nor does it work.  She must refresh her page and then it will usually reset itself.

If you open the image below, you will see an example of the issue.  There are two red arrows on the screenshot.  The leftmost points to the slider button which is shifted to the left of the slider.  The rightmost points to where the slider is supposed to display.  You can see the two arrow pagers on the left and right of the slider, but no bar where the slider bar should be.

http://imagehost.bigwavesoftware.net/sliderissue.png

Has this been seen or addressed before?

Thanks,
John
Tsvetie
Telerik team
 answered on 30 Jun 2009
1 answer
41 views

Is there a way to define a default width for an input control (CssClass) so that it can be overwritten inline via the controls width parameter?

Thanks,
Rich

Dimo
Telerik team
 answered on 30 Jun 2009
1 answer
180 views
Hi,


I am having a grid  I wish to have static headers  to display.
so, i have added  following under client settings
<Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="500px"   />

Now i also wanted to have horizontal  scroll bars  so i kept the grid in a div

<div style="width:1024px; overflow-x:scroll">
My grid here
<div>

The problem is that it shows two Horizontal scroll bars in IE,
And in  FF  only one horizontal  scroll bar is shown, but it does not show the whole grid, and right most part is not shown even after scrolling to most right.

Please Help..

Also, can't we set the  scroll width   just like we had set ScrollHeight in above.

Thanks,
Avi
Dimo
Telerik team
 answered on 30 Jun 2009
6 answers
675 views
I have a need to create a pdf file for a selected row in a grid which I then download to the client pc. I have the pdf creation working fine in code behind. I've got it triggered from a button on the command row. The button click downloads a pdf file based on the selected row in the grid. The grid is ajaxified using a RadAjaxPanel and, in order to perform the pdf file download, I disable the ajax call on click of the button, and then do a Response.BinaryWrite(pdfBytes) of the pdf data, which basically is then doing a regular postback. I get the pdf file transfered correctly to the client pc with a save as/open diaglog box.

Now I want to do the same thing but from a button in each row of the grid. I have a grid with a standard linq datasource. I have a gridbuttoncolumn with an imagebutton which has a command of Print. I've hooked the client OnCommand to some javascript to cancel the ajax call. I've hooked the server side OnItemCommand to a c# handler and everything fires ok.

My problem is that the e.item.itemIndex value is always zero regardless of what row button I click. All my row data seems to be in place because inside the OnItemCommand if I supply a hard coded index to a GetDataKeyValues, I get the data key correctly. Here are the two samples. The first only ever gives me the data key of item zero because e.Item.ItemIndex is always 0.

protected void RadGridLetters_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
    { 
        if (e.CommandName == "Print") 
        { 
            int letterId = (int)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["LetterId"];   
            CreatePDF(letterId); 
        } 
    }  

This one proves the data is there because I get the key value for the 7th row (indexed from 0).
protected void RadGridLetters_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
    { 
        if (e.CommandName == "Print") 
        { 
            int letterId = (int)e.Item.OwnerTableView.DataKeyValues[6]["LetterId"];   
            CreatePDF(letterId); 
        } 
    }  


Why is my ItemIndex always Zero?

Thanks,
Steve (pulling my hair out...)





btw. Here's some code extracted from my app to give you more context.

aspx.
<Telerik:RadAjaxPanel ID="RadAjaxPanelLetters" runat="server" LoadingPanelID="RadAjaxLoadingPanel2" ClientEvents-OnRequestStart="onRequestStartLetters"
<telerik:RadGrid ID="RadGridLetters" runat="server" GridLines="None" EnableEmbeddedSkins="false" Skin="RealMax" 
        AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="true"  
        DataSourceID="LinqDS_Letters" OnItemCommand="RadGridLetters_ItemCommand"  
        AllowPaging="True" AllowSorting="True" EnableHeaderContextMenu="True" 
        AllowFilteringByColumn="True" > 
    <ClientSettings EnableRowHoverStyle="true" > 
        <ClientEvents OnRowContextMenu="RowContextMenu" OnRowMouseOut="rowMouseOut" OnRowMouseOver="rowMouseOver" OnPopUpShowing="PopUpCentered" OnCommand="GridCommand" ></ClientEvents
        <Selecting AllowRowSelect="true" /> 
    </ClientSettings> 
    <HeaderContextMenu Skin="Office2007" EnableTheming="True"
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </HeaderContextMenu> 
 
    <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="false" /> 
    <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top"  
            DataKeyNames="LetterId" DataSourceID="LinqDS_Letters" EditMode="EditForms"
    <RowIndicatorColumn> 
        <HeaderStyle Width="20px"></HeaderStyle> 
    </RowIndicatorColumn> 
    <ExpandCollapseColumn> 
        <HeaderStyle Width="20px"></HeaderStyle> 
    </ExpandCollapseColumn> 
    <ItemStyle CssClass="RowMouseOut" /> 
    <AlternatingItemStyle CssClass="RowMouseOut" /> 
    <Columns> 
        <telerik:GridEditCommandColumn EditImageUrl="~/Images/Buttons/edit.gif"  
            ButtonType="ImageButton" CancelImageUrl="~/Images/Buttons/cancel.png"  
            Resizable="False"
            <HeaderStyle Width="16px" /> 
            <ItemStyle CssClass="CommandColumn" /> 
        </telerik:GridEditCommandColumn> 
        <Telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/Buttons/printer.png" Text="Print" CommandName="Print" > 
            <HeaderStyle Width="16px" /> 
            <ItemStyle CssClass="CommandColumn" /> 
        </Telerik:GridButtonColumn> 
 
... etc 

javascript:
var cancelAjaxLetters = false
 
function GridCommand(sender, args) { 
        if (args.get_commandName() == "Print") cancelAjaxLetters = true
    } 
 
function onRequestStartLetters(ajaxManager, eventArgs) { 
    if (cancelAjaxLetters) { 
        //alert("disabling Ajax"); 
        eventArgs.EnableAjax = false
    } 
 
    cancelAjaxLetters = false

c#
 protected void RadGridLetters_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
    { 
        if (e.CommandName == "Print"
        { 
            int letterId = (int)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["LetterId"];   
            CreatePDF(letterId); 
        } 
    }  






nestur
Top achievements
Rank 1
 answered on 30 Jun 2009
3 answers
279 views
Hi!

My problem is that when I have a wide control (for example a TextBox that is 500px wide) in the CommandItemTemplate then the width of the ExpandColumn will increase.

There is changed behaviour in Q1 2009 making the expand column width to be dependent on content of CommandItemTemplate.

Does anyone have a clue how to set a fixed size for the ExpandColumn in this case? I have tried to set width property in css for rgExpandCol but it does not work for me.

Thanks
/Mats
Dimo
Telerik team
 answered on 30 Jun 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?