Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
572 views
I have AllowColumnResize="true" and I would like to set a minimum column size for the column resize drag.
I do not like the 'column width must be non negative' message that pops up if I drag the size past 0 or stop the drag at less than 10 pixels. Sometimes It causes error's or put the column into reorder drag mode.
In my application, there is no reason to set the column size below 30 pixels.
I would like the drag to simply not allow the width to get below 30 pixels. This would avaoid the message and also keep my filter row from wrapping the image.
I understand that this may not be possible without changing the source code.
If so, is there anyway to set the column size to 30 whenever the user tries to make it less than 30 (after the drop).
I have tried resizing the column back to the minimum in OnColumnResized, but calling resizeColumn(index,width) from within the call causes the header and item widths to differ (and also causes an error sooner or later).

Any ideas would be appreciated.



Dave Wolf
Top achievements
Rank 1
Iron
 answered on 19 Nov 2013
5 answers
135 views
Just updated to the latest version today and noticed buttons aren't skinning correctly when inside a raddock inside a raddockzone (I'm using custom skins). See attached images.

Fixed by adding this style to my page with docks on the page:

.RadDockZone, .RadDockZone * {
box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
}

Cradz
Top achievements
Rank 1
 answered on 19 Nov 2013
1 answer
63 views
Hi all,

I'm facing an issue with TabPanel where the controls inside the ContentTemplate are not added to .designer.cs file (using Web Application project). That means I can't reference those controls like I can for those inside templates in UpdatePanel, etc. The only way is to use .FindControl("") and assign the result to a special class field I create.

Any ideas? Thanks.
Hristo Valyavicharski
Telerik team
 answered on 19 Nov 2013
2 answers
199 views
Hi,

I am having a strange issue that I haven't met before. I am using asp.net ajax tools for years now and loving the radEditor component. I took two screenshots to show the issue. You can see them in attached files.

The thing is, I am using Bootstrap 3 for design of the site and using it's modal component to save and edit records. I have a radEditor inside the modals that have ToggleScreenMode button in the toolbar. When I click to toggle to FullScreen, editor are expands to screen size starting from the original top left corner and cannot be accessed because of the gray modal. I tried to set its position attributes thinking that it uses an absolute positioning but couldn't find a solution with that.

The question is, how can I use radEditor fullscreen function when the editor is placed inside a modal container which has a position of absolute?

Thanks...

EDIT: Reattached 2nd screenshot. Ignore the first 2.jpg please.
İlter
Top achievements
Rank 1
 answered on 19 Nov 2013
3 answers
166 views
Hi ,

I have use 2 radgrid in a webpage ...
if I scroll the web page down and click on the Page size dropdown , then drop down list not appears with respective position...
Can you please help me sort out this problem...
Viktor Tachev
Telerik team
 answered on 19 Nov 2013
2 answers
130 views
Hi,

I am using radEditor with ToolBarMode="ShowOnFocus" attribute. I decided to show only the buttons for text editing in textbox mode, and want to offer full functionality when toggled to full screen. How can I implement this? Should I use server side code for this, or client side API will be enough?

Thanks...
İlter
Top achievements
Rank 1
 answered on 19 Nov 2013
1 answer
125 views
Im confused as how this should work. I've setup a schedule and now want to add a dropdownlist to both the advanceinsert and inlineinsert. Everything works fine in the advanced form but I cant get the inilneform to work. Not sure how to get it going. I've looked at every demo as well as every forum post and cant seem to figure it out.

Any help would be great.

<InlineInsertTemplate>
    <div>
        <asp:DropDownList ID="ddlOrganizations" runat="server" Width="238px"></asp:DropDownList>
        <br />
        <telerik:RadTextBox ID="rtbSubject" runat="server" TextMode="MultiLine" Columns="35" EmptyMessage="Title" Text='<%# Bind("Subject") %>'></telerik:RadTextBox>
        <br />
        <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">
            Submit
        </asp:LinkButton>
        <asp:LinkButton ID="InsertMoreButton" runat="server" CommandName="More">
            Advanced
        </asp:LinkButton>
          
        <asp:LinkButton ID="CancelButton" runat="server" CommandName="Cancel">
            Cancel
        </asp:LinkButton>
    </div>
</InlineInsertTemplate>
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        SetupResources();
    }
}
 
 
private void SetupResources()
{
    ResourceType resType = new ResourceType();
    resType.ForeignKeyField = "OrganizationID";
    resType.DataSource = Organizations.OrganizationList(false);
    resType.KeyField = "OrganizationID";
    resType.Name = "Organization";
    resType.TextField = "OrganizationName";
    rsProjectSchedule.ResourceTypes.Add(resType);
}

protected void rsProjectSchedule_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
    if (e.Container.Mode == SchedulerFormMode.Insert)
    {
        DropDownList ddl = (DropDownList)e.Container.FindControl("ddlOrganizations");
        ddl.DataSource = Organizations.OrganizationList(false);
        ddl.DataTextField = "OrganizationName";
        ddl.DataValueField = "OrganizationID";
        ddl.DataBind();
    }
}


Boyan Dimitrov
Telerik team
 answered on 19 Nov 2013
2 answers
279 views
Hello,

I have a RadGrid that contains two cell's, one a gridboundcolumn and the other is an itemtemplate ( Check Box ). When the checkbox is unChecked (CheckBoxChanged) I need to clear the contents of the GridBounfColumn, but am not having much luck. 

How can I update the GridBoundColumn cell's value on the OnCheckChanged event?

Thanks,

SteveO
JSON
Top achievements
Rank 1
 answered on 19 Nov 2013
8 answers
137 views
I'm facing a very singular behaviour in my RadGrid.
I have some GridCheckBoxColumn(s) that I mangled in code behind (ASP.NET 4.5 WebForms) to show nome nicer labels in "view" mode and revert back to checkbox in edit mode.
The code is:
Protected Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
    ' Display booleans with text labels when grid is not in editing mode
    If TypeOf e.Item Is GridDataItem AndAlso Not e.Item.IsInEditMode Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
 
        Dim verifiedCheck As Boolean = DirectCast(item("IsVerified").Controls(0), CheckBox).Checked
        Dim activeCheck As Boolean = DirectCast(item("IsActive").Controls(0), CheckBox).Checked
        Dim approvedCheck As Boolean = DirectCast(item("IsApproved").Controls(0), CheckBox).Checked
        Dim lockedCheck As Boolean = DirectCast(item("IsLockedOut").Controls(0), CheckBox).Checked
 
        If verifiedCheck Then
            item("IsVerified").Text = "<span class=""label label-success autowidth"">Ok</span>"
        Else
            item("IsVerified").Text = "<span class=""label label-warning autowidth"">No</span>"
        End If
 
        If activeCheck Then
            item("IsActive").Text = "<span class=""label label-success autowidth"">Ok</span>"
        Else
            item("IsActive").Text = "<span class=""label label-important autowidth"">No</span>"
        End If
 
        If approvedCheck Then
            item("IsApproved").Text = "<span class=""label label-success autowidth"">Ok</span>"
        Else
            item("IsApproved").Text = "<span class=""label label-warning autowidth"">No</span>"
        End If
 
        If lockedCheck Then
            item("IsLockedOut").Text = "<span class=""label label-warning autowidth"">Ok</span>"
        Else
            item("IsLockedOut").Text = "<span class=""label label-success autowidth"">No</span>"
        End If
    End If
End Sub

It works beautifully as you can see in the following screenshot:
Screenshot 1

Now the problem arise when I click on the little arrow to expand a row and show the content of my NestedViewTemplate. For some reason I come up with empty checkboxes all over the page, as documented in this second screenshot:
Screenshot 2

Thanks in advance as always.
Massimiliano
Top achievements
Rank 1
 answered on 19 Nov 2013
5 answers
703 views
I would like to hide a GridCommandItem button during the grid loading process if a field in the Grid is null. I don't know which event would be best to accomplish this in. Thanks for any help.
Daniel
Telerik team
 answered on 19 Nov 2013
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?