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

I'm trying to add a previous and next button outside of the grid. I'm having some problems doing that. Can somebody give me some direction on how this is done?

Functionality:
If next button is pressed, the next record after the selected record is picked.
If previous button is pressed, the previous record from the selected record is picked.

Thank you,
-Tesh
Hitesh
Top achievements
Rank 1
 answered on 02 Apr 2012
1 answer
68 views

Hi  ,
I have a image control inside the RadDock and Problem is image size is large , then Scrolling coming for RadDock. Is there any property to Autofit the image inside the RadDock. Please help

Thanks in Advance
Jesmon Joseph

Slav
Telerik team
 answered on 02 Apr 2012
18 answers
220 views
Hi.
I have followed this example to use asp.net validation controls inside GridTemplateColumns:
http://www.telerik.com/help/aspnet-ajax/grid-validation.html

I am using the following settings for the MasterTableView:
<MasterTableView EditMode="EditForms" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage"> 

But when both insert and editable rows are open, the validation executes for all of them. Am I the only one with this problem, or is this a known problem?

Please let me know if my explanation is insufficient.
Andrey
Telerik team
 answered on 02 Apr 2012
6 answers
171 views
I have a chart.  If scrolling is turned off, I can display short time with a 90 degree rotation on the x axis.  As soon as I turn on scrolling, the x axis text disappears.

<telerik:RadChart ID="RadChart1" AutoLayout="true"
        runat="server" Width="495px" 
        Skin="Mac">
    <ClientSettings EnableZoom="false" ScrollMode="None" XScale="2" />       
    <ChartTitle>
        <Appearance Dimensions-Margins="4%, 10px, 14px, 6%">
            <FillStyle MainColor="">
            </FillStyle>
        </Appearance>
        <TextBlock>
            <Appearance TextProperties-Color="White"
                TextProperties-Font="Verdana, 14pt">
            </Appearance>
        </TextBlock>
    </ChartTitle>
    <Legend>
        <Appearance Dimensions-Margins="1px, 2%, 12%, 1px">
            <ItemTextAppearance TextProperties-Color="White">
            </ItemTextAppearance>
            <FillStyle GammaCorrection="False" MainColor="37, 255, 255, 255">
            </FillStyle>
            <Border Color="76, 255, 255, 255" />
        </Appearance>
        <TextBlock>
            <Appearance Position-AlignedPosition="Top" TextProperties-Color="LightSkyBlue">
            </Appearance>
        </TextBlock>
    </Legend>
    <PlotArea>
        <Appearance Dimensions-Margins="18%, 24%, 22%, 10%">
        </Appearance>       
        <XAxis LayoutMode="Inside">
            <Appearance ValueFormat="ShortTime" Color="Black">
                <LabelAppearance RotationAngle="90"></LabelAppearance>
            </Appearance>
        </XAxis>
    </PlotArea>
</telerik:RadChart>

Any help will be greatly appreciated. Thanks
Karuna
Top achievements
Rank 1
 answered on 02 Apr 2012
2 answers
69 views
Hi telerik:

RadGrid can't  turn page . this is why?

Thank you.
Eyup
Telerik team
 answered on 02 Apr 2012
3 answers
99 views
Hello,

There's a programmatically created control

[ClientScriptResource("MyControls.ImageControl", "MyControls.ImageControl.js")]
public class ImageControl : Panel, IScriptControl
{
  private RadAsyncUpload AsyncUpload;
  
  protected override void OnInit(EventArgs e)
  {
    base.OnInit(e);
    AsyncUpload = new RadAsyncUpload();
    AsyncUpload.OnClientAdded = "Added";
  }
}


JS>
Type.registerNamespace("MyControls");
MyControls.ImageControl = function () {
}
MyControls.ImageControl.prototype = {
  Added: function (sender, args) {
            alert('bla');
        },
}

MyControls.ImageControl.registerClass('MyControls.ImageControl', System.Web.UI.WebControls.Panel)


At execution Time I get "Added is not defined" from here:
Sys.Application.add_init(function() { $create(Telerik.Web.UI.RadAsyncUpload, {...}

Please help me.
Max
Top achievements
Rank 1
 answered on 02 Apr 2012
1 answer
69 views
I have a RadGrid in a page.It has predictive type ahead for filtering + also has colour coding for each item in the grid.The grid also has a button for each of its items.
Since the grid is heavy , when the page is first opened and a user immmediately clicks on the button next to the any item , the grid collapses. I tried debugging this scenario and found that it was not hitting the item command on the button click in this scenario. Thus I concluded that it can be due to the fact that the grid is not completely loaded. Although this occurs infrequently.
Another situation also comes up when the page is just loaded and the user clicks on the filter to see the options available in it. In this case also it gives some error.The occurence of this error is alo not very frequent.
These scenarios only occur in case when the page is just opened.
No such cases come up when after the page is opened and the prepopulated grid is again populated with some search result i.e after a postback.

Tsvetoslav
Telerik team
 answered on 02 Apr 2012
1 answer
122 views
Hi,

I have a self-referencing grid.  I'm declaring it and configuring it all in the aspx declaration and binding it via the "rebind"-"needs-data" approach.   It works fantastic.

The grid is initialized with a large data set (using the HierarchyLoadMode="ServerOnDemand") mode, and I have some PreRender code that expands the first 2 levels of the hierarchy.

Now the user can filter data, we are not using the grids filter but re-querying the database and returning a new dataset and rebinding to the grid.  If that dataset contains less than 20 records, the user wants all the nodes expanded by default, otherwise only the first 2.

I've tried several approaches: 
1.) Expanding in pre-render.  Doesn't work, only 2 sub-layers have data.
2.) changing HierarchyLoadMode to "ServerBind" and expanding in Pre-Render using a recursive expand function (code listed below)   Seems to work until the 4th sub-level, after the 4th sublevel the item.ChildItem.NestedTableViews.count is 0, even though I know there are 6 levels in the data set.

My next step is to try it with HierarchyLoadMode = "client" and my last ditch effort to dynmically build the grid for every request.  any guidence would be appreciated.



protected void RadGrid1_PreRender(object sender, EventArgs e)
        {

            if (ExpandAll)
            {
                RadGridExpandHierarchy(RadGrid1.Items);

            }
}

        private void RadGridExpandHierarchy(GridDataItemCollection items)
        {
            foreach (GridDataItem item in items)
            {
                if (item.GetDataKeyValue("IsPolicyRow").ToString()=="0" && item.ChildItem != null && item.ChildItem.NestedTableViews != null && item.ChildItem.NestedTableViews.Count() > 0)
                {
                    GridTableView childtableView = (GridTableView)item.ChildItem.NestedTableViews[0];
                    RadGridExpandHierarchy(childtableView.Items);
                }
                if (item.CanExpand && item.GetDataKeyValue("IsPolicyRow").ToString() == "0")
                    item.Expanded = true;

            }

        }
Tsvetina
Telerik team
 answered on 02 Apr 2012
1 answer
109 views
Greetings,

I have an issue with the DateTimePicker in Google Chrome 17.0.963.83 m and Rad AJAX for ASP.NET 2011.1.315.35 and it's that the calendar popup is displaying far from the input field. Check the attached image.

Thanks in advance

<div id="P5appfield017" class="appfield01">
    <telerik:RadDatePicker
ID="P5textfield4" runat="server" Width="150px" Calendar-CssClass="input_date" DateInput-CssClass="input_date" CssClass="input_date" Culture="es-CO" MinDate="01/01/1900" MaxDate="12/31/2100" >

                           
<DateInput ID="DateInput1" runat="server" Width="150px" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" ToolTip="Seleccionar fecha en calendario"  ></DateInput>
                            <DatePopupButton ImageUrl="/Formulario/icons/calendar.png" HoverImageUrl="/Formulario/icons/calendar.png" />
                        </telerik:RadDatePicker>
                        <asp:Label ID="P5lblP5textfield4" class="input01e" runat="server" Text="Ingrese Fecha de expedición" ForeColor="Red" Visible="false"></asp:Label><br />
                        <br />
</
div>
Tsvetina
Telerik team
 answered on 02 Apr 2012
5 answers
141 views
I have a custom provider, and in the case where we are creating a new file, I would like to append the current search pattern if the current pattern looks like a file extension and the current file does not have a file extension.  To do this, I need to get the current search pattern from the RadFileExplorer in the code behind.
John
Top achievements
Rank 1
 answered on 02 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?