Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
102 views
Good afternoon,

We have found a strange issue with the rad editor.  When a user puts 2 spaces together, the rendered content contains question marks instead of spaces.  Has anyone else experienced this?
Alan
Top achievements
Rank 1
 answered on 10 Sep 2008
1 answer
114 views
Is there a way to have a line and bar chart in the same chart having the data coming from 2 separate views in SQL? I am able to create a SqlDataSource for each view that I want the data. However, I am only able to select one Data source from the wizard.
Giuseppe
Telerik team
 answered on 10 Sep 2008
7 answers
137 views
Hello,

Using RadAjaxManager + RadScriptManager in a base page which loads modules.( v2.826)

Since some days I am experiencing a strange problem on ajax postbacks: on every  odd postback, I am loosing the images of skinned imagebuttons  implied in ajax postback.
To be more explicit, I have a reset button which reset data in a tabstrip/multipage serie of data. First time I push it, it looses it image, second time it's back again, etc.
Same problem with buttons in a pager/datalist with itemtemplates: next page no more image for buttons in the itemtemplate of datalist, next page again, image are back. I checked it doesn't depends on displayed data.

I'am unable to find  the reason why. When I suppress Ajax, everything works fine.

I am unable to recreate the problem on a small project and my project is too large to easilly debug.
It seems that client is loosing its path to server app.
Client sourcecode shows correct path for theses images, but they are not loaded, I have no error detected by IE7.
Is there a way to display this path clientside in some javascript ?
Is there a way to trace serverside what javascript is sent to client ?
Is Ajax.net working on this path in any way ?

Thanks for help and suggestions.

CS
CSurieux
Top achievements
Rank 2
 answered on 10 Sep 2008
6 answers
428 views

Hi,

I’m having a problem with the client side event RowDeleted, for some reason the RowDeleted event doesn’t get fired after I delete a record in my Grid.   Mind you that the record does get deleted.

My grid is setup to delete a selected row, I have implemented it in the following way:

My CommandItemTemplate looks like this

<CommandItemTemplate> 
  <div> 
    <div style="float:left;">  
      <asp:LinkButton runat="server" ID="btnCreateContactReg" BorderColor="Black" CommandName="InitInsert">  
        <img style="border:0px;vertical-align:middle;" alt="" src="IMG/AddRecord.gif" /> Nieuwe contact registratie  
      </asp:LinkButton> 
      <asp:LinkButton runat="server" ID="btnAssignCase" OnClientClick="showCaseWindow();">  
        <img style="border:0px;vertical-align:middle;" alt="" src="IMG/case.gif" /> Toewijzen klacht  
      </asp:LinkButton> 
      <asp:LinkButton runat="server" ID="btnDeleteContactReg">  
        <img style="border:0px;vertical-align:middle;" alt="" src="IMG/ico_16_delete.gif" CommandName="DeleteSelected" /> Verwijder contact registratie  
      </asp:LinkButton> 
    </div> 
    <div style="float:right;">  
      <asp:LinkButton runat="server" ID="btnRefresh" CommandName="Re bindGrid">  
        <img style="border:0px;vertical-align:middle;" alt="" src="IMG/refresh.gif" /> 
      </asp:LinkButton> 
    </div> 
  </div> 
</CommandItemTemplate> 
 

My clientsettings of my grid look like this:

<ClientSettings ClientEvents-OnRowDblClick="RowDblClick" ClientEvents-OnRowSelected="rowSelected" ClientEvents-OnRowCreated="RowCreated" ClientEvents-OnRowDeleted="RowDeleted">  
  <selecting allowrowselect="True" enabledragtoselectrows="False" /> 
  <ClientEvents OnRowDblClick="rowDblClick" OnRowSelected="rowSelected" OnRowCreated="RowCreated" OnRowDeleted="RowDeleted"></ClientEvents> 
  <Resizing AllowColumnResize="True" EnableRealTimeResize="True" /> 
</ClientSettings> 
 

My client side RowDeleted function looks like this (this one never gets fired):

function RowDeleted(sender, eventArgs)  
{  
  var table = eventArgs.get_tableView();  
  var rows = new Array();  
  rows = table.get_dataItems();  
                      
  if (rows.length > 1)  
    evalRegardingLock(true);  
  else 
    evalRegardingLock(false);  
}  
 

I’m also posting the code of my entire gird

<telerik:RadGrid ID="rgdContactReg" runat="server" AllowAutomaticDeletes="True" onitemcreated="rgdContactReg_ItemCreated" 
                             AllowAutomaticInserts="True" AllowAutomaticUpdates="True"   
                Skin="Office2007" PageSize="5" 
                             AutoGenerateColumns="False"   
                DataSourceID="ContactRegistration" onitemdatabound="rgdContactReg_ItemDataBound"   
                             AllowPaging="True" GridLines="None">  
                <PagerStyle Mode="NextPrevAndNumeric"   
                    PagerTextFormat="Verander pagina: {4} &amp;nbsp;Toont pagina {0} van {1}, contact registratie {2} van {3} tot {5}." /> 
                <MasterTableView datasourceid="ContactRegistration" DataKeyNames="id" CommandItemDisplay="Top"   
                                 EditMode="InPlace"   
                    ClientDataKeyNames="id,subjectid,description,productid" GridLines="None">  
                    <CommandItemSettings AddNewRecordImageUrl="IMG/AddRecord.gif" AddNewRecordText="Nieuwe contact registratie" RefreshText="Vernieuwen" /> 
                    <CommandItemTemplate> 
                        <div> 
                            <div style="float:left;">  
                            <asp:LinkButton runat="server" ID="btnCreateContactReg" BorderColor="Black" CommandName="InitInsert">  
                                <img style="border:0px;vertical-align:middle;" alt="" src="IMG/AddRecord.gif" /> Nieuwe contact registratie  
                            </asp:LinkButton> 
                            <asp:LinkButton runat="server" ID="btnAssignCase" OnClientClick="showCaseWindow();">  
                                <img style="border:0px;vertical-align:middle;" alt="" src="IMG/case.gif" /> Toewijzen klacht  
                            </asp:LinkButton> 
                            <asp:LinkButton runat="server" ID="btnDeleteContactReg">  
                                <img style="border:0px;vertical-align:middle;" alt="" src="IMG/ico_16_delete.gif" CommandName="DeleteSelected" /> Verwijder contact registratie  
                            </asp:LinkButton> 
                            </div> 
                            <div style="float:right;">  
                            <asp:LinkButton runat="server" ID="btnRefresh" CommandName="Re bindGrid">  
                                <img style="border:0px;vertical-align:middle;" alt="" src="IMG/refresh.gif" /> 
                            </asp:LinkButton> 
                            </div> 
                        </div> 
                    </CommandItemTemplate> 
                    <RowIndicatorColumn Visible="False">  
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn Visible="true" Resizable="False">  
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <NoRecordsTemplate> 
                        <div>Geen contact registraties gevonden!</div> 
                    </NoRecordsTemplate> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="subjectid" UniqueName="subject"   
                            Visible="False">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="Onderwerp"   
                            UniqueName="treeview">  
                            <ItemTemplate> 
                                <asp:Label runat="server" ID="lblSubjectTitel" Text="" /> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <uc1:SubjectTree ID="SubjectTree" runat="server" /> 
                            </EditItemTemplate> 
                            <HeaderStyle Width="200px" /> 
                            <ItemStyle Width="200px" /> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridBoundColumn DataField="description" HeaderText="Omschrijving"   
                                                 UniqueName="description">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridDropDownColumn DataField="productid" DataSourceID="odsProduct" UniqueName="product" 
                                                    HeaderText="Product" ListTextField="Name"   
                            ListValueField="id" EnableEmptyListItem="True"   
                            ColumnEditorID="editproduct">  
                            <HeaderStyle Width="200px" /> 
                            <ItemStyle Width="200px" /> 
                        </telerik:GridDropDownColumn> 
                        <telerik:GridTemplateColumn UniqueName="caselink">  
                            <ItemTemplate> 
                                <asp:HyperLink ID="hlnCase" runat="server"></asp:HyperLink> 
                            </ItemTemplate> 
                            <HeaderStyle Width="22px" /> 
                            <ItemStyle Width="22px" /> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridEditCommandColumn ButtonType="ImageButton"   
                            InsertImageUrl="IMG/Insert.gif">  
                            <HeaderStyle Width="25px" /> 
                            <ItemStyle Width="25px" /> 
                        </telerik:GridEditCommandColumn> 
                    </Columns> 
                    <EditFormSettings columnnumber="3">  
                        <EditColumn UniqueName="EditCommandColumn1" insertimageurl="IMG/Insert.gif"></EditColumn> 
                        <PopUpSettings ScrollBars="None"></PopUpSettings> 
                    </EditFormSettings> 
                    <ItemStyle Width="210px" /> 
                </MasterTableView> 
                <ClientSettings ClientEvents-OnRowDblClick="RowDblClick" ClientEvents-OnRowSelected="rowSelected" ClientEvents-OnRowCreated="RowCreated" ClientEvents-OnRowDeleted="RowDeleted">  
                    <selecting allowrowselect="True" enabledragtoselectrows="False" /> 
                    <ClientEvents OnRowDblClick="rowDblClick" OnRowSelected="rowSelected" OnRowCreated="RowCreated" OnRowDeleted="RowDeleted"></ClientEvents> 
                    <Resizing AllowColumnResize="True" EnableRealTimeResize="True" /> 
                </ClientSettings> 
            </telerik:RadGrid> 

Any help is appreciated

Kind Regards,

Mark

Iana Tsolova
Telerik team
 answered on 10 Sep 2008
1 answer
118 views
hello,$0$0$0$0i am using 2008.2.723.20 version of telerik controls.$0$0$0$0$0i am having a problem in IE and google chrome$0$0when i vertically scroll the page then radeditor on the page also scroll.$0$0$0$0$0please tell me the solution...$0$0$0$0$0thanks.$0
Rumen
Telerik team
 answered on 10 Sep 2008
4 answers
167 views
Can you highlight or change the font color of a single row item?  Not the whole row but a column in a row.  Something like the example below

column1     column 2        column 3
row 1            x                    x
row 2            x                    x
row 3            x                    x

Thanks!
Mike
Top achievements
Rank 1
 answered on 10 Sep 2008
3 answers
113 views
Ok, im trying to call a js function after I finish uploading a file.
I tried doing the normal RadAjaxManager1.ResponseScripts.Add("blah();");
but of course, I don't seem to be able to do that (I take it thats it's because of the upload). So how do I do it?
Matthew Bishop
Top achievements
Rank 1
 answered on 10 Sep 2008
6 answers
183 views
Hi,

I'm having trouble binding using a hierarchical datasource.
The menu is showing the items from the database, however they are all showing as first level items rather than sub-levels/child-items.
Please help - am sure I'm missing something very obvious!

ASPX code is:

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" ExpandAnimation-Type="InQuart" CollapseAnimation-Type="InOutQuart" ExpandMode="SingleExpandedItem" PersistStateInCookie="true" Skin="Default"></telerik:RadPanelBar>

C# code is:

public void setSideMenu(){
    var d = db.vptblIntranetMenuSelect();
    RadPanelBar1.DataFieldID =
"id";
    RadPanelBar1.DataFieldParentID =
"parentid";    
    RadPanelBar1.DataNavigateUrlField =
"url";
    RadPanelBar1.DataTextField =
"menu";
    RadPanelBar1.DataSource = d;
    RadPanelBar1.DataBind();
    RadPanelBar1.Items[1].Expanded =
true;
}


Steve
Top achievements
Rank 1
 answered on 10 Sep 2008
4 answers
190 views
I don't understand why filtering isn't working.  The difference with this grid compared to others I'm familiar with is this was implemented with DetailTables.

The DataSource of the grid is a IQueryable set of objects, so I don't think it's a problem there.

Unlike other grids in our application, when I (for example) filter on colText, my grid is not filtered, I just get back the same results.  It seems like I'm taking the same kinds of steps as other grids, allowing filtering where I want it.

Anything obvious I'm overlooking?

<telerik:RadGrid ID="grdQuestionsUsed" SkinID="MultirowSelect" EnableViewState="true" AllowFilteringByColumn="true" runat="server">
    
<ClientSettings>
        
<ClientEvents OnFilterMenuShowing="QuestionsUsedFilterMenuShowing" />
    
</ClientSettings>

    <MasterTableView 
            HierarchyLoadMode
="ServerBind" DataKeyNames="Id,IsQuestionGroup">

        <NoRecordsTemplate>
            
No Questions are used in this Template
        
</NoRecordsTemplate>

        <Columns>
            
<telerik:GridBoundColumn HeaderText="Question Text" 
                            DataField="Name"  UniqueName="colText" AllowFiltering="true" />
            
<telerik:GridCheckBoxColumn HeaderText="Soft Benefit" 
                            DataField="SoftBenefit" UniqueName="colSoftBenefit" 
                            
AllowFiltering="true" />
            
<telerik:GridEditCommandColumn ButtonType="LinkButton" 
                            
EditText="View/Edit" UniqueName="colEdit" />
            
<telerik:GridTemplateColumn HeaderText="Move Up/Down" 
                            AllowFiltering="false">
    
            <ItemTemplate>
                    
<asp:ImageButton ID="ibOrderUp" ImageUrl="~/images/uparrow.gif" 
                            CommandName="QuestionUp" runat="server" />
                    
<asp:ImageButton ID="ibOrderDown" ImageUrl="~/images/downarrow.gif" 
                            CommandName="QuestionDown" runat="server" />
                
</ItemTemplate>\
           </telerik:GridTemplateColumn>
        
</Columns>

        
<DetailTables>
            
<telerik:GridTableView Width="100%" AllowFilteringByColumn="false" 
                    DataKeyNames="QuestionID">

            <Columns>
                
<telerik:GridBoundColumn HeaderText="Question Text" DataField="Text" />
                
<telerik:GridCheckBoxColumn HeaderText="Soft Benefit" 
                        DataField="SoftBenefit" />
                
<telerik:GridEditCommandColumn ButtonType="LinkButton" 
                        EditText="View/Edit" UniqueName="colEdit" />
                
<telerik:GridTemplateColumn UniqueName="colGroup" AllowFiltering="false">
                    
<ItemTemplate>
                        
<asp:LinkButton ID="lbRemove" CommandName="Remove" 
                            Text="Remove From Group" 
                            OnClientClick="return confirm('Are you sure you want to remove this question from the group?');"
                            
runat="server" />
                        
<asp:ImageButton ID="ibUp" ImageUrl="~/images/uparrow.gif" 
                            CommandName="Up" runat="server" />
                        
<asp:ImageButton ID="ibDown" ImageUrl="~/images/downarrow.gif" 
                            CommandName="Down" runat="server" />
                    
</ItemTemplate>
                
</telerik:GridTemplateColumn>
            
</Columns>
            
</telerik:GridTableView>
        
</DetailTables>
    </MasterTableView>
</telerik:RadGrid>

Vlad
Telerik team
 answered on 10 Sep 2008
2 answers
84 views
Hi Telerik,
I have the following error:
error 1719 windows installer service could not be accessed

It is a Vista Home Premium 64

Thnaks in advance for your help
Raul Chico
Raul
Top achievements
Rank 1
 answered on 10 Sep 2008
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?