Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hello,

Is there any simple tutorial to start with Template Columns with constant data ? like in column types demo there is a mess of all columns types, it sounds creepy.
Shinu
Top achievements
Rank 2
 answered on 16 Feb 2011
0 answers
125 views
Hello,

I have a simple example in which the javascript function is executed after a postback to clear a load-on-demand box which allows
custom text to be entered:

function Clear(){
var combo = $find("<%= RadComboBox1.ClientID %>");  
combo.clearSelection(); 
}

When I put a break on the function, I can see that the combo object is having a value OK.
But the IE 8 browser complians the clearSelection() is not a valid method!

I tried to use the set_text() and set_value() but then I do not see the Empty message string!

Is there any way to preserve the empty message and de-select a item?

Thanks,
Sanjay

Any help

Sanjay
Top achievements
Rank 1
 asked on 16 Feb 2011
2 answers
57 views
Hi,

I have a Rad Grid. In that Rad Grid, I used the EditFormType="WebUserControl". 
So, I have a User Control. In that user control, I have a search button.
If click on the search button, I want to show the rad window (window.radOpen).

How can i write that javascript function in user control by radgrid?

Please help me out.

Regards,
Sundee.

Su
Top achievements
Rank 1
 answered on 16 Feb 2011
2 answers
241 views
Hi,

I am debugging an application that has just been upgraded to the ASP.NET AJAX controls from Classic.  I ran into the following problem.  I have these two lines of code:

RadDatePicker minValDate = new RadDatePicker();
minValDate.SelectedDate = new System.DateTime();

The second line gives me an error.  "Value of '1/1/0001 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.\r\nParameter name: SelectedDate"

According to MSDN "01/01/0001" is a legitimate minimum value of the System.DateTime().  So, I am wondering if there is something I am missing with my RadDatePicker.

Thanks,
Olga
Olga
Top achievements
Rank 1
 answered on 15 Feb 2011
4 answers
93 views
Hi there,

We are using the RadEditorProvider in our DNN site, and in the RadEditor's config file, we have the ContentFilters property set to "None". When in the editor, it still seems to be changing text while toggling between HTML and design views. The text it is changing is "<!-->", it is changing it to "<!---->". Any ideas on how to absolutely stop changing any text between views? We are using the RadEditorProvider version 4.9.1 and DNN 4.9.4. The version of the Telerik.Web.UI file is 2009.3.1103.20. Any assistance would be so greatly appreciated!

Regards,

Marco
Marco
Top achievements
Rank 1
 answered on 15 Feb 2011
2 answers
119 views
I have not been able to get the right search to answer this question.  Quite simply I want the imageurl to display on the right not the left.   The formatting looks messy because the image url comes and goes misaligning the text.

I have tried to implement the ItemTemplate   but cannot get a sample that binds to RadCombo  which is loaded dynamically creating combo items on the fly with search criteria.

protected void ddl_ItemsLoad(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            const int ItemsPerRequest = 40;...

I load up the items like this...   I also apply a search criteria on result to subset my response back.

                RadComboBoxItem item = new RadComboBoxItem(name, row["ID"].ToString());
                if (Manufacturer)
                    item.ImageUrl = "~/images/Manufacturer.png";
                result.Add(item);

I just cannot get the right magic to show the layout the way I want.   It works perfectly showing the image on the left, not where I want it.
Ken
Top achievements
Rank 1
 answered on 15 Feb 2011
0 answers
122 views
I have a tree view on my screen
<telerik:RadTreeView ID="RadTreeView1" runat="server" >
             <DataBindings>
              <telerik:RadTreeNodeBinding Depth="0" Expanded="true" />
          </DataBindings>
</telerik:RadTreeView

And I am adding the data from the code behind

var nData = from p in db.PeforrmanceDatas
        where p.PerformanceGroup.FundFamilyID == Int32.Parse(Request.QueryString["ffid"])
                        select new
                        {                            
                            p.PerformanceGroup.PerformanceGroupName,
                            p.Class,
                            p.ClassID
                        };
  
            RadTreeView1.DataTextField = "Class";
            RadTreeView1.DataFieldID="ClassID";
            RadTreeView1.DataFieldParentID = "PerformanceGroupName";
            RadTreeView1.DataSource = nData;
            RadTreeView1.DataBind();


If I do not include the DataFieldParentID it will load a single level tree but when I add the hierarchy it will not load the treeview.
Eric Klein
Top achievements
Rank 1
 asked on 15 Feb 2011
6 answers
150 views
Hello!

I have a radgrid, which has a user control as edit form. On the grid page i have a radajaxmanager.
In the user control i would like to use javascript functions (button->onclientclick). Therefor i have a radscriptblock.
The javascript in the user control causes an error because of the radajaxmanager (The javascript function has only an alert for testing). If i remove the radajaxmanager, everything works fine.
If searched a lot in the forum and testet  a view things without success.
Please can someone help me out of this problem?
Thank you!
Travis
Top achievements
Rank 1
 answered on 15 Feb 2011
2 answers
132 views
I'm trying to populate a dropdownlis using the selectedindexchanged event of another dropdownlist. the ddl i'm trying to put data in is enclosed in a radgrid. how to do i access the ddl to bind data to it programmatically? i'm attaching my code below, but

DropDownList channels = (DropDownList)RadGrid1.MasterTableView.FindControl("ddlChannels");

is the line of code causing my problem.

any help would be appreciated. thanks.

    <telerik:RadGrid id="RadGrid1" runat="server"
        AllowSorting="True" DataSourceID="SqlDataSource1"
        GridLines="None" AutoGenerateColumns="False" AllowPaging="True"
        PageSize="20" OnItemDeleted="RadGrid1_ItemDeleted" OnItemCreated="RadGrid1_ItemCreated" OnNeedDataSource="RadGrid1_NeedDataSource"
        OnItemInserted="RadGrid1_ItemInserted" OnInsertCommand="RadGrid1_InsertCommand" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemUpdated="RadGrid1_ItemUpdated">
<MasterTableView datakeynames="ChannelId,FmisServerId,PriorityId,StatusLevelId" CommandItemDisplay="TopandBottom" datasourceid="SqlDataSource1">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column">
        </telerik:GridEditCommandColumn>
        <telerik:GridBoundColumn DataField="IpAddress"
            FilterControlAltText="Filter IpAddress column" HeaderText="FMIS Server"
            SortExpression="IpAddress" UniqueName="IpAddress">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ChannelSubId"
            FilterControlAltText="Filter ChannelSubId column" HeaderText="Channel ID"
            SortExpression="ChannelSubId" UniqueName="ChannelSubId" DataType="System.Int32">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings EditFormType="Template">
    <FormTemplate>
        <table border="0" cellpadding="1" cellspacing="2" width="100%" rules="none" style="border-collapse: collapse; background: white;" id="table1">
            <tr>
                <td>FMIS Server:</td>
                <td>
                    <asp:DropDownList ID="ddlFmisServer" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFmisServer_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Channel ID:</td>
                <td>
                    <asp:DropDownList ID="ddlChannels" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </formtemplate>
</EditFormSettings>
</MasterTableView>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:MgmtServerConnectionString %>"
         
        SelectCommand="SELECT Channel.ChannelId, Channel.IsActive, Channel.IsAvailable, Channel.Timeout, Channel.ChannelSubId, FmisServer.IpAddress, Priority.Description, StatusLevels.StatusLevel, FmisServer.FmisServerId, StatusLevels.StatusLevelId, Priority.PriorityId FROM Channel INNER JOIN FmisServer ON Channel.FmisServerId = FmisServer.FmisServerId INNER JOIN Priority ON Channel.PriorityId = Priority.PriorityId INNER JOIN StatusLevels ON Channel.StatusLevelId = StatusLevels.StatusLevelId ORDER BY FmisServer.IpAddress, Channel.ChannelSubId">
    </asp:SqlDataSource>
protected void ddlFmisServer_SelectedIndexChanged(object source, EventArgs e)
{
 
    DropDownList fmisServers = (DropDownList)source;
 
    if (fmisServers != null)
    {
        int intIndex = fmisServers.SelectedIndex;
 
        try
        {
            // call a method that returns all channel ids and sub ids as a dataset
            DataSet dsChannelSubIds = new DataSet();
            string strErrorText = string.Empty;
            MgmtServerAdmin.App_Code.AdminLibrary.GetAllChannelsbyFmisServer(intIndex, out dsChannelSubIds, out strErrorText);
 
            DropDownList channels = (DropDownList)RadGrid1.MasterTableView.FindControl("ddlChannels");
 
            // clear list to guard against duplicate entries
            channels.Items.Clear();
 
            // bind new DropDownList to the dataset
            channels.DataSource = dsChannelSubIds;
            channels.DataTextField = "ChannelSubId";
            channels.DataValueField = "ChannelId";
            channels.DataBind();
 
        }
        catch (Exception ex)
        {
            //SaveErrorTrackingOnTable(MgmtServerLib.Library_ValidateRequestError_Error, ex.Message);
            throw ex;
        }
    }
}
areen
Top achievements
Rank 1
 answered on 15 Feb 2011
2 answers
88 views
I have a radgrid control using the vista skin. It has Scrolling enabled but it has some gray space or extra padding under the header before the first row. I also turned on filtering put the padding is still there under the filter section. Any thoughts on what causes this?

Robert Verderber
Top achievements
Rank 2
 answered on 15 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?