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

i get this error everytime i try to add item to visual studio 2008 web developer edition

this is the folder i browse to get the dll
 C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2009\Bin

There was an error loading types from assembly C:\Documents and Settings\blubr\Desktop\RadControls for ASPNET AJAX Q1 2009\Bin\Telerik.Weeb.UI.dll

could not load file or assembly system.web.extensions, Version=1.0.6.025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 or one of its dependencies. the system cannot find the specified file.

Paul
Telerik team
 answered on 20 May 2009
3 answers
142 views
Hi Friends -

I am using radprompt in my program, what I want to achieve is that I want to call a page (lets say http://www.google.com) whenever a its getting opened.

The purpose is that I dragged and dropped a node from my treeview, a radwindow get opened (radwindow is showing a report), whenever a reload button clicked in radwindow, a paramter page should get opened, for that reason I am using RadPrompt, I want to open a parameter page whenver a user click on the reload button of report.

Please help...

Thanks
Arindam Roy
Georgi Tunev
Telerik team
 answered on 20 May 2009
4 answers
199 views
Hello
I have a radgrid with some column but only one editable column. When the radgrid is load, I put it automatiquly in Edit mode for each rows (with the wonderfull  "allowmultiRowEdit" property). Now I have created a custom button to save all rows at the same time. But guess what?! It doesn't work. I can't get the value on the edit column "Comptence" in the sub of the custom save button.
Here is my code

 Public Sub RadGrid1_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles RadGrid1.PreRender  
        
        If Not IsPostBack Then 
            For Each item As GridItem In RadGrid1.MasterTableView.Items  
                If TypeOf item Is GridEditableItem Then 
                    Dim editableItem As GridEditableItem = CType(item, GridDataItem)  
                    editableItem.Edit = True 
                End If 
            Next 
            RadGrid1.Rebind()  
        End If 
 
    End Sub 
 
    Private Sub BntSave_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles BntSave.Click  
         
        Dim StrInsert As String 
        Dim Fiche As Integer 
        Dim Mat As String 
        Dim Grp As Integer 
        Dim Interv As Integer 
        Dim Nom As String 
        Dim Prenom As String 
        Dim Competence As String 
        Dim cmdComp As OleDbCommand  
        Dim myDAComp As OleDbDataAdapter  
        Dim dsComp As New DataSet  
 
          
        For Each item As GridDataItem In RadGrid1.Items  
            Dim editItem As GridEditableItem = DirectCast(item, GridEditableItem)  
            Dim strtxt As String = editItem.Item("COMPTENCES").Text  
 
            If strtxt <> "" Then 
                Fiche = item("FICHE").Text  
                Mat = item("MAT").Text  
                Grp = item("GRP").Text  
                Interv = item("INTERV").Text  
                Nom = item("NOM").Text  
                Prenom = item("PNOM").Text  
                Competence = item("COMPTENCES").Text  
 
                StrInsert = "INSERT INTO T_COMPTENCES_TRANVERSALES (FICHE, MAT, GRP, NO_INTERV, COMPTENCES, NOM, PRENOM) VALUES (" & Fiche & ", '" & Mat & "', '" & Grp & "', '" & Interv & "', '" & Competence & "','" & Nom & "','" & Prenom & "')" 
                cmdComp = New OleDbCommand(StrInsert, Conn)  
                myDAComp = New OleDbDataAdapter(cmdComp)  
                Conn.Open()  
                myDAComp.Fill(dsComp)  
                Conn.Close()  
 
            End If 
        Next 
    End Sub 
   <telerik:RadGrid   
            ID="RadGrid1"   
            runat="server"   
            GridLines="None"   
            AllowAutomaticUpdates=true 
            AllowMultiRowEdit = "True" 
            Skin="Web20" 
            DataSourceID="SqlDsIntervenant"   
            OnPreRender="RadGrid1_PreRender">  
              
            <MasterTableView   
                EditMode="EditForms"   
                datasourceid="SqlDSIntervenant"   
                HierarchyDefaultExpanded=true   
                AllowAutomaticUpdates=true 
                ExpandCollapseColumn-HeaderStyle-Width="5px" 
                ExpandCollapseColumn-HeaderStyle-HorizontalAlign="Left"   
                AutoGenerateColumns=false   
                > 
                  
                   <Columns> 
                     
                        <telerik:GridBoundColumn  
                            DataField="INTERV"   
                            UniqueName="INTERV" 
                            HeaderText="Intervenant" 
                            ReadOnly=true 
                            Visible=false>  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn  
                            DataField="MAT"   
                            UniqueName="MAT" 
                            HeaderText="Matière" 
                            ReadOnly=true>  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn  
                            DataField="DESCR"   
                            UniqueName="DESCR" 
                            HeaderText="Description" 
                            ReadOnly=true>  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn  
                            DataField="GRP"   
                            UniqueName="GRP" 
                            HeaderText="Groupe" 
                            ReadOnly=true>  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn  
                            DataField="FICHE"   
                            UniqueName="FICHE" 
                            HeaderText="Fiche" 
                            ReadOnly=true 
                            Visible=false>  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn  
                            DataField="PNOM"   
                            UniqueName="PNOM" 
                            HeaderText="Prénom Ã‰lève" 
                            ReadOnly=true>  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn  
                            DataField="NOM"   
                            UniqueName="NOM" 
                            HeaderText="Nom Ã‰lève" 
                            ReadOnly=true>  
                        </telerik:GridBoundColumn> 
                          
                        <telerik:GridBoundColumn  
                            DataField="COMPTENCES"   
                            UniqueName="COMPTENCES" 
                            HeaderText="Compétences" 
                            Visible=false>  
                        </telerik:GridBoundColumn> 
                   </Columns> 
            </MasterTableView> 
        </telerik:RadGrid> 
        <asp:Button ID="BntSave" runat="server" Text="Sauvegarder" /> 
Can anyone help me to get those values?
Thank you!
Myriam
Top achievements
Rank 1
 answered on 20 May 2009
3 answers
356 views
Hi,

 I want to display a RadColorPicker in a grid cell (either in a radGrid or an Infragistics UltraWebGrid, I'm not fussy). I can't figure out how to successfully do this in an UltraWebGrid cell template, haven't tried the radGrid. Is there any sample code or advice you can send my way to achieve this?

Many Thanks,

John
Georgi Tunev
Telerik team
 answered on 20 May 2009
3 answers
131 views
I have a bar chart that is very small like an icon when it is displayed although the size is set much larger.
Please help.

- I bought my license for Asp.Net AJAX Q3/2008 but recently I use the download Q1/2009. Is this a license issue here?
- here is chart codes:

<telerik:RadChart ID="radchartCostComp" runat="server" Height="135px" Width="900px" ChartImageFormat="Jpeg" Skin="DeepRed">
              <Series>
                <telerik:ChartSeries Name="Series 1">
                  <Appearance>
                    <FillStyle FillType="ComplexGradient">
                      <FillSettings>
                        <ComplexGradient>
                          <telerik:GradientElement Color="213, 247, 255" />
                          <telerik:GradientElement Color="193, 239, 252" Position="0.5" />
                          <telerik:GradientElement Color="157, 217, 238" Position="1" />
                        </ComplexGradient>
                      </FillSettings>
                    </FillStyle>
                    <TextAppearance TextProperties-Color="White">
                    </TextAppearance>
                  </Appearance>
                </telerik:ChartSeries>
                <telerik:ChartSeries Name="Series 2">
                  <Appearance>
                    <FillStyle FillType="ComplexGradient">
                      <FillSettings>
                        <ComplexGradient>
                          <telerik:GradientElement Color="163, 222, 78" />
                          <telerik:GradientElement Color="132, 207, 27" Position="0.5" />
                          <telerik:GradientElement Color="102, 181, 3" Position="1" />
                        </ComplexGradient>
                      </FillSettings>
                    </FillStyle>
                    <TextAppearance TextProperties-Color="White">
                    </TextAppearance>
                    <Border Color="94, 160, 0" />
                  </Appearance>
                </telerik:ChartSeries>
              </Series>
              <PlotArea>
                <XAxis>
                  <Appearance Color="76, 255, 255, 255" MajorTick-Color="179, 255, 255, 255">
                    <MajorGridLines Color="179, 255, 255, 255" Width="0" />
                    <TextAppearance TextProperties-Color="White">
                    </TextAppearance>
                  </Appearance>
                  <AxisLabel>
                    <Appearance Dimensions-Paddings="1px, 1px, 10%, 1px">
                    </Appearance>
                    <TextBlock>
                      <Appearance TextProperties-Color="254, 178, 112">
                      </Appearance>
                    </TextBlock>
                  </AxisLabel>
                </XAxis>
                <YAxis>
                  <Appearance Color="76, 255, 255, 255" MajorTick-Color="179, 255, 255, 255" MinorTick-Color="179, 255, 255, 255">
                    <MajorGridLines Color="179, 255, 255, 255" />
                    <MinorGridLines Color="179, 255, 255, 255" Width="0" />
                    <TextAppearance TextProperties-Color="White">
                    </TextAppearance>
                  </Appearance>
                  <AxisLabel>
                    <TextBlock>
                      <Appearance TextProperties-Color="220, 158, 119">
                      </Appearance>
                    </TextBlock>
                  </AxisLabel>
                </YAxis>
                <Appearance Dimensions-Margins="19%, 90px, 12%, 9%">
                  <FillStyle MainColor="50, 255, 255, 255" SecondColor="Transparent">
                  </FillStyle>
                  <Border Color="76, 255, 255, 255" />
                </Appearance>
              </PlotArea>
              <Appearance>
                <FillStyle FillType="ComplexGradient">
                  <FillSettings>
                    <ComplexGradient>
                      <telerik:GradientElement Color="179, 37, 26" />
                      <telerik:GradientElement Color="253, 153, 66" Position="0.5" />
                      <telerik:GradientElement Color="179, 37, 26" Position="1" />
                    </ComplexGradient>
                  </FillSettings>
                </FillStyle>
                <Border Color="141, 50, 0" Width="5" />
              </Appearance>
              <ChartTitle>
                <Appearance Dimensions-Margins="4%, 10px, 14px, 6%">
                  <FillStyle MainColor="">
                  </FillStyle>
                </Appearance>
                <TextBlock>
                  <Appearance TextProperties-Color="White" TextProperties-Font="Verdana, 14pt">
                  </Appearance>
                </TextBlock>
              </ChartTitle>
              <Legend>
                <Appearance Dimensions-Margins="1px, 2%, 12%, 1px">
                  <ItemTextAppearance TextProperties-Color="White">
                  </ItemTextAppearance>
                  <FillStyle MainColor="37, 255, 255, 255">
                  </FillStyle>
                  <Border Color="76, 255, 255, 255" />
                </Appearance>
                <TextBlock>
                  <Appearance Position-AlignedPosition="Top" TextProperties-Color="220, 158, 119">
                  </Appearance>
                </TextBlock>
              </Legend>
            </telerik:RadChart>

 


Code behind:

 

SqlDataSource dss = new SqlDataSource();
dss.ConnectionString = ConfigurationManager.ConnectionStrings["PDB_CS"].ConnectionString;
dss.ID = "dssRptComp";

dss.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
dss.SelectCommand = "spr_EdPrinter_Report_Costs_Comparison";
dss.SelectParameters.Add(new Parameter("XMLString", DbType.String, strXml));

this.Page.Controls.Add(dss);

radchartCostComp.DataSourceID = "dssRptComp";

radchartCostComp.Series[0].DataYColumn = "PCost";
radchartCostComp.Series[1].DataYColumn = "CCost";
radchartCostComp.Series[2].DataYColumn = "MCosts";

radchartCostComp.PlotArea.XAxis.DataLabelsColumn = "MName";

radchartCostComp.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 300;

radchartCostComp.DataBind();

 

 

 

 

 

 

Giuseppe
Telerik team
 answered on 20 May 2009
2 answers
82 views
Hi,

Just trying to use the Ajax manager to call a server side function from JavaScript in a user control. I followed the getting started documentation and set up the following:

JavaScript
// Gets the ASP.NET generated control ID 
function GetClientId(controlId) { 
    var count = document.forms[0].length; 
    var i = 0
    var aspControlId; 
    for (i = 0; i < count; i++) { 
        aspControlId = document.forms[0].elements[i].id; 
        pos = aspControlId.indexOf(controlId); 
        if (pos >= 0) break; 
    } 
    return aspControlId; 
 
// Handles the row double click event from grid 
function onRowDblClick(sender, args) { 
    var ajaxManager = GetClientId("ajaxManager"); 
    ajaxManager.AjaxRequest("test"); 
    return false; 

Code in front
<telerik:RadAjaxManager ID="ajaxManager" runat="server" OnAjaxRequest="ajaxManager_AjaxRequest" /> 

Code behind
protected void ajaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e) 
    { 
         
    } 

I get a script error stating ajaxManager.AjaxRequest is not a function. I do find the control no problem. Any ideas?

Thanks,

Michael


Michael Dunbar
Top achievements
Rank 2
 answered on 20 May 2009
1 answer
122 views
hi,

I was using AfterClientCheck event in treeview in Radcontrols for ASP.Net.

Now i am using  Radcontrols for ASP.Net Ajax. here we dont have AfterClientCheck event.

what is the equivalent event here?

thanks,

Yana
Telerik team
 answered on 20 May 2009
1 answer
83 views
Hi,
I have a form which uses rad tab strip and inside the rad multipage I have a table of text boxes. My problem is when I add the rad tooltip manager or just the regular rad tool tip I cant view them when I run my application?...
Do you have any idea why its doing this?

Thanks,
-Afshan
Svetlina Anati
Telerik team
 answered on 20 May 2009
1 answer
157 views
Hello

I'm using Q2 2008 (budget means I'm no longer subscribing!) and I've got a slight unwanted issue with a window.

When my popup opens, there's a very feint grey border to the bottom of the inside of the widow 0 it's almost as if it's a space for a status bar (these are disabled) - have a look by clicking on one of the images in the portfolio here:

http://yetidigital.ds6003.dedicated.turbodns.co.uk/portfolio/

It's so slight you can't see it on some monitors, but the client isn't too keen on it!

Many thanks (in advance) for any help you can provide.

Darren
Martin
Telerik team
 answered on 20 May 2009
2 answers
147 views
Hi,

I have a page with a grid on it. The grid is edited by the nice Inline form thats available. I have a couple of columns and a template column with a small table with a listbox and a dropdown and two buttons Add and Remove.

What I want to do is that when the user selects an item in the Combobox and press Add the item should appear in the Listbox. And when I select an item in the listbox and press Remove the Item should of course be removed.

Everything is working great, Ajax and all... But when I press the Add button and my ItemCommand fires I'm not able to find the Listbox again. I can't even find out that the row is editable.

Best Regards
Daniel
Tobias
Top achievements
Rank 1
 answered on 20 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?