Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
461 views
Hi

I've seen a few threads similar in the forums but not exactly what I want.
1) How do I set a minimum value greater than 0? Anything bigger is fine, eg: 0.1, 0.00756, 0.0000111. Currently I'm setting minvalue to 0.01, but that seems like a fudge to me.
2) If the user tries to enter a negative value it rounds it to the minimum value (ie 0.01). Can the input handle this to prevent negative numbers? I'd rather warn the user with an error message, or the current little warning symbol that flashes up. Then show a blank textbox rather than the minvalue.

Cheers,
Jeremy
Jeremy
Top achievements
Rank 1
 answered on 27 May 2011
0 answers
139 views
Hello,

i have a doubt regarding the radgrid.. i have stored the urls in the database (not Images using image data type).. so i need to retrieve the images in the rad grid.. is it possible to do so.. please help

I know that in normal asp grid there is a "DataImageUrlField" to identify the image url... is there any other way of doing this in the radgrid :)

---------------------------------------------------------
Solution...
Use the Image Column in the grid rather than the Binary Image Column
siddhartha
Top achievements
Rank 1
 asked on 27 May 2011
4 answers
529 views
Hi

Iam having trouble being able to assign a min and max value to my x axis. I have read multiple posts stating that you must set the following to enable you to define a min and max value which i define is server side code (vb.net):

XAxis.AutoScale = False
XAxis.MinValue = 1
XAxis.MaxValue = 120
XAxis.Step = 10

I have also tried using this instead of the above:

XAxis.AutoScale = False
XAxis.AddRange(1, 120, 10)

This is my mark up:

<telerik:RadChart ID="RadChart1" runat="server"
        Height="100px"
        Width="180px"
        ChartTitle-Visible="false"     
        Legend-Visible="false"
        SeriesOrientation="Horizontal" >
  </telerik:RadChart>

I define a datasource using a list of my custom objects which has 2 decimal values (depth - for the x axis, value - for y axis) and then i databind it.

My current list has 3 items,
Item 1: depth 1, value 50
item 2: depth 2, value 10
item 3: depth 3, value 30

Attached is the results:

I would like the xaxis (note horizontal series orientation - so the left axis) to display min value 1 and max value 120. How can i achieve then, what am i missing?

Cheers

Richard.

Richard
Top achievements
Rank 1
 answered on 27 May 2011
1 answer
85 views
Hi,

I am creating a grid dynamically on page init event. This dynamic grid  has template column with item template and edit template. Edit template has a RadComboBox. My grid renders correctly   but  it throws an error on  edit mode .
I have been looking for some sample code to create dynamic grid with edit template, can someone point me to these  samples?

Thanks,
Prava
Gimmik
Top achievements
Rank 1
 answered on 26 May 2011
0 answers
43 views
i'm having a strange issue. My code builds and executes fine, but when i click the release button to execute the confirmtext function, the string in the confirmtext value is in the wrong place. the text for each channelid should correspond to the channel id for the dataitem. instead the text is off by one. for example:

row 1    
releaseButton.confirmtext     
should be: channel 1 on 1.1.1.1 
actual: default text from grid definition

row 2
releaseButton.confirmtext     
should be: channel 2 on 1.1.1.1 
actual: channel 1 on 1.1.1.1 

row 3
releaseButton.confirmtext     
should be: channel 3 on 1.1.1.1 
actual: channel 2 on 1.1.1.1 

etc.

where am i going wrong?
protected void RadGrid1_ItemDataBound(object source, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        // retrieve the original values from the database
        DataSet dsOriginal = new DataSet();
        string strErrorText = string.Empty;
  
        GridDataItem dataItem = (GridDataItem)e.Item;
        string strChannelId = dataItem.GetDataKeyValue("ChannelId").ToString(); // RadGrid1.MasterTableView.DataKeyValues[e.Item.ItemIndex]["ChannelId"].ToString();
  
        this.GetChannelDetail(out dsOriginal, out strErrorText, strChannelId);
        DataTable dtOriginal = dsOriginal.Tables["Channel"];
        DataRow drOriginal = dtOriginal.Rows[0];
  
        GridColumn gridColumn = (GridColumn)dataItem.OwnerTableView.Columns.FindByUniqueName("columnRelease");
        (gridColumn as GridButtonColumn).ConfirmText = string.Format("Are you sure you want to release channel {0} on FMIS Server {1}?", Convert.ToString(drOriginal.ItemArray[2]), Convert.ToString(drOriginal.ItemArray[1]));
    }
}
areen
Top achievements
Rank 1
 asked on 26 May 2011
2 answers
59 views

In order to be 508 compliant, I have a RadDock with a TitlebarTemplate so that the title can be marked up as an h2.  Another 508 requirement is that when the dock is refreshed (using a button at the bottom of the dock), focus is set to the dock's title.  I haven't yet been able to achieve this, and was hoping somebody might be able to lend a hand.

ASPX:

<telerik:RadDock runat="server" ID="rdDock" DefaultCommands="None" EnableDrag="false">
    <TitlebarTemplate>
        <h2 runat="server" id="hTitle" class="rdTitle" tabindex="0">Dock Title</h2>
    </TitlebarTemplate>
    <ContentTemplate>
        <!-- Dock Content -->
        <!-- ... -->
                                          
        <!-- Refresh Button -->
        <asp:Button runat="server" ID="btnRefresh" Text="Refresh" />
    </ContentTemplate>
</telerik:RadDock>                        

VB:
Protected Sub btnRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRefresh.Click
    'Section 508 requires that focus is returned to the control
    'rdDock.TitlebarContainer.Controls(0).Focus()
    'rdDock.TitlebarContainer.Focus()
    hTitle.Focus()
End Sub

Please let me know if you have any thoughts on this.  Thanks!
Ryan
Top achievements
Rank 1
 answered on 26 May 2011
11 answers
265 views

Hello, 

I want to disable Add New Record and Refresh link which on the top of the RadGrid. Actually I have some limitations and so i can not implement ''CommandItemTemplate' to do this.

If there is any other way please guide me.

Thanks & Regards,
Hardik.

lakshmi
Top achievements
Rank 1
 answered on 26 May 2011
2 answers
116 views
hi

i have a grid having 14 columns, in order to avoid the page level scroll bar, i have set the scrolling at the grid level.

<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" ScrollHeight="420px"></Scrolling>

After setting the grid level scrolling; i can see the 9 columns of grid without scrolling, and rest of the columns by scrolling the grid's horizontal scroll bar. Up to here everything is fine. But when i do any operation on grid like sort/filter or edit or any kind of operation which require to send the ajax request or rebind the grid; the grid scrolling gets disturbed. After ajax request grid reappears with extra header column and blank grey area beneath that headers. to make it clear see the following distinction before the ajax request and after ajax request.

Before AjaxRequest of grid rebind
--------------------------------------------
Out of 14 columns 9 are visible(vertical scrollbar appears at column no 9); i can see rest of the columns(9 to 14) by(horizontal scroll bar) scrolling.
>> this is fine

After AjaxRequest of grid rebind
--------------------------------------------
i can see all 14 column headers without scrolling, eventhouth vertical scrollbar is still at column number 9. which result into the blank area under column header 9 to 14.

This problem is not seen when i set the UseStaticHeaders="false".

if require i can send you image; let me know from where can i post the image.
Katia
Top achievements
Rank 1
 answered on 26 May 2011
6 answers
288 views
Hi,

Whenever I use the radwindow to display a page with autosize="true" it always adds extra space to the right and bottom. Please see the attachement. The white part in the window is the content, the light grey is the excess space added. Its does this with all my pages, big and small. The amount of extra space is also variant.

I have tried changing the doctype definition to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I also tried adding this css to my pages:
body, form, html
 {
     height: 100%;
     margin: 0px;
     padding: 0px;
 }

Im using 2009.3.1208.35

Any suggestions?

Izak.
Danny
Top achievements
Rank 1
 answered on 26 May 2011
2 answers
47 views
I have an object/property called User.JobPosition where the JobPosition is a string.

I have a ComboBox that is bound to a sql datasource with AppendDataBoundItems set to True that selects from a lookup table of JobPositions.

Ho do I get the ComboBox to display the User.JobPosition. I have tried this and this:
ddlPosition.FindItemByValue(User.JobPosition.ToString))
ddlPosition.Items.Insert(0, New ListItem(User.JobPosition.ToString, User.JobPosition.ToString))
Neither of which work, whereas the native .NET dropDownList will allow something similar.
Thomas Derenthal
Top achievements
Rank 1
 answered on 26 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?