Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
342 views
Hi,

I'm trying to insert a row into my rad grid using the Array.insert method. I am trying to insert the row at the top of my grid

Array.insert(masterTable._dataItems, 0, dataItem) 

However, the result is that the new row is appended to the bottom of the table.

var rowDataItem = $create(  
                Telerik.Web.UI.GridDataItem,  
                {  
                    _owner : masterTable,  
                    _data : {}  
                },  
                null,  
                null,  
                row  
            );   
              
            if(direction == 'bottom') Array.add(masterTable._dataItems, rowDataItem);  
            else if(direction == 'top') Array.insert(masterTable._dataItems, 0, rowDataItem); 

Can anybody help? Does Array.insert work?

Thanks,

Antony
mfmz
Top achievements
Rank 1
 answered on 25 Jun 2009
1 answer
169 views
I am handling the ItemDataBound event and in certain instances want to add some extra HTML content into a table cell /after/ the data which I expect to see there as a result of it being a GridBoundColumn.

To do this I just do something like:

                    HyperLink oHL = new HyperLink(); 
                    oHL.Text = sReferrerText; 
                    oHL.NavigateUrl = sReferrerURL; 
 
                    oDataItem["Site"].Controls.Add( new LiteralControl("<br/>") ); 
                    oDataItem["Site"].Controls.Add(oHL); 

On rows where this code gets executed the content I add is displayed /but/ the GridBoundColumn value that I would expect to precede it does not get output. If I do not do the appending of the controls, the data bound value is output correctly.

What am I doing wrong?

M



Shinu
Top achievements
Rank 2
 answered on 25 Jun 2009
1 answer
101 views
I have the RadGrid for ASP.NET AJAX Q1 2008 and this version does not have the findControl or findElement methods. Is there
any way that I can get a control inside of an Itemtemplate with javascript?
Princy
Top achievements
Rank 2
 answered on 25 Jun 2009
1 answer
126 views
Hi All. This is more an ASP.NET thing but I thought I'd ask. I've successfully implemented a Load on Demand RadPageView. I want to add a RadComboBox on the same page.  I want to pass the value of the RadComboBox to the RadPageView.  Does anyone know how to do this?  Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 24 Jun 2009
2 answers
124 views
Hi!

I have a grid with many columns where my clients could sort and filter data. Many of the columns are simple textboxes. When I enter a semicolon ";" i get an error, seems that the bug exists in your demos also.
Filter doesn't seem to work with "<" and ">" either. Is there any solution to this problem?

Best regards, Erik
Erik
Top achievements
Rank 1
 answered on 24 Jun 2009
2 answers
128 views
hi,

I tried to give height and width as 100% for a radpane.
But its not taking it,

If i give in px then it takes.

Any idea how to give heigh nad width in % ??

Thanks in advance,
Sid
Stoick
Top achievements
Rank 2
 answered on 24 Jun 2009
1 answer
99 views
Hi,
      I am  generating raddocks dynamically. They are being held in a panel and raddocklayout and I am not using any rad dock zones. My problem is that the lower and upper margins are getting cut off. i have tried adjusting the height and width but its no use. How ever if i use rad dock zones then the megins appear fine but i do not want to use rad dock zones due to design issues. Can you please provide a solution for this.

Regards,
Ajit
ajit
Top achievements
Rank 1
 answered on 24 Jun 2009
1 answer
233 views
I keep getting this error. and it has one for almost all the controls.
Error    158    The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 1.0.61025.0 and an indirect reference (through 'Telerik.Web.UI.RadScriptManager') to version 3.5.0.0. Change the direct reference to use version 3.5.0.0 (or higher) of System.Web.Extensions.    C:\Users\Administrator\Desktop\Projects Current\Personal Projects\ussidingpros.com\simpweb.com\admin\admin.Master.designer.vb    34    47    USSidingPros 
 
Error    159    The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 1.0.61025.0 and an indirect reference (through 'Telerik.Web.UI.RadTabStrip') to version 3.5.0.0. Change the direct reference to use version 3.5.0.0 (or higher) of System.Web.Extensions.    C:\Users\Administrator\Desktop\Projects Current\Personal Projects\ussidingpros.com\simpweb.com\admin\admin.Master.designer.vb    43    46    USSidingPros 
 
Error    160    The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 1.0.61025.0 and an indirect reference (through 'Telerik.Web.UI.RadMenu') to version 3.5.0.0. Change the direct reference to use version 3.5.0.0 (or higher) of System.Web.Extensions.    C:\Users\Administrator\Desktop\Projects Current\Personal Projects\ussidingpros.com\simpweb.com\admin\admin.Master.designer.vb    52    38    USSidingPros 
 
 
 
web.config file 
 
 
<?xml version="1.0"?><configuration> 
    <configSections> 
 
        <sectionGroup name="telerik.web.ui"> 
            <section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/> 
        </sectionGroup> 
         
             
                 
    </configSections> 
    <connectionStrings> 
        <add name="DATABASECONNECTIONodb" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\website.mdb;User Id=admin;Password=;"/> 
        <add name="ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\website.mdb;Persist Security Info=True" providerName="System.Data.OleDb"/> 
    </connectionStrings> 
    <appSettings> 
         
    </appSettings> 
    <system.net> 
        <mailSettings> 
            <smtp deliveryMethod="Network"> 
                <network host="blabla" port="25" userName="adam" password="blabla"/> 
            </smtp> 
        </mailSettings> 
    </system.net> 
     
    <system.web> 
        <webServices> 
            <protocols> 
                <add name="HttpPost"/> 
            </protocols> 
        </webServices> 
        <authentication mode="Forms"> 
            <forms loginUrl="LoginPage.aspx"> 
            </forms> 
        </authentication> 
 
        <customErrors mode="Off"/> 
 
        <!--   mode="On|Off|RemoteOnly">  --> 
        <pages> 
            <namespaces> 
                <clear/> 
                <add namespace="System"/> 
                <add namespace="System.Collections"/> 
                <add namespace="System.Collections.Specialized"/> 
                <add namespace="System.Configuration"/> 
                <add namespace="System.Text"/> 
                <add namespace="System.Text.RegularExpressions"/> 
                <add namespace="System.Web"/> 
                <add namespace="System.Web.Caching"/> 
                <add namespace="System.Web.SessionState"/> 
                <add namespace="System.Web.Security"/> 
                <add namespace="System.Web.Profile"/> 
                <add namespace="System.Web.UI"/> 
                <add namespace="System.Web.UI.WebControls"/> 
                <add namespace="System.Web.UI.WebControls.WebParts"/> 
                <add namespace="System.Web.UI.HtmlControls"/> 
            </namespaces> 
            <controls> 
               
            </controls> 
        </pages> 
        <!-- 
          Set compilation debug="true" to insert debugging 
          symbols into the compiled page. Because this 
          affects performance, set this value to true only 
          during development. 
    --> 
        <compilation debug="true"> 
            <assemblies> 
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                 
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
             
             
            </assemblies> 
        </compilation> 
        <httpRuntime maxRequestLength="1024000" executionTimeout="3600"/>  
        <httpHandlers> 
   <remove path="*.asmx" verb="*"/> 
 
   <add path="*.flv" verb="*" type="FLVStreaming"/> 
   <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/> 
   <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> 
            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> 
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> 
 
            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false"/> 
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false"/> 
         
   <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.1.527.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> 
  
  </httpHandlers> 
        <httpModules> 
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/> 
             
        </httpModules> 
    </system.web> 
    <telerik.web.ui> 
        <radScheduler defaultAppointmentProvider="Integrated"> 
            <appointmentProviders> 
                <add name="ReadOnlyXmlSchedulerProvider" type="Telerik.Web.UI.XmlSchedulerProvider" fileName="~/App_Data/Appointments.xml" persistChanges="false"/> 
                <add name="ReadOnlySchedulerData" type="Telerik.Web.Examples.Scheduler.MyDbSchedulerProvider" connectionStringName="RadSchedulerConnectionString" persistChanges="false"/> 
            </appointmentProviders> 
        </radScheduler> 
    </telerik.web.ui> 
    <system.webServer> 
        <modules> 
            <remove name="ScriptModule"/> 
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler"/> 
         
        </modules> 
        <handlers> 
            <remove name="WebServiceHandlerFactory-Integrated"/> 
            <remove name="ScriptHandlerFactory"/> 
            <remove name="ScriptHandlerFactoryAppServices"/> 
            <remove name="ScriptResource"/> 
            <add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0"/> 
            <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0"/> 
             
             
         
         
            <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/> 
 
        </handlers> 
        <validation validateIntegratedModeConfiguration="false"/> 
    </system.webServer> 
 
    <system.codedom> 
        <compilers> 
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4"> 
                <providerOption name="CompilerVersion" value="v3.5"/> 
                <providerOption name="OptionInfer" value="true"/> 
                <providerOption name="WarnAsError" value="false"/> 
            </compiler> 
        </compilers> 
    </system.codedom> 
     
</configuration> 
 
 
 







Adam
Top achievements
Rank 2
 answered on 24 Jun 2009
2 answers
127 views
I'm looking for a way to get the other items in a group when one is selected.  My grid has data grouped in the following manner.

Policy Number 1
    Customer Id 1
    Customer Id 2
    Customer Id 3

Policy Number 2
    Customer Id 4
    Customer Id 5
    Customer Id 6

If a user selects Costomer 2 I'd want to get the other 2 customer Ids that are in the Policy Number 1 group.


SCD
Top achievements
Rank 1
 answered on 24 Jun 2009
4 answers
173 views
hi,

i have implemented this already with a smartpart/usercontrol but now i want to do it thru the sharepoint.webpart. can anyone point me in the right direction for some sample code or article?

merci

 
dr
Top achievements
Rank 1
 answered on 24 Jun 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?