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

Where can I get an example of nice clean model web.config file for everything required to support
the Q2 2010 release on IIS6 (not IIS7), and asp.net 4.0 ?

I was thinking of generating a new VS 2010 web project to create this but my local machine is
running IIS7, whereas the remote server is running IIS6, and the requirements are different
it seems.

Thanks

Clive

Sebastian
Telerik team
 answered on 07 Sep 2010
1 answer
74 views
In the top part of this page there is the navigator menu, it is nice.
http://img831.imageshack.us/img831/2017/teleriknavigatormenu.jpg

I guess is a tabstrip control with nice css.
The question is - I apologize for it - when you click the arrow it popups a different menu
is it part of the tabstrip? is it a layer? a different control?
That's puzzling me, how did you made the whole menu?

Thank you
Princy
Top achievements
Rank 2
 answered on 07 Sep 2010
2 answers
60 views
Hi

Can anyone tell me where to look for a solution to this problem.
When googlebot visits one of my pages it creates an exception error. the report I get
says
Message:      Unable to cast object of type 'System.Int32' to type 'System.Collections.Generic.Dictionary`2[System.String,System.Object]'.
Source:       Telerik.Web.UI
Form:         ctl00_ctl00_RadScriptManager1_HiddenField=&__EVENTTARGET=&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%  etc etc

QueryString:  Ref=gaw

Target site:  Boolean LoadPostData(System.String, System.Collections.Specialized.NameValueCollection)



but the page itself works fine for human visitors. I am concerned that for some reason Google won't index this page.

Can anyone shed some light?

Thanks

Clive

Thanks

Clive
Lini
Telerik team
 answered on 07 Sep 2010
1 answer
110 views
hi
when i update row
 editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["GroupName"].ToString();
get previous data not update value
please help
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2010
1 answer
58 views
Hi Telerik,

I want to display the selected day on the RadCalendar Title Bar.

Similar to 21st Month Label in titlebar of Attached Image.

Please help me to sort out this issue.

Dimo
Telerik team
 answered on 07 Sep 2010
3 answers
677 views
Hye,

I am using the RadGrid v2010.2.826.20 and I notice a strange behavior.
The RadGrid works when it is linked on a DataSource by its ID
But when I linked the RadGrid by the DataSource (the object reference ), the Column sorting doesn't work.
 

Common part
<asp:SqlDataSource runat="server" ID="SqlDataSource2"
    ConnectionString="<%$ ConnectionStrings:DEV_3.1ConnectionString %>"
    OldValuesParameterFormatString="original_{0}"
    SelectCommand="SELECT * FROM [M9999_Table]">
</asp:SqlDataSource>
 
<telerik:RadGrid ID="RadGrid2" runat="server" >
    <MasterTableView AllowSorting="true">
     </MasterTableView>
</telerik:RadGrid>

A) The code that works.
protected void Page_Load(object sender, EventArgs e)
{
    this.RadGrid2.DataSourceID = this.SqlDataSource2.ID;
}

B )The code that doesn't work.
protected void Page_Load(object sender, EventArgs e)
{
    this.RadGrid2.NeedDataSource += new GridNeedDataSourceEventHandler(RadGrid2_NeedDataSource);
}
 
void RadGrid2_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
    this.LoadData();
}
 
private void LoadData()
{
    this.RadGrid2.DataSource = this.SqlDataSource2;  
}




I attached handlers on the Selected and Selecting events od the SqlDataSource.
When I click on a column header in order to sort it.
By Method A : Two events are raised :
 - Selecting with a correct SortExpression.
 - Selected with a correct SortExpression.

By Method B : Four events are raised :
 - Selecting with a correct SortExpression.
 - Selected with a correct SortExpression.
and then
- Selecting with an empty SortExpression.
- Selected with an empty SortExpression.


I guest do something wrong, but I don't know what.

Any help will be appreciated.


Iana Tsolova
Telerik team
 answered on 07 Sep 2010
9 answers
262 views
I have a Grid to which I have added a context menu that appears when the OnRowContextMenu event fires.  This works perfectly on Windows systems, but on a Mac (using Firefox), the OnRowContextMenu event doesn't seem to fire at all.  I've tested several of the other ClientEvents, and they all seem to fire.  Is this a problem with Mac, or am I doing something wrong?

Thanks for any help.
Pavel
Telerik team
 answered on 07 Sep 2010
1 answer
473 views
Hi, i'm trying to use RadAjaxLoadingPanel, with the IsSticky property set to true.

The loading panel shows up just fine, but under my RadMenu instance, and any other RadWindow instance.

Inside this webpage: http://www.telerik.com/help/aspnet-ajax/controlling-absolute-positioning-with-zindex.html telerik says that LoadingPanel's z-index is 90000, RadWindow is 3000 and RadMenu is 7000.
If that is true can you tell me why my LoadingPanel keeps under those controls(Menu and Window)?

If I set the IsSticky property to false then the LoadingPanel goes over RadMenu and RadWindow, but it doesn't cover all my page, and I need it to cover it ALL, not just a piece of it.

I need one of these two solutions:

1) You tell me how to make the Loading panel cover all my page when IsSticky is set to false. When I say all my page, I really mean the ENTIRE space, even if I drag my RadWindow down and the space grows up.
2) You tell me how to force the Sticky LoadingPanel z-index so it really work over RadWindow and RadMenu;

Hope seeing any answer soon.

Thanks!

Cezar
Dimo
Telerik team
 answered on 07 Sep 2010
5 answers
349 views

  protected void hyGeneratePdf_Click(object sender, EventArgs e)
        {
            LinkButton linbutton = (System.Web.UI.WebControls.LinkButton)sender;
            HttpContext context = this.Context;
            string fileName = linbutton.Text.Trim();
            string pdfFolderPath = Path.Combine(Server.MapPath("PDF/"), Session["UserName"].ToString());
            string filePath = Path.Combine(pdfFolderPath, fileName);
            string needZipFiles = filePath;
            byte[] zipFileContent = DownLoadSelectFile.createZip(context, needZipFiles, 1);
            if (zipFileContent != null)
            {
                _downPdfFile(zipFileContent,fileName, 1);
            }
        }
when  implementing this code there has en error:The name 'hyGeneratePdf' does not exist in the current context
Can you help me ,where is worng?
this is my code behind:
<asp:Panel ID="panelPdfList" runat="server" ScrollBars="Auto" Height="304px" Width="430px"
                                                valign="top">
                                                <telerik:RadScriptBlock ID="rsbDownLoad" runat="server">
                                                    <script type="text/javascript">
                                                        function RequestStart(sender, args) {
                                                            if (args.get_eventTarget() == "<%=hyGeneratePdf.UniqueID %>",) {
                                                                args.set_enableAjax(false);
                                                            }
                                                        }
                                                    </script>
                                                </telerik:RadScriptBlock>
                                                <telerik:RadAjaxPanel ID="rapGridView" runat="server">
                                                    <asp:GridView ID="grvPdfFileList" runat="server" AutoGenerateColumns="False" GridLines="None"
                                                        Width="400px" ShowHeader="False" OnRowDataBound="grvPdfFileList_RowDataBound">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <EditItemTemplate>
                                                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                                                </EditItemTemplate>
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="chkIsChecked" runat="server" OnCheckedChanged="chkIsChecked_CheckedChanged" />
                                                                </ItemTemplate>
                                                                <ItemStyle Font-Names="Calibri" Font-Size="11pt" HorizontalAlign="Left" Width="40px"
                                                                    Height="15px" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField>
                                                                <EditItemTemplate>
                                                                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                                                </EditItemTemplate>
                                                                <ItemTemplate>
                                                                   <telerik:RadAjaxPanel ID="rapLinkButton" runat="server" ClientEvents-OnRequestStart="RequestStart">
                                                                        <asp:LinkButton ID="hyGeneratePdf" CssClass="leftnav" Style="color: Black; font-family: Calibri;"
                                                                            runat="server" Text='<%#Eval("UserName") %>' OnClick="hyGeneratePdf_Click"></asp:LinkButton>
                                                                    </telerik:RadAjaxPanel>
                                                                </ItemTemplate>
                                                                <ItemStyle Font-Names="Calibri" Font-Size="11pt" HorizontalAlign="Left" Width="240px"
                                                                    Height="15px" />
                                                            </asp:TemplateField>
                                                            <asp:TemplateField>
                                                                <EditItemTemplate>
                                                                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                                                                </EditItemTemplate>
                                                                <ItemTemplate>
                                                                    <asp:Label ID="lblGenerateTime" runat="server" Text='<%#Eval("UserPassword") %>'></asp:Label>
                                                                </ItemTemplate>
                                                                <ItemStyle Font-Names="Calibri" Font-Size="11pt" HorizontalAlign="Left" Width="130px"
                                                                    Height="15px" />
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <HeaderStyle Height="0px" />
                                                        <RowStyle Height="10px" />
                                                    </asp:GridView>
                                                </telerik:RadAjaxPanel>
                                            </asp:Panel>
Diana
Top achievements
Rank 1
 answered on 07 Sep 2010
1 answer
87 views
Hello,

Column

A

Column

               B

 

 

 

protected void RadGrid1_ExcelMLExportRowCreated(object source, GridExportExcelMLRowCreatedArgs e)
    {
        if (e.RowType == GridExportExcelMLRowType.HeaderRow)
        {
            for (int i = 0; i < e.Row.Cells.Count; i++)
            {
                e.Row.Cells[i].Data.DataItem = e.Row.Cells[i].Data.DataItem.ToString().Replace("<br />", "\r\n");
            }
        }
    }

The above grid has 2 columns which are 'Column<br />A' and 'Column<br />B'.

When I export data using excelml, I replace '<br />' with '\r\n'. However it is not working.

How can I insert new line?

Thank you.

Minkyu Lee.
Shinu
Top achievements
Rank 2
 answered on 07 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?