Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
Can you create a bar chart where the bar is coloured a different colour if it exceeds a specified value. e.g. The bars might normally be green but if the value is more than 10 the section above 10 is shown in red.

I can see that I could create two data series and then use a stacked bar chart but this requires a little manipulation of the data.

Andrew
Dessy
Telerik team
 answered on 27 Apr 2009
1 answer
103 views
I have found that clicking on either the "previous" or "next" button when the control has no items will cause a JavaScript error.

Thanks,
Mike Boyken
Fiko
Telerik team
 answered on 27 Apr 2009
1 answer
74 views

The new telerik version its not working dock expand and collapse in my page... what is the solution for that here by pasted my code pls check it and help me
bye
pl.karthik
vcs systems from bangalore.

 

<

telerik:raddocklayout runat="server" id="RadDockLayout16">

 

 

 

<telerik:raddockzone runat="server" id="RadDockZone161" FitDocks="true" width="90%" MinHeight="200px" BackColor="Transparent" BorderWidth="1px" BorderStyle="1" BorderColor="Transparent" style="float:left;margin-right:15px; margin-bottom:15px;" HighlightedCssClass="MyHighlight">

 

 

 

<telerik:raddock runat="server" id="RadDock1611" title="Content" Width="100%" DockMode="Docked" Skin="Vista" EnableEmbeddedSkins ="false" Resizable="true">

 

 

 

<contenttemplate>

 

 

 

Content for check

</contenttemplate>

 

 

 

</telerik:raddock>

 

 

 

</telerik:raddockzone>

 

 

 

</telerik:raddocklayout>

 

Petio Petkov
Telerik team
 answered on 27 Apr 2009
2 answers
132 views
Hi there.
I used the the FAQ-article to check the file-size of an uploaded File on client-side.

The Code Snippet looks like this:
<telerik:RadCodeBlock ID="RadCodeBlock12" runat="server">     
     <script language="javascript" type="text/javascript"> 
function CheckUploadedFilesSize(progressArea, args) { 
            try { 
                
                alert(progressArea.Confirmed); // undef 
                alert(args.ProgressData);      // undef 
                if (!progressArea.Confirmed && args.ProgressData.RadUpload.RequestSize > 100000000) { 
                    alert('<asp:Literal runat="server" Text="<%$Resources:TextResources, ERROR_FILE_TO_BIG%>" />'); 
                   // document.close(); 
                    progressArea.cancelRequest(); 
                } 
            } catch (e) { 
                // Ignore... 
            } 
        } 
</script> 
    </telerik:RadCodeBlock> 
[...]
<form ...>
<RadFormDecorator... />
<RadScriptManager... />
<RadAjaxManager ... />
<RadAjaxPanel...>
[...]
<telerik:RadUpload ID="radUpload1" runat="server" ControlObjectsVisibility="ClearButtons" 
                         Culture="German"  
                         Language="de-DE" OverwriteExistingFiles="true" SkinID="Uploader" Width="100%" Height="100%" MaxFileInputsCount="5" InitialFileInputsCount="3" MaxFileSize="1048576" > 
                         <Localization Add="<%$Resources:TextResources, UPLOADER_ADD%>"  
                             Clear="<%$Resources:TextResources, UPLOADER_CLEAR%>"  
                             Select="<%$Resources:TextResources, UPLOADER_SELECT%>"  /> 
                        </telerik:RadUpload> 
                        <telerik:RadProgressArea Visible="true" runat="server" id="RadProgressArea1" /> 
                        <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" OnClientProgressUpdating="CheckUploadedFilesSize"/>
[...]
</RadAjaxPanel></form>
     
When calling the the JS-Method by OnClientProgessUpdating-Event in RadProgressArea (like suggested in the FAQ-Article) args.progressData is undefined. When calling the Method from RadProgressManager args.progressData is defined and the messagebox is shown when the file is to big. Sadly, progressArea.cancelRequest does not to work because progressArea is undefinded (in both cases: calling from RadProgressManager as well as call from RadProgressArea)

Any clue what causes this problem?
Ole Albers
Top achievements
Rank 2
 answered on 27 Apr 2009
3 answers
238 views
Hi,

I am using Rad Editor in my application wherein, I require only some basic set of tools out of which these are not working at all.
Bullets(InsertUnorderedList), Numbering(InsertOrderedList), Indent, Outdend and Spell Checker(I already configured this through the Getting started" section of radeditor from telerik document.).
   In case of spell check I get this error as an alert box message "SpellChecker is not yet implemented".
In case of bullets and numbering I observed an odd behavior that when I change the alignment through alignments tools like to center and right it works and when i change it back to left aligned it doesnt work.

Please suggest/explain me as to where am I going wrong ASAP.
Here is my marked up text for rad editor.

                       <telerik:RadEditor NewLineBr="False" ID="radEditText" runat="server" EnableEmbeddedSkins="False" Skin="Default" Height="307px" Width="794px" meta:resourcekey="radEditTextResource1" ToolProviderID="">  
                           <Tools > 
                               <telerik:EditorToolGroup> 
                                   <telerik:EditorTool Name="FontName"  /> 
                                   <telerik:EditorTool Name="RealFontSize" Text="Size"/>  
                                   <telerik:EditorTool Name="ForeColor" /> 
                                   <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" /> 
                                   <telerik:EditorTool Name="Italic" ShortCut="Ctrl+I" /> 
                                   <telerik:EditorTool Name="Underline" ShortCut="Ctrl+U" /> 
                                   <telerik:EditorTool Name="JustifyLeft" /> 
                                   <telerik:EditorTool Name="JustifyCenter" /> 
                                   <telerik:EditorTool Name="JustifyRight" /> 
                                   <telerik:EditorTool Name="InsertUnorderedList" /> 
                                   <telerik:EditorTool Name="InsertOrderedList" /> 
                                   <telerik:EditorTool Name="Indent" /> 
                                   <telerik:EditorTool Name="Outdent" /> 
                                   <telerik:EditorTool Name="SpellCheck" /> 
                               </telerik:EditorToolGroup> 
                           </Tools>                             
                           <Content></Content>  
                       </telerik:RadEditor> 


Thanks

Rumen
Telerik team
 answered on 27 Apr 2009
4 answers
159 views
Hi Telerik Team,
 I have used the RadDock example to open a popup from my scheduler control. The example from Live Demos works fine but when I integrated the example in my website it is giving the error: 'null' is null or not an object.
I am able to bind the data into the scheduler and am able to view the data. But when I try to click on the control, this error comes up. Subsequently when i click on the control, nothing happens.
Also I have put my own controls in the ContentTemplate section of the RadDock.

Please advice me what I may be missing.

Regards,
Abhishek
Abhishek Dixit
Top achievements
Rank 1
 answered on 27 Apr 2009
1 answer
183 views

HI,

I have an aspx page that has a table of  both html checkboxes and various asp server controls (some of which are also check boxes).  I gave each of the controls an id of btn_1 thru btn_52.  btn_1 thru btn_32 are the html checkboxes.  btn_33 thru btn_52 are the server controls.  I migrated the table from the aspx to a user control.  I then placed the user control within a raddock that resides on a different aspx. I have a few javascript functions (contained in the user control ascx file) that manipulates attributes of the controls once rendered on the client.  Now that the controls are contained within a user control that is contained within a raddock, I realize that I have to do some drilling down to get a reference to the server side controls on the client. References to the HTML controls do not seem to be a problem.  For example:  I can obtain a reference to btn_1 (an html checkbox) via: var oChk = document.getElementById('btn_1').  But if I want to get a reference to btn_33 ( a server side checkbox), I have to do it with:
 var oChk = document.getElementById("RadDock1_C_ToothPicker1_" + 'btn_33'). I figured this out by "viewing the source code" after the page was rendered.  Is there a more genric way to do this?  I cannot always be certain that my instance of raddock will always be RadDock1 on any given page.  I cannot be certain that my instance of my user control will be ToothPicker1 on any given page.

below please find a sample of my javascript from this project.
<pre>
function

 

AllClear(oButton) {

 

 

 

// adult teeth

 

 

 

var tt = 0;

 

 

 

for (tt = 1; tt <= 32; tt++) {

 

 

 

var oChk = document.getElementById('btn_' + tt)

 

oChk.checked =

 

false;

 

 

}

 

 

// baby teeth

 

 

tt = 0;

 

for (tt = 33; tt <= 52; tt++) {

 

 

 

var oChk = document.getElementById("RadDock1_C_ToothPicker1_" + 'btn_' + tt)

 

 

 

 

 

 

oChk.checked = false;

 

 

}

 

return false;

 

}

</pre>

 

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 27 Apr 2009
2 answers
203 views
I have 4 tap strips A,B,C & D.When I click on A - it should display my custom controls within A,similarly B should display its own custom controls  followed by C and D however all the tapstrips displays only custom controls of A. 

Am I missing something??
Princy
Top achievements
Rank 2
 answered on 27 Apr 2009
2 answers
118 views
Hello,
I just download telerik tools for Ajax Asp.net Controls, I'm using RadGrid, and binding it inside the code to my custom object, the first level of hierarchy working fine and I can see the data, once I select a record and get it is id I rebind the data from the same table using parent ID, the detailed GridTableView is not binding any data even I can see the data comming from my object.
here is the code below the asp.net and code behind:

 <telerik:RadGrid  OnDetailTableDataBind="RadGrid1_DetailTableDataBind"  ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
        AllowPaging="True" AllowSorting="True" GridLines="None" ShowGroupPanel="True"
        Skin="Forest" AutoGenerateColumns="False">
        
        <mastertableview datakeynames="CabinetID">
            <DetailTables>
                <telerik:GridTableView runat="server">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="CabinetID" Name="Drawer" Width="100%" runat="server">
                        <Columns>
                                    <telerik:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton"
                                        DataField="Name">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn SortExpression="Description" HeaderText="Discription" HeaderButtonType="TextButton"
                                        DataField="Discription">
                                    </telerik:GridBoundColumn>
                               
                                </Columns>
                            <RowIndicatorColumn>
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn>
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                        </telerik:GridTableView>
                    </DetailTables>
                    <ExpandCollapseColumn Visible="True">
                    </ExpandCollapseColumn>
                </telerik:GridTableView>
            </DetailTables>
            <expandcollapsecolumn visible="True">
            </expandcollapsecolumn>
            <Columns>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name"
                    SortExpression="Name" UniqueName="Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Description" HeaderText="Description"
                    SortExpression="Description" UniqueName="Description">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CreateDate" DataType="System.DateTime"
                    HeaderText="CreateDate" SortExpression="CreateDate" UniqueName="CreateDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UserID" HeaderText="UserID"
                    SortExpression="UserID" UniqueName="UserID">
                </telerik:GridBoundColumn>
            </Columns>
        </mastertableview>
        <ClientSettings AllowDragToGroup="True">
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        
    </telerik:RadGrid>

        protected void RadGrid1_DetailTableDataBind(object source,
                      GridDetailTableDataBindEventArgs e)
        {
            // make sure this is this is the right detail table
            if (e.DetailTableView.DataSourceID == "")
            {
                GridDataItem masterItem = (GridDataItem)e.DetailTableView.ParentItem;
                MyObject.UserID = HttpContext.Current.User.Identity.Name;
                MyObject.ID = Convert.ToInt32(masterItem.GetDataKeyValue("ID"));
               BusinessObject[] list = service.GetHierarchy(MyObject);
                e.DetailTableView.DataSource = list;
            }
        }


Nabeel
Top achievements
Rank 1
 answered on 27 Apr 2009
3 answers
202 views
Is there a way I can get at a treeview context menu client side outside of any treeview specific events?
on page load i want to grab the treeview context menu and hide some items if necessary.

or do i use a radcontext menu separate from the tree and show that

i'm trying this

        Sys.Application.add_load(function() {
            //determine if user has permission.
            if (!allow('Something')) {
                $find('myTelerikToolbar1').findItemByValue('something').hide();      //THIS WORKS!!
                $find('tvContext').findItemByValue('something').hide();                    //THIS DOESN'T
            }
        });


regards
towpse
Top achievements
Rank 2
 answered on 27 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?