Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
633 views
Hi, 

I am using RadListBox with checkboxes for user to do multi-selections. But the select options in the list box is massive data, so the postback ViewState is huge. What I did to solve is set EnableViewState="false", then try to grab the checked item in request form. This is my code:

front end:
<telerik:RadListBox ID="listbox1" runat="server" CheckBoxes="true" EnableViewState="false"
                    SelectionMode="Single">
                </telerik:RadListBox>

back end:
var listbox = Request.Form[listbox1.ClientID + "_ClientState"];

The select options are populated in Page_Load().
First I noticed "Request.Form[listbox1.ClientID]" does not exist in the form returned, instead there is "Request.Form[listbox1.ClientID + "_ClientState"]". I guess it's a difference between RadListBox and regular ListBox I am not sure.  But I am not sure what should I do next.
I want to grab the checked options. How can I do that? What structure is the "ClientState"?

Or is there another better way to get ride of the Huge ViewState issue? I know this has been a pain from ASP.NET, but any help will be appreciated.

Thanks

Rui
Top achievements
Rank 1
 answered on 19 Nov 2013
3 answers
99 views
I have a situation in which the scheduler will already be open and an item will be added to one of the resources, either by another user or the current user on a different page. When the advanced form is shown, the new item is not in the list. Is there any way, short of refreshing the page, to trigger a refresh of resources?

Plamen
Telerik team
 answered on 19 Nov 2013
13 answers
548 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
130 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
56 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
182 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
153 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
119 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
113 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
269 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?