Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 views
Hi, I'm having an issue with the filtering feature of the RadGrid.  I'm working on a project that acts as an interface for a legacy system.  I'm using the Grid control to display the data retrieved from this system.

I'm also using the filter control, which works great.  The problem that I'm having is that users are allowed to type date values as numbers only (e.g., "043009") and the legacy system process it and retrieves data for that date (the results for the date column come back as "4/30/09").  The RadGrid however doesn't display any records and displays "No Records to display" instead even though I can see that records are being bound to it.  I'm thinking this is because what was entered in the search field doesn't match what is being displayed on the column.  Is there any way I can have the RadGrid display the data even if the filtering column TextBox content doesn't match the content of the grid for that column? 

Thank you in advance.

Yavor
Telerik team
 answered on 05 May 2009
1 answer
103 views
hi

I try to implement this exampl please check this link
http://demos.telerik.com/aspnet-ajax/slider/examples/customscrollbar/defaultcs.aspx
but i given runat="server" for div tag.. its through java script error..

i have to load value in server side.. how can i implement please help me...
i give my code here Please check it..
asp code here..

 <script type="text/javascript" language ="javascript">
    var initialValue;
    var initialValue2;

    function HandleClientLoaded2(sender, eventArgs)
    {
        initialValue2 = sender.get_minimumValue();
        HandleClientValueChange2(sender, null);
    }

    function HandleClientValueChange2(sender, eventArgs)
    {
        var wrapperDiv = document.getElementById('boxes_wrapper');
        var contentDiv = document.getElementById('boxes_content');
        
        var oldValue = (eventArgs) ? eventArgs.get_oldValue() : sender.get_minimumValue();
        var change = sender.get_value() - oldValue;
        
        var contentDivWidth = contentDiv.scrollWidth - wrapperDiv.offsetWidth;
        var calculatedChangeStep = contentDivWidth / ((sender.get_maximumValue() - sender.get_minimumValue()) / sender.get_slideStep());
        
        initialValue2 = initialValue2 - change * calculatedChangeStep;
        if (sender.get_value() == sender.get_minimumValue())
        {
            contentDiv.style.left = 0 + 'px';
            initialValue2 = sender.get_minimumValue();
        }
        else
        {
            contentDiv.style.left = initialValue2 + 'px';
        }
    }
    
    </script>

 <div >
                                            <div class="Boxes">
                                                <div id="boxes_wrapper" class="Boxes_Wrapper">
                                                <div id="boxes_content" class="Boxes_Content" runat="server"> ! Note here
                                                    <%--<img src="../../Objects/Images/Arrow.gif" alt="Telerik products" />--%>
                                                    <%--<img src="../../Objects/Images/Arrow1.gif" alt="Telerik products" />
                                                    <img src="../../Objects/Images/flag_eng.jpg" alt="Telerik products" />--%>
                                                </div>
                                                </div>
                                                </div>
                                                
                                                <div class="BoxesSlider">
                                                <telerik:RadSlider ID="RadSlider2" runat="server"
                                                    SmallChange="1"
                                                    Width="224"
                                                    Value="0"
                                                    Orientation="Horizontal"
                                                    OnClientValueChange="HandleClientValueChange2"
                                                    OnClientLoaded="HandleClientLoaded2"
                                                    Skin="WebBlue" />
                                                </div>
                                         </div>

Server side code...
 '======================== new slider ==========================
                'AvaliableContent = (vbTab & " <table  cellpadding=""0"" cellspacing=""0"" border=""0"">" & vbNewLine) & _
                '                    (vbTab & " <tr><td colspan=""3"" style=""height:24px;""></td></tr>" & vbNewLine) & _
                '                    (vbTab & vbTab & "<tr>" & vbNewLine)
                'For Each odrC In odtC.Rows
                '    AvaliableContent &= (vbTab & vbTab & "<td style=""height:50px; background-color:" & odrC.Item("ColorId") & ";""><img src=""../../Objects/Images/space.gif"" width=""80"" height=""1""/></td>" & vbNewLine)
                'Next
                'AvaliableContent &= (vbTab & "</tr></table>" & vbNewLine)

boxes_content.InnerHtml =avaliablecontent

Tsvetie
Telerik team
 answered on 05 May 2009
5 answers
129 views
I need to display Rotator (fixed width) on multiple Panels (RadPanelItem) within PanelBar (can be fixed with but 100% width preferred). For some reason each time Panel containing Rotator is expanded/collapsed the widht of Rotator is decreased (I belive by 20px, but I might be mistaken). Is this a Bug or Configuration issue? How can I resolve this?

Thank you,
a.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager runat="server"
    </telerik:RadScriptManager> 
    <div> 
     
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server"  
            ExpandMode="FullExpandedItem" Height="400px"  
            Width="460px" Skin="Gray"
            <CollapseAnimation Duration="100" Type="Linear" /> 
            <ExpandAnimation Duration="100" Type="Linear" /> 
            <Items> 
                <telerik:RadPanelItem Expanded="true" Text="CHOOSE SET"
                    <Items> 
                        <telerik:RadPanelItem> 
                            <ItemTemplate> 
                                <telerik:RadRotator ID="rotSet" runat="server"   
                                    Height="108px" ItemHeight="100px" ItemWidth="150px" RotatorType="Buttons"  
                                    Width="450px"
                                    <ItemTemplate> 
                                        <asp:HiddenField ID="hdnSetId" runat="server" Value="" /> 
                                        <asp:Image ID="imgSet" runat="server" ImageUrl="" /> 
                                    </ItemTemplate> 
                                </telerik:RadRotator> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
                <telerik:RadPanelItem Text="CHOOSE PACKAGE"
                    <Items> 
                        <telerik:RadPanelItem> 
                            <ItemTemplate> 
                                <telerik:RadRotator ID="rotPackage" runat="server"  
                                    Height="108px" ItemHeight="100px" ItemWidth="150px"  
                                    RotatorType="Buttons" Width="450px"
                                    <ItemTemplate> 
                                        <asp:HiddenField ID="hdnPackageId" runat="server" Value="" /> 
                                        <asp:Image ID="imgPackage" runat="server" ImageUrl="" /> 
                                    </ItemTemplate> 
                                </telerik:RadRotator> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelBar> 
     
    </div> 
    </form> 
</body> 
</html> 
 

Fiko
Telerik team
 answered on 05 May 2009
7 answers
267 views
I want to highlight particular row once it is updated.  The row need to be highlighted with some different back color once it is updated. In which event i will do it and how?
Princy
Top achievements
Rank 2
 answered on 05 May 2009
1 answer
116 views
Hi,
Is it possible to set a node's checked state to indeterminate even if it doesn't have child nodes?
And I want to do it on server side this time.
I tried to use your previous reply but it couldnt find the node :

ScriptManager.RegisterStartupScript(Page, typeof(Page), "aa", RadTreeView1.Nodes[i].ClientID+".get_checkBoxElement().className = 'rtIndeterminate';", true);

Regards.
Shinu
Top achievements
Rank 2
 answered on 05 May 2009
1 answer
118 views
Hello,

I have disabled the grouping function in my radgrod with:

"GroupingEnabled" =

False 

 

 

"AllowDragToGroup" = false

but the mouse cross and the tooltip  "Drag out of the bar to ungroup" will be shown when I move with the mouse to the Header.

Which Property have I forgotten?

Thanks
Christian
Yavor
Telerik team
 answered on 05 May 2009
0 answers
195 views
Dear TT team

    i have a user control that have a raid upload control which is placed inside a RadGrid's item template
  
    i am trying to get the files full path i.e. c:\downloaded\temp\abc.pdf

     apparently its returning nothing when i trigger the button that has a update command tag

 Dim RadUpload1 As RadUpload = DirectCast(insertItem.FindControl("RadUpload1"), RadUpload) 
Dim bb As String = RadUpload1.UploadedFiles(0).FileName 
 

     as for the file byte i don't know how to get it

     any idea please help
 
Kenneth Ng
Kenneth
Top achievements
Rank 1
 asked on 05 May 2009
1 answer
133 views
Greetings,

We have a client system that uses a QA web application and a Production web application. Due to an administrative error, the Rad Editor solution was retracted from both web applications and then redeployed to both web applications. The page we are having issues with functions properly in the QA web app and throws an error in the Production web app.

I verfied the the DLLs are in the GAC and that the tags are registered as safe in the web.config file. I am new to the setup of this solution and everything appears to be OK with the setup. Any and all help is appreciated. Please see error message below. Thank you!
 

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Tried to add NamedPermissionSet with non-unique name.

Source Error:

Line 1:  <%@ Register TagPrefix="WpNs1" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
Line 2: <%@ Register TagPrefix="WpNs0" Namespace="Telerik.SharePoint" Assembly="RadEditorSharePoint, Version=4.5.4.0, Culture=neutral, PublicKeyToken=1f131a624888eeed"%>Line 3:  <%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" %>
Line 4:  <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Source File: /default.aspx    Line: 2


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Lini
Telerik team
 answered on 05 May 2009
3 answers
138 views

  I found telrik Doc very late

I was playing with .net web part for 3 days.

 

now I have 4 questions

1) How can I configure Doc to store personalization data in sqlserverdfatabase.

Can I use the genuine table I created by running aspnetregsql.exe

2)Or what is the easy way of providing personalization per user irrespective of with computer or browser he use

 

3) How can I create a WebPartcatalog using telerik control?

(WebPartcatalog is a technical tem in classical web part.)

4)is doc personalization is achieved across all famous browsers

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 05 May 2009
2 answers
165 views
Hi,

I have a situation where I have to keep grid header frozen. The trouble is horizontal scoll bar gets lost when when grouping is done by a column. Grid tries to squeeze all columns present in the template column.When I try to resize the columns in the templated column error is thrown.

I have got a radGrid and for some reason I have to have table inside a column. This particular column is giving me a headache.

Any help is deeply appreciated.


Please see the codesnippet below -

<telerik:RadGrid ID="gridRebate" runat="server" Skin="Office2007" BorderWidth="0px"
    AutoGenerateColumns="false" AllowPaging="True" PageSize="500" AllowSorting="True">
        <AlternatingItemStyle BackColor="AliceBlue" Font-Names="Verdana" Font-Size="8pt" />
        <ItemStyle Font-Names="Verdana" Font-Size="8pt" />
        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Resizing AllowRowResize="false" AllowColumnResize="True"></Resizing>
                <Scrolling FrozenColumnsCount="8" SaveScrollPosition="true" UseStaticHeaders="true"  AllowScroll="true"/>
       </ClientSettings>
        <MasterTableView TableLayout="auto">
        <Columns>
        <telerik:GridBoundColumn DataField="SupVendor" HeaderText="Supplier/Vendor"></telerik:GridBoundColumn>
        <telerik:GridTemplateColumn UniqueName="RebateDeal" Groupable="false">
              <HeaderTemplate>
               <table id="Table1" cellspacing="1" cellpadding="1" width="300" border="0">
                <tr>
                 <td colspan="2" align="center">Rebate Deal</td>
                </tr>
                <tr>
                 <td style="width:35%"></td>
                 <td style="width:35%"></td>
                 <td style="width:25%"></td>
                 <td style="width:10%"></td>
                </tr>
               </table>
              </HeaderTemplate>
              <ItemTemplate>
               <table id="Table2" cellspacing="1" cellpadding="1" width="300" border="0" style="background-color:#ccff99">
                <tr>
                 <td style="width:35%"><%#DataBinder.Eval(Container.DataItem, "RangeSpendFrom")%></td>
                 <td style="width:35%"><%# DataBinder.Eval(Container.DataItem, "RangeSpendTo") %></td>
                 <td style="width:25%"><%#DataBinder.Eval(Container.DataItem, "RebatePercent")%></td>
                 <td style="width:10%" id="RebateType"><%#DataBinder.Eval(Container.DataItem, "RebateType")%></td>
                </td>
               </tr>
               </table>
      </ItemTemplate>
     </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="GRInvoice" HeaderText="GR/Inv." Display="false"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Spend" HeaderText="Spend" UniqueName="Spend"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EstimatedRebate" HeaderText="Estimated Rebate" UniqueName="EstimatedRebate"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="GainedRebatePercent" HeaderText="%" UniqueName="GainedRebatePercent"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="SpendToNextLevel" HeaderText="Spend To Next Level" UniqueName="SpendToNextLevel"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="AdditionalRebate" HeaderText="Additional Rebate" UniqueName="AdditionalRebate"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="AdditionalRebatePercent" HeaderText="%" UniqueName="AdditionalRebatePercent"></telerik:GridBoundColumn>
        </Columns>
            <RowIndicatorColumn Visible="True">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
        </MasterTableView>
        <FilterMenu EnableTheming="True" Skin="Web20">
            <CollapseAnimation Duration="200" Type="OutQuint" />
        </FilterMenu>
        <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" />
    </telerik:RadGrid>
Milan Gurung
Top achievements
Rank 1
 answered on 05 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?