Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views

Hi! I need show words with using accents in the head name columna, for example: Código, Dirección.

My problem is the radgrid, show this Dirección.


Thank your for the help!


Best Regards
Briayan
Yavor
Telerik team
 answered on 07 Oct 2009
3 answers
185 views
Hi All,

I've tried it all as per the forums and demos but,..??  I just can't get the RadAjaxManager's  AjaxRequest ex the RadWindow's onclientclose event to fire.
Any ideas, have i missed something dumb??
Telerik version is 2009.1 


I have

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"

 

 

onajaxrequest="RadAjaxManager1_AjaxRequest"

 

 

Style="position: relative"

 

 

DefaultLoadingPanelID="RadAjaxLoadingPanel1">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="aspNavPanel" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

The aspNavPanel (the updated control) is an ASP panel inside a radsplitter which wraps my Navigation RadPane and it's dbound radmenu.
The javascript is ( within the Body of the form.)

 

 

<telerik:RadCodeBlock ID="radcodeblock1" runat="server">
<script language="javascript" type="text/javascript">

 

 

 

 

 

 

 

 

    function OnClientClose()

 

    {

        $find(

"<%=RadAjaxManager1.ClientID%>").ajaxRequest();

 

 

    } ; 

 

 

    function Login()

 

    {

 

        if (<%= Show %> == true)

 

        {

 

            var urlExtn = "ms=" + new Date().getTime();

 

 

            var oWnd = radopen("Forms/Auth/Login.aspx?" + urlExtn , "Login");

 

            oWnd.add_close(OnClientClose);

        }

    };

 

 

</script>

 

 

</telerik:RadCodeBlock>

i have tried this as well

 

 

<telerik:RadWindowManager

 

 

ID="RadWindowManager1"

 

 

 

runat="server" >

 

 

 

 

 

 

 

<Windows>

 

 

 

<telerik:RadWindow

 

 

ID="Login"

 

 

runat="server"

 

 

 

Width="600px" Height="245px"  Top="250" Left="400" BackColor="lightgray"

 

 

 

 

 

 

Modal="true"

 

 

KeepInScreenBounds="true"

 

 

Overlay="true"

 

 

OnClientClose="OnClientClose">

 

 

 

</telerik:RadWindow>

 

 

 

</Windows>

 

 

</telerik:RadWindowManager>

and .cs is

 

 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

 

{

    BindMenu();

}


TIA
Neal

Georgi Tunev
Telerik team
 answered on 07 Oct 2009
1 answer
110 views
Hello

i use from rad 2008 Q2

my grid code is
aspx
<rad:RadGrid ID="RadGrid1" runat="server" PageSize="20" Width="500px" AllowPaging="True" 
                            OnNeedDataSource="RadGrid1_NeedDataSource" ItemStyle-Wrap="false" AllowSorting="true" > 
                            <MasterTableView  > 
                                <RowIndicatorColumn Display="true" Visible="true">  
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                    <ItemStyle Width="20px"></ItemStyle> 
                                    <FooterStyle Width="20px"></FooterStyle> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                </ExpandCollapseColumn> 
                            </MasterTableView> 
                        </rad:RadGrid> 

but row indicator not shown

thanks
Ali
Tsvetoslav
Telerik team
 answered on 07 Oct 2009
1 answer
154 views
This is probably something very simple, but I seem to be missing it.

  I have a master page that defines the RadAjaxManager and RadAjaxLoadingPanel.  My detail page employs a RadAjaxManagerProxy that does not specify the loading panel.  However, since it's just a proxy, the proper loading panel, defined in the master, is shown. 
  On this same detail page I have a dynamically loaded user control.  In that user control I have defined another RadAjaxManagerProxy to ajaxify the controls within that user control.  The ajax seems to working nicely, but the loading panel does not appear.  Is there some reason for this? 
  I manually created another loading panel wihin the user control and specified it within the RadAjaxManagerProxy, but that didn't show either.
Mira
Telerik team
 answered on 07 Oct 2009
1 answer
59 views
Hi

I want to create a rad tree view programmtically in cs file, add the desired nodes to it programmatically, and then extract the HTML string  being rendered on the page in cs file.

And then use this html furher in my code.

I tried  using RenderControl to htmltextwriter, but it says that page is not available.


Kindly help.


 

hemant kumar
Top achievements
Rank 1
 answered on 07 Oct 2009
2 answers
86 views
Sir

I have a radscheduler and a rad calender , what i want is , i Have to highlight  all appointments dates  in the rad scheduler  to the calender

any one knws
Chinnu Prabhakar
Top achievements
Rank 1
 answered on 07 Oct 2009
4 answers
129 views

Hi All,

I have a custom web part which includes RAD Chart control.
Chart is created dynamically as per the web part configuration settings.

We have a data table as shown in below figure, which is used as chart's data source.

Status

ADMIN

ATL-API

BACKEND

DESKTOP

CLOSED

 

 

3

1

DEFERRED

 

2

12

NOT A BUG

1

12

23


I create a multiple series chart (Type - Bar).

For each column (column 1 and onward), a new series is created. Series name is same as column name.
Series DataYColumn is set as column name.

Name of first column is set in 'radChartObj
.PlotArea.XAxis.DataLabelsColumn' value.

Then data is bind with chart.

Please refer the following code for details:

***************************************************************************************************************************

// Set chart's skin

radChartObj.Skin = "Vista";

radChartObj.Width =  new Unit("600 px");

// Set Chart's attributes. 

radChartObj.AutoLayout = true;

radChartObj.IntelligentLabelsEnabled = true;
radChartObj.DefaultType
 = ChartSeriesType.Bar;

// Set chart's data source.

radChartObj.DataSource = chartingDataTable;
 

// Set chart's x-axis data labels column name. 
radChartObj.PlotArea.XAxis.DataLabelsColumn = chartingDataTable.Columns[0].ColumnName;

// For each column (column 1 and onward), add a new series.

for (int colIndex = 1; colIndex < chartingDataTable.Columns.Count; colIndex++)

{

        string columnName = chartingDataTable.Columns[colIndex].ColumnName;

       // Prepare chart series name.

        string seriesName = columnName;

         // Create chart series.

        ChartSeries chartSeriesObj = new ChartSeries(seriesName); 


       // Set chart series' type and its DataYColumn name.
        chartSeriesObj.Type = ChartSeriesType.Bar; 
       chartSeriesObj.DataYColumn = columnName;

        // Set chart series' tooltip.

        chartSeriesObj.ActiveRegionToolTip = "#SERIES: #Y";

        // Set chart series' empty value mode as 'Zero'. 

        chartSeriesObj.Appearance.EmptyValue.Mode = Telerik.Charting.Styles.EmtyValuesMode.Zero; 

        // Add chart series to chart object.
 

         radChartObj.Series.Add(chartSeriesObj);  

}

// Bind data with chart. 

radChartObj.DataBind();

***************************************************************************************************************************

If i create a multiple series chart for more values (like 12 series) i.e. data table has more than 10 columns.
Also, first column of data table has 8-9 values.
Then X-Axis labels overlap each other.

If i set 
radChartObj.AutoTextWrap = true, so that X-Axis labels do not overlap each other, then Web Part page in which my web part is added, takes too much time to load the page and finally, Request Timed Out error occurs.

If i increase the time out value, then page is loaded successfully but it takes a lot to load.
Page should not take more time to load.

Please suggest a solution and let me know why page takes too much time to load if data table size increases.

LJ
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
775 views
I'm trying to fire the button click function while pressing enter on a text box. But the "delete" button in the grid fires instead of the link button. I tried using default button option, onkeypress event, but nothing works. Here is the code

  <script type="text/javascript">
     function KeyEnter(sender, eventArgs)
    {
       var c = eventArgs.get_keyCode();
       if (c == 13)
       {   
          __doPostBack('btnSearch.ClientID','');
       }      
    }
</script>

<asp:Panel ID="p1" DefaultButton="btnSearch" runat="server">
Search:  <telerik:RadTextBox ID="cbForms" runat="server">
                                          <ClientEvents OnKeyPress="KeyEnter" />
           </telerik:RadTextBox>
 <br/>                              
<asp:LinkButton ID="btnSearch" runat="server" CssClass="searchBtn"
                                                    Text="Search"  style="float:left" CausesValidation="true" onclick="btnSearch_Click"
                                                   ></asp:LinkButton>
                                                    <asp:LinkButton ID="btnClear" runat="server" CssClass=" cancelBtn" Text="Clear" style="float:right;margin-right:25px" OnClick="btnClear_Click"></asp:LinkButton>                                                  
                            </asp:Panel>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" >
                    <div >
                       <telerik:RadGrid ID="uxForms" runat="server" Skin="WebBlue"
                            AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
                            onitemcreated="uxForms_ItemCreated"
                            ondeletecommand="uxForms_DeleteCommand"                    
                            onneeddatasource="uxForms_NeedDataSource"
                            OnItemDataBound="uxForms_ItemDataBound"
                            width="550px"
                            OnPageIndexChanged="uxForms_PageIndexChanged"
                            PageSize="5" AllowPaging="True" AllowCustomPaging="True"    
                                                 
                            >
                           <MasterTableView Name="Forms" DataKeyNames="FormID" CommandItemDisplay="Top" >                          

                               <RowIndicatorColumn>
                                   <HeaderStyle Width="25px" />
                               </RowIndicatorColumn>
                               <ExpandCollapseColumn>
                                   <HeaderStyle Width="25px" />
                               </ExpandCollapseColumn>
                               <CommandItemTemplate>
                                <div style="float:left;">
                                    <asp:Image ID="AddRecord" runat="server" ImageUrl="/admin/images/AddRecord.gif"  AlternateText="Add Record" />
                                    <asp:HyperLink ID="uxInsertLink" runat="server">Add New Form</asp:HyperLink>
                                </div>
                                
                            </CommandItemTemplate>

                               <Columns>
                                    <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" ItemStyle-Width="30px" HeaderStyle-Width="30px">                                    
                                        <ItemTemplate>
                                            <asp:HyperLink ID="uxEditLink" runat="server"><asp:Image ID="EditRecord" runat="server" ImageUrl="/admin/images/Edit.gif" AlternateText="Edit Form" /></asp:HyperLink>
                                        </ItemTemplate>
                                        
                                        <ItemStyle Width="25px" />                                
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="FormID" UniqueName="FormID" Display="false" />                              
                                   
                                    <telerik:GridButtonColumn ConfirmText="Delete this form?" ButtonType="ImageButton" ImageUrl="/admin/images/Delete.gif" CommandName="Delete" Text="Delete Form" UniqueName="DeleteColumn">
                                        
                                        <ItemStyle HorizontalAlign="Center" />
                                        <ItemStyle Width="25px" />
                                    </telerik:GridButtonColumn>

                               </Columns>
                           </MasterTableView>
                           <FilterMenu EnableTheming="True" Skin="WebBlue">
                               <CollapseAnimation Duration="200" Type="OutQuint" />
                           </FilterMenu>
                           <PagerStyle Mode="Slider" />
                        </telerik:RadGrid>
                        
                    </div>
                </telerik:RadAjaxPanel>

      CS File:
protected void Page_Load(object sender, EventArgs e)
        {
 this.Page.Form.DefaultButton = btnSearch.ClientID;
}
            



Sebastian
Telerik team
 answered on 07 Oct 2009
2 answers
95 views
Guys,

I need to build a radgrid which has different levels of hierarchy for different parent rows. That is, I would not know at design time weather a particular parent grid item has a child or not. I don't even know how many levels of child grids a parent grid item has.

So basically my question is how do I create a grid with just a master view and then add child grid view items when the user tries to expand the grid item ? Note that the child itself might be expandable. The level of depth is unknown and the only way to reach the final depth is to keep drilling in until the child is not expandable.


See the attached image for details.

Thanks,
Pavan.
Iana Tsolova
Telerik team
 answered on 07 Oct 2009
1 answer
528 views
Hi,

I have radgrid. Inside grid i have radtabstrip. And also i have table bool field called  NewDoc. When a newdoc= True i want hide 2nd tab of tabstrip.

How can i do that?

lakmal
Princy
Top achievements
Rank 2
 answered on 07 Oct 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?