Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
hi all,
i've folllowed some of the examples here and managed to insert different formatting in <span> tags into the editor (using editor.fire pastehtml). Right now the formatting appear where the cursor is. Is there a way to insert directly at the end of the content in the editor no matter where the cursor is?
FYI, the contents are not within a div tag, just plain text. thanks in advance.
Rumen
Telerik team
 answered on 10 Mar 2010
5 answers
117 views
Hey,

When my page contains not much data, the splitter works fine. But when the page data increased (no Pagin in Gridview) and I open and close the slidingzonePane, the slidingzonepane won't collapse, it stays open with a white background color!

In attachment you can see 2 pictures:

    Collapsed.jpg: The collapsed slidingzone (correct)
    Collapsed-problem.jpg: The collapsed slidingzone when the page data is to big, it has just a white background and I must reload refresh the page!

Can someone help me?

Thanks,
Jan
Jan Fockaert
Top achievements
Rank 1
 answered on 10 Mar 2010
2 answers
253 views
Guys,
1.    I have a textbox with a tooltip
2.    I have a RadToolTipManager with AutoTooltipify="true" that show that tooltip
3.    I have a  RadComboBox. On clientchange event I need to change a tooltip in the textbox.

What is the best way to do this?

Thank you!
Svetlina Anati
Telerik team
 answered on 10 Mar 2010
3 answers
426 views
Hello

I've a radgrid in my application. I've specified the bound columns for the rad grid in the aspx page.

Now at the run time i want to add another column and insert it in a specific position in the radgrid. I want to persist it across the postbacks invoked by sorting, filtering etc.

Any insights on this?

Thank you
NLV
Yavor
Telerik team
 answered on 10 Mar 2010
0 answers
97 views
I am trying to build a comments engine for a website and need some insite where I should start?
Keen Speed
Top achievements
Rank 1
 asked on 10 Mar 2010
4 answers
141 views
Hello again, I asked for help with my radgrid programming in this topic here. This time, I have a related issue in this javascript function with the update part of it.

For reference, here's the function:
function KeyPressEnter(sender, args)  
    {  
        var $ = $telerik.$;  
        if (args.get_keyCode() != 13)  
            return;  
       
        var el = Telerik.Web.UI.Grid.GetCurrentElement(args.get_domEvent());  
       
        if (el.tagName.toLowerCase() != 'input' && el.tagName.toLowerCase() != 'textarea'return;  
          
        if (sender.get_masterTableView().get_isItemInserted())  
        {  
            var evt = args.get_domEvent();  
            //if (evt.stopPropagation) evt.stopPropagation();  
            if (evt.preventDefault) evt.preventDefault();  
            sender.get_masterTableView().insertItem();  
       
            return false;  
        }  
        var detailtables = sender.get_detailTables();  
          
        if (detailtables.length > 0) {  
            for (var i = 0; i < detailtables.length; i++){   
                if (detailtables[i].get_isItemInserted()) {  
                    var evt = args.get_domEvent();  
                    if (evt.preventDefault) evt.preventDefault();   
                    detailtables[i].insertItem();   
                      
                    return false;   
                }   
            }     
        }  
           
        if ($(el).parents("tr").attr("id") && $(el).parents("tr").attr("id") != "")  
        {  
            var evt = args.get_domEvent();  
            //if (evt.stopPropagation) evt.stopPropagation();  
            if (evt.preventDefault) evt.preventDefault();  
            sender.get_masterTableView().updateItem($(el).parents("tr")[0]);  
       
            return false;  
        }  
    }  
The part of code that updates items is made bold.

While this code in normal situation just works fine and updates my rows when pressing enter, I found a specific situation where it wouldn't work. In one detailview of my radgrid, I put some of the columns of that detailview in read only mode(in the item created event of the radgrid), so that users can only edit the specific fields of a row. It's in this detailview that the javascript generates and error when trying to use this update function. It will generate the error "object expected"  on this line:
if ($(el).parents("tr").attr("id") && $(el).parents("tr").attr("id") != ""
Further investigation reveals that it's this part: $(el) that generates the error.

After this, I tried playing around with putting columns in read only mode and using this function. I discovered that specifically, if the -first- column of a row is in read only mode when trying to use this code, it will generate an error. With any other column of that row in readonly mode it would work just fine, it's just that first column that generates the "object expected" error.

Do you have any idea how I could fix this issue without putting the first column of my detailview in edit mode?


Thijs van Gestel
Top achievements
Rank 1
 answered on 10 Mar 2010
5 answers
157 views
I'm currently trying to rebind a RadGrid. Everything is done using JS and webservices.
However, when the current selected row is removed and a rebind is performed, the grid is resetting to the first page.

I have tried different approaces, but I can't seem to find a suitable solution.

Is it a bug in the RadGrid, or am I supposed to handle this situation in some way.
The same behavior is observed when calling tableView.removeSelectedItems().


Thanks in advance
Kenneth
Yavor
Telerik team
 answered on 10 Mar 2010
1 answer
95 views
Hi,
In  Radgrid ,I want to do bind combobox with selected value in edit mode,but if selected value is null or blank then it throws exception.
"

Object reference not set to an instance of an object. "

 

 

<

 

telerik:RadGrid ID="grdSupplier" runat="server" GridLines="None" DataSourceID="odsSupplier"

 

 

ShowStatusBar="True" AllowPaging="true" OnUpdateCommand="grdSupplier_OnUpdateCommand" OnInsertCommand="grdSupplier_OnInsertCommand" AllowAutomaticDeletes="True" PageSize="50" AllowSorting="true" AutoGenerateColumns="False">

 

 

 

 

 

<MasterTableView DataSourceID="odsSupplier" OverrideDataSourceControlSorting="true" AllowSorting="true" DataKeyNames="Id" CommandItemDisplay="Top">

 

 

 

 

 

<EditFormSettings>

 

 

 

 

 

<EditColumn CancelText="Cancel" EditText="Edit" InsertText="Insert" UpdateText="Update" />

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

<RowIndicatorColumn>

 

 

 

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

<ExpandCollapseColumn>

 

 

 

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Id" HeaderText='<%$Resources:Ois,SupplierId %>'

 

 

 

 

 

SortExpression="Id" UniqueName="Id">

 

 

<ItemTemplate>

 

 

 

 

<%

#DataBinder.Eval(Container.DataItem, "Id")%>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Company" HeaderText='<%$Resources:Ois,Company %>'

 

 

 

 

 

SortExpression="Company" UniqueName="Company">

 

 

<EditItemTemplate>

 

 

 

 

 

<telerik:RadComboBox ID="RcbGrdCompanyId" runat="server" DataSourceID="odsCompany" SelectedValue='<%# Bind("CompanyIdInt")%>'

 

 

DataTextField="Name" DataValueField="ID" AppendDataBoundItems="True">

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

 

 

<%

#DataBinder.Eval(Container.DataItem, "Company.Name")%>

 

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="County" HeaderText='<%$Resources:Ois,County %>'

 

 

 

 

 

SortExpression="County" UniqueName="County">

 

 

<EditItemTemplate>

 

 

 

 

 

<telerik:RadComboBox ID="RcbGrdCountyId" runat="server" DataSourceID="odsCounty" SelectedValue='<%# Bind("CountyIdInt")%>'

 

 

 

 

 

DataTextField="Name" DataValueField="ID" AppendDataBoundItems="True">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$Resources:Ois, Select%>" Value="" />

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

 

 

<%

#DataBinder.Eval(Container.DataItem, "County.Name")%>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Municipality" HeaderText='<%$Resources:Ois,MunicipalityName %>'

 

 

 

 

 

SortExpression="Municipality" UniqueName="Municipality">

 

 

<EditItemTemplate>

 

 

 

 

 

<telerik:RadComboBox ID="RcbGrdMunicipalId" runat="server" DataSourceID="odsMunicipality" SelectedValue='<%# Bind("MunicipalityIdInt")%>'

 

 

DataTextField="Name" DataValueField="MunicipalNumber" AppendDataBoundItems="True">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadComboBoxItem runat="server" Text="<%$Resources:Ois, Select%>" Value="" />

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

 

 

<%

#DataBinder.Eval(Container.DataItem, "Municipality.Name")%>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="ExternalId" HeaderText='<%$Resources:Ois,ExternalSupplierId %>'

 

 

 

 

 

SortExpression="ExternalId" UniqueName="ExternalId">

 

 

<EditItemTemplate>

 

 

 

 

 

<telerik:RadNumericTextBox ID="TxtGrdExternalId" Type="Number" ToolTip="Enter Numeric Values " runat="server"

 

 

Text='<%# Bind("ExternalId") %>'></telerik:RadNumericTextBox>

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

 

 

<%

#DataBinder.Eval(Container.DataItem, "ExternalId")%>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Name" HeaderText='<%$Resources:Ois,SupplierName %>'

 

 

 

 

 

SortExpression="Name" UniqueName="Name">

 

 

<EditItemTemplate>

 

 

 

 

 

<asp:TextBox ID="TxtGrdSupplierName" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>

 

 

 

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

 

 

<%

#DataBinder.Eval(Container.DataItem, "Name")%>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="Email" HeaderText='<%$Resources:Ois,Email %>'

 

 

 

 

 

SortExpression="Email" UniqueName="Email">

 

 

<EditItemTemplate>

 

 

 

 

 

<asp:TextBox ID="TxtGrdEmail" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>

 

 

 

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

 

 

<%

#DataBinder.Eval(Container.DataItem, "Email")%>

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridCheckBoxColumn DataField="HasB2B" HeaderText='<%$Resources:Ois,HasB2B %>'

 

 

 

 

 

SortExpression="HasB2B" UniqueName="HasB2B"/>

 

 

 

<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="LinkButton" />

 

 

</Columns>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 10 Mar 2010
2 answers
71 views
Hi!

Is there a way that I can tell the radgrid, that I only want - for example - max. 20 characters to be shown in a column (optimal: replenished by "..."), although the database field is much longer (for example 50 characters). I do not want to use wrapping. Of course, when I get to the detail view of the datarow (EditMode = PopUp in conjunction with usercontrol), the whole content of the column should be displayed and editable.

Thanks

Michael
Michael
Top achievements
Rank 1
 answered on 10 Mar 2010
4 answers
137 views
Hi everyone,
I am pretty new to the whole salami and I have seen some posts about the subject, but I dont get it. If you click somewhere in a grid (in one of the cells), i want to know what is the columns uniquename this cell belongs to. I am coding in vb.net.

Ciao Peter.
peter
Top achievements
Rank 1
 answered on 10 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?