Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
143 views
I have a stability issue about the TabStrip,
normally the appearance is Normal Tab, but sometimes on the server the appearance is like Disorder TAB.

I think it happened when the server is busy or something related, cause it never happen on my local machine, or maybe some other reasons I don't know, and I have post a similar issue about the panel bar before, but seems this situation keeps happening, does any one know about this or has any way to tackle this problem? It really annoys when the screen is disordered.
MD
Top achievements
Rank 1
 answered on 19 Jan 2009
3 answers
556 views
We've got a PanelBar that is built dynamically from the code behind with values pulled from a database.  We're using the itemdatabound even to add a textbox control to each entry at the third level. This part is working great due to some excellent input from the Telerik support staff.

The idea now is for the user to enter scores into each textbox which are then saved when they click a save button. I'm having trouble figuring out how to access the dynamically built controls and then how to put it into a foreach loop so that we can save those values back to the database.

Trying to adapt the example from the Telerik help doesn't seem like it would work since the control is dynamically bult:
TextBox Score = (TextBox)RadScoringPanel.FindItemByValue("?").FindControl("?");

So for instance the panelbar looks something like this:
- Math Scores
--December
---John [text box]
---Mary [text box]
--January
---John [text box]
---Mary [text box]
-English Scores
--etc.

< - Save - >

So when the scores are entered and then the save button is clicked I need to retrieve them and then put them into a:
"foreach (e.item..." type loop but this is where we're stuck. Can't figure out how to retrieve the value and also how to identify each panel line item for the foreach loop statement. Just to make it a bit more complicated I need to also pull the ID/Value for each level of the hierarchy for the item so that we can save it appropriately.

For instance for John's December Math Score I would need the ID for "Math Scores" (level 1), the ID for "December" (level 2) and the ID for John along with the Value in the textbox so that we can associate the score correctly.

Any direction/pointers would be greatly appreciated.

thanks
Jeff
Top achievements
Rank 1
 answered on 19 Jan 2009
4 answers
138 views
I have a RadCalendar that is showing read only dates highlighted for events on the calendar.  I have it set to Preview presentationtype.  This works fine for the dates being static with no interaction, but the user cannot navigate in this mode.

Can someone suggest how to control this?

Thanks
Reid
Top achievements
Rank 2
 answered on 19 Jan 2009
3 answers
215 views
I've seen the client script solution of how to do this (calling get_ContentArea), but want to provide CSS that applies to the content area.

I've tried specifying a value for the ContentAreaCssFile property, but this doesn't prevent the other CSS files on the page being copied. Also, since my CSS file is the first <LINK>, some of my styles are not applied (they are overriden by later styles).

So, I'm either looking for a way to make my CSS file (specified by ContentAreaCssFile) to be listed last, or a way to prevent the CSS files on the page being copied to the content area.
Fabio Honigmann
Top achievements
Rank 2
 answered on 19 Jan 2009
1 answer
133 views
Hi,

     In the following code  I set the ajax for the panel and RadPanelBar but it's not working. But it cause  postback on RadPanelBar click.

what wrong in this code.


Default.aspx:

 <div> 
          
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="MenuRadPanelBar">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="MenuRadPanelBar" /> 
                        <telerik:AjaxUpdatedControl ControlID="panel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
         
        </telerik:RadAjaxManager> 
        <telerik:RadSplitter ID="RadSplitter1" BorderColor="White"  Height="100%" Width="100%" runat="server" Orientation="Vertical">  
            <telerik:RadPane runat="server" Width="210px"  ID="TopPane">  
               <telerik:RadSplitter ID="RadSplitter4" BorderColor="White"   runat="server" Orientation="Horizontal">  
                <telerik:RadPane ID="RadPane1" Height="100px"  runat="server">  
                    <asp:Button ID="Button1" runat="server"   Text="Button" onclick="Button1_Click" /> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitBar2" BorderColor="White"  Visible="false"  runat="server" /> 
                <telerik:RadPane ID="RadPane2" runat="server" > 
                   <telerik:RadPanelBar  Height="600px" Width="190px" ID="MenuRadPanelBar" runat="server" 
                                        Skin="Outlook" ExpandMode="FullExpandedItem"   
                        BackColor="#e8e8e8" onitemclick="MenuRadPanelBar_ItemClick">  
                                        
                                        <Items> 
                                            <telerik:RadPanelItem runat="server" Text="Manage" > 
                                                  
                                            </telerik:RadPanelItem> 
                                              
                                        </Items> 
                                        <ExpandAnimation Type="None" Duration="100"></ExpandAnimation> 
                                    </telerik:RadPanelBar>    
                </telerik:RadPane> 
                  </telerik:RadSplitter> 
            </telerik:RadPane> 
            <telerik:RadSplitBar runat="server" ID="RadSplitBar1" BorderColor="White"  Visible="false" /> 
            <telerik:RadPane runat="server" ID="MiddlePane">  
                <telerik:RadSplitter ID="RadSplitter2"  BorderColor="White"   runat="server" Orientation="Horizontal">  
                <telerik:RadPane ID="MiddleLeft" Height="100px"  runat="server">  
                  
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadSplitter3" BorderColor="White"   Visible="false"  runat="server" /> 
                <telerik:RadPane ID="MiddleRight" runat="server" > 
                    <asp:Panel ID="Panel1" runat="server">  
                      
                   <iframe id="load" runat="server"  ></iframe>   
                   </asp:Panel> 
                </telerik:RadPane> 
                </telerik:RadSplitter> 
             
            </telerik:RadPane> 
        </telerik:RadSplitter>    </div> 

Default.aspx.cs:
  protected void MenuRadPanelBar_ItemClick(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)  
    {  
        HtmlControl frame1 = (HtmlControl)this.FindControl("load");  
        frame1.Attributes["src"] = "Default2.aspx";  
 
         
 
    } 
Tsvetie
Telerik team
 answered on 19 Jan 2009
1 answer
106 views
Why cannot telerik chart handle "normal" dates as opposed to having to convert these to double?
Vladimir Milev
Telerik team
 answered on 19 Jan 2009
3 answers
211 views
because i have more than 40 columns on my grid, i can't do formatting at the server side one by one. I could but i have to find out the exact position or column index if you will. So i decided to format everything in the result from database. so now one of my column has $12,000.00. when i retrieve this the grid keeps giving me an error saying that 
Input string was not in a correct format.Couldn't store <$25,659.00> in Total Column.  Expected type is Decimal. why is the grid keeps automatically assigning the type to my column instead of retrieving it just like the way it is.
here is my select statement

select '$' + convert(varchar, cast(abs(Total) as money),1))) as Total from Student

Second question is how do i format the header to have certain size and then data rows with automatic fit to the data length.

Third is can i have a header for each of the Group By Field?

please help me thanks and appreciate alot.

appdev
Top achievements
Rank 1
 answered on 19 Jan 2009
1 answer
167 views
I'm getting this error "No property or field 'PhoneNumber' exists in type 'DataRowView'" when I try to rebind my grid after changing the filterexpression.
I hope someone can explain why.
My c# code is:
protected void btnFilter_Click(object sender, EventArgs e) 
        { 
            string filter = ""
 
            switch (cboFilter.SelectedValue) 
            { 
                case "AccountNumber"
                    { 
                        filter = String.Format("(AccountNumber LIKE '%{0}%')", txtFilter.Text.Trim()); 
                        break
                    } 
                case "DateRange"
                    { 
                        if ((rdpDateFrom.SelectedDate != null) && (rdpDateTo.SelectedDate != null)) 
                        { 
                            filter = String.Format("(DateFrom >= {0}) AND (DateTo <= {1})", rdpDateFrom.SelectedDate, rdpDateTo.SelectedDate); 
                        } 
                        else if ((rdpDateFrom.SelectedDate != null) && (rdpDateTo.SelectedDate == null)) 
                        { 
                            filter = String.Format("(DateFrom >= {0})", rdpDateFrom.SelectedDate); 
                        } 
                        else if ((rdpDateFrom.SelectedDate == null) && (rdpDateTo.SelectedDate != null)) 
                        { 
                            filter = String.Format("(DateTo <= {0})", rdpDateTo.SelectedDate); 
                        } 
                        break
                    } 
                case "FullName"
                    { 
                        filter = String.Format("(FullName LIKE '%{0}%')", txtFilter.Text.Trim()); 
                        break
                    } 
                case "PhoneNumber"
                    { 
                        filter = String.Format("(PhoneNumber LIKE '%{0}%')", txtFilter.Text.Trim()); 
                        break
                    } 
            } 
            rgBills.MasterTableView.FilterExpression = filter; 
            rgBills.MasterTableView.DataBind(); 
        } 

The markup for the grid is:
<telerik:RadGrid ID="rgBills" runat="server" Skin="Web20" 
            AllowPaging="True" AllowSorting="True" GridLines="None" DataSourceID="dsBills" 
            OnItemDataBound="rgBills_ItemDataBound" OnItemCommand="rgBills_ItemCommand" 
            ShowFooter="True" OnSelectedIndexChanged="rgBills_SelectedIndexChanged" > 
            <HeaderContextMenu EnableTheming="True"
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            </HeaderContextMenu> 
            <ClientSettings> 
                <Selecting AllowRowSelect="true" /> 
            </ClientSettings> 
            <FilterItemStyle Width="90%" /> 
            <MasterTableView AutoGenerateColumns="False" DataSourceID="dsBills" DataKeyNames="AutoNumber"
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridTemplateColumn AllowFiltering="false"
                        <HeaderTemplate> 
                            <asp:CheckBox runat="server" ID="CheckBoxHeader" OnCheckedChanged="ToggleSelectedState" 
                                AutoPostBack="true" /> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <asp:CheckBox runat="server" ID="CheckBox1" OnCheckedChanged="ToggleRowSelection" 
                                AutoPostBack="true" /> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridBoundColumn DataField="PhoneNumber" HeaderText="Phone Number" ReadOnly="True" 
                        SortExpression="PhoneNumber" UniqueName="PhoneNumber"
                    </telerik:GridBoundColumn> 
                    <telerik:GridTemplateColumn DataField="FullName" HeaderText="Full Name" SortExpression="FullName" 
                        UniqueName="FullName"
                        <ItemTemplate> 
                            <asp:LinkButton ID="lnkUserAccount" runat="server" Text='<%# Bind("FullName") %>' 
                                OnClick="lnkUserAccount_Click" /></ItemTemplate
                    </telerik:GridTemplateColumn> 
                    <telerik:GridBoundColumn DataField="AccountNumber" HeaderText="Account Number" SortExpression="AccountNumber" 
                        UniqueName="AccountNumber" DataType="System.String"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Email" HeaderText="Email" SortExpression="Email" 
                        UniqueName="Email" Display="false"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="AutoNumber" DataType="System.Int64" HeaderText="AutoNumber" 
                        ReadOnly="True" SortExpression="AutoNumber" UniqueName="AutoNumber" Display="false"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" SortExpression="UserName" 
                        UniqueName="UserName" Display="false"
                    </telerik:GridBoundColumn> 
                    <telerik:GridDateTimeColumn DataField="DateFrom" DataType="System.DateTime" HeaderText="Date From" 
                        SortExpression="DateFrom" UniqueName="DateFrom" DataFormatString="{0:dd/MM/yyyy}" 
                        FilterControlWidth="100px"
                        <ItemStyle HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridDateTimeColumn DataField="DateTo" DataType="System.DateTime" HeaderText="Date To" 
                        SortExpression="DateTo" UniqueName="DateTo" DataFormatString="{0:dd/MM/yyyy}" 
                        FilterControlWidth="100px"
                        <ItemStyle HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridTemplateColumn AllowFiltering="false"
                        <ItemTemplate> 
                            <asp:LinkButton ID="cmdShowDetails" runat="server" CommandName="ShowDetails" Text="Show Details" /></ItemTemplate
                    </telerik:GridTemplateColumn> 
                </Columns> 
                <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
            </MasterTableView> 
            <ClientSettings> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
            <FilterMenu EnableTheming="True"
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            </FilterMenu> 
            <EditItemStyle BackColor="#5174AA" /> 
        </telerik:RadGrid> 


Nikolay Rusev
Telerik team
 answered on 19 Jan 2009
1 answer
82 views
Nikolay Rusev
Telerik team
 answered on 19 Jan 2009
1 answer
164 views
Hi ,

Can any body help me convert this demo http://demos.telerik.com/aspnet-ajax/Grid/Examples/DataEditing/PopUpEditForm/DefaultCS.aspx  in to Linq.

I am not sure how to implement this in linq .

I am having problems like not updating, not closing  PopUp after clicking Update or insert buton.

I need help on this ASP.

Thanks.
Eva

Sebastian
Telerik team
 answered on 19 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?