Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
161 views
I have few Buttons in my application and I want them to have a default color style, hover style and active style.  When the user clicks the button, I want it to  have a red background untill the request is processed and changes are made in the aplication.Using FormDecorator I could only implement hover style and default style but not active style. Is it possible to style button with certain background untill request is ended?

I donot want to use progress bar to let the user know that request is being processed, I just want the button to have a different color when it is in active phase.

Any Idea?

Thanks
Prava
Bozhidar
Telerik team
 answered on 27 Jul 2010
1 answer
101 views
When my page loads the insert template is visible...how do I go about changing that?  I just want to show the list of items, and if a user is an admin show them a button to enable the insert.

Thanks,
Steve
Rosen
Telerik team
 answered on 27 Jul 2010
3 answers
945 views

Need help with the following:.

I am loading a treeview on pageload.
The user clicks on a button... at serverside I want to insert several new nodes to a Parent Node only if the child nodes does not already exists.

Now I can find the parent node... it exists.  By doing the following I thought I get a count of the "child" nodes.  I am getting 0 (zero) count event though that node (that I found) has child nodes.

 

pNode = rtv.FindNodeByValue(nodeVal.ToUpper(),

true);

 

 

if (pNode != null)

 

{

    int count =  pNode.Nodes.Count

 

 

}

How can I determine if a node has child nodes serverside?
Thanks.

Veronica
Telerik team
 answered on 27 Jul 2010
3 answers
341 views
Hi,

I would like to display the data in radgrid which will pick the xml data.

Following is my query:

I have a data in XML string in my code in the following format

<Customers>
<CustomerID>1</CustomerID>
<CustomerName>xxx</CustomerName>
<CustomerID>2</CustomerID>
<CustomerName>yyy</CustomerName>

</Customers>

I would like to display the above data in radgrid like following

CustomerID            CustomerName
1                              xxx
2                              yyy

I don't have the data in physical XML file and all the above data will in XML string.

I had a chance to look at the demo examples, unfortunately i could not find the solution.

Kindly help me...

If possible please post a sample code.

Thanks,
Shashi
Daniel
Telerik team
 answered on 27 Jul 2010
1 answer
205 views
With a standard multiline textbox I can add

onFocus='this.style.height=300px' 
onBlur='this.style.height=100px' 


How do I acomplish this with the RadTextBox?

I setup a shared javascript function to handle the resizing of the RTB by passing a paramater, but I can't seem to pass parameters to it. 
function resizeRTB(obj, height, width)
{
obj._originalTextBoxCssText = "width:" + width + "px;height:" + height + "px;"; obj.updateCssClass();
}

If I do something like this, I get JavaScript errors because I'm trying to pass parameters to the function
<telerik:RadTextBox ID="rtbExample" runat="server" TextMode="MultiLine"  Width="550px" Height="150px" EmptyMessage="Example text..."  ClientEvents-OnFocus='resizeRTB(this,300,550);'  ClientEvents-OnBlur='resizeRTB(this,150,550);' />

I need one function to handle a whole set of dynamically created RadTextBoxes, so I need the function to be reusable. Could someone guide or point me to what I'm doing wrong here?
Pavel
Telerik team
 answered on 27 Jul 2010
1 answer
65 views
Hello,

Custom skin is not proper applied to Grid,FormDecorator for button,textbox,Calendar,Combobox etc... telerik control.I created skin from the http://stylebuilder.telerik.com/New.aspx.
I have post my issue on below link.Currently i used 2009.1.527.35 version.

http://www.telerik.com/community/forums/aspnet-ajax/style-builder/custom-skin-is-not-applied-proper-in-2009-1-527-35-telerik-version.aspx

pls help me.

Thanks
Jignesh Patel
Alex Gyoshev
Telerik team
 answered on 27 Jul 2010
1 answer
264 views
my client gave me the screen shot to make a pie chart like it shows in image13.jpg (image on right hand side).
Just want to clarify that 1,2,3 shown in the chart actually will replace "No status, Evication".

here is the sample data
     No Status:        10
     Eviction:        20
    Ready to Repair:        30
    Repairs:        40
    Ready to List:        50
    Listed:            60
    Listed-Back On The Market:        70
    Offers In:        80
    Pending Sale:        90
    Closing Documents In:        100
    Closed:        50
    Removed From Market:        33
    Litigation:        44
    TS Sale Rescission:        33


This is the code which I have written.
   Private Sub BuildChart()
        Dim radChart = New RadChart()
        radChart.ChartTitle.TextBlock.Text = "Active Property by status"
        radChart.Series.Add(BuildChartSeries())
        ChartDiv.Controls.Add(radChart)
    End Sub

    Private Function BuildChartSeries() As ChartSeries
        Dim chartSeries = New ChartSeries()
        Dim result As DataTable

        chartSeries.Type = ChartSeriesType.Pie
        chartSeries.Appearance.LabelAppearance.Visible = False
        chartSeries.Appearance.TextAppearance.Visible = False
        chartSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels

        result = WebPartBase.LoadActivePropertyByStatus()
        For i As Integer = 0 To (result.Rows.Count - 1) Step 1
            chartSeries.AddItem(CustomFunctions.HandleDBNULL(result.Rows(i)("count"), 0.0), CustomFunctions.HandleDBNULL(result.Rows(i)("SaleStatus"), ""))
        Next


        Return chartSeries
    End Function


and the output which is shown 12.jpg, way different then what my clients wants.

I am new to telerik chart control, so i am just throwing arrows in the dark.

could any one please help me out here.
 
Velin
Telerik team
 answered on 27 Jul 2010
4 answers
272 views
Hey guys,

i`m using the RadAsyncUpload control for the first time and wondered about an issue that appeared. 

First of all i`ve to say that the whole upload is working well even within ajaxyfied content. But there appeared one issue i wasn`t able to detect the issue.

For example there is my AsyncUpload sample code.

<telerik:RadAsyncUpload ID="rauImage"  
                            runat="server"  
                            AllowedFileExtensions=".jpg"  
                            MaxFileInputsCount="1"  
                            MaxFileSize="5242880"  
                            InitialFileInputsCount="1" 
                            OverwriteExistingFiles="true" 
                            TemporaryFileExpiration="05:00:00"> 
</telerik:RadAsyncUpload> 
 
Please notice that there is only one input field ony my page, because it is necessary that there is only once.
In all scenarios i`ve only have one input field.

Now i`ve tried to use the upload in the following scenario:

  • I`ve selected a file (file was written into the handler)
  • I`ve used the submit button for a postback

 The file was successfully uploaded to the handler and after a postback it was successfully stored on the server. 


After that i´ve tried the following scenario:

  • I`ve selected a file (file was written into the handler) (File1)
  • I`ve removed the file
  • I`ve now selected another file (file was written into the handler)(File2)
  • I`ve used the submit button for a postback

In this scenario the behaviour is like follows. The upload doesn`t store the current selected File (File2) it is storing the old File (File1) that i`ve already removed from the server.


I`ve wondered about the issue. Because if you are validating the selected file  and in case the file isn`t valid  you`ll have no chance to upload a second valid file because the second file is never being uploaded
. 
Are there any suggestions out there?

Thanks in advance.

Regards

Chris









Yana
Telerik team
 answered on 27 Jul 2010
1 answer
98 views
Hi there,

I am experiencing a bit of an annoying problem with the RadEditor at the moment, and was hoping that someone might know the problem here.

Basically, when I apply a header class to some text (in design view), all the style attributes of the header are visible in the design view except for the bottom margin. However, in preview view it looks exactly as it should do. This only seems to occur in IE, it displays correctly in design and preview view in FireFox (unfortunatly IE8 is the browser of choice here - not my decision).

Is there a known reason for this? This is kind of a must as the preview view should reflect the published page (where the bottom margin is displayed correctly as well).

It just seems to be that a headers bottom margin is not displayed in preview view in RadEditor in IE (8).

Thanks for your assistance.
Regards,
Scott
Rumen
Telerik team
 answered on 27 Jul 2010
3 answers
255 views
Hi,
Is there a way to find an item that is NOT part of the current page of the grid. (Using pager).
I'm using  "FindItemByKeyValue" but it returns NULL when the item I'm looking for is in another page.

Thanx  a lot!
Nikolay Rusev
Telerik team
 answered on 27 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?