Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
122 views
Hi ...

How to set paging concept in rad grid...?

i have one dropdown like ....

 

<asp:DropDownList ID="DropDownList1" runat="server">

 

 

<asp:ListItem Value="10"></asp:ListItem>

 

 

<asp:ListItem Value="20"></asp:ListItem>

 

 

<asp:ListItem Value="30"></asp:ListItem>

 

 

</asp:DropDownList>

 

If i select 10 from tht dropdown the grid only show 10 record...

how to i solve this problem  ..
Sebastian
Telerik team
 answered on 06 Oct 2008
1 answer
127 views
I have a grid where users can edit the items in an autogenerated Popup Form. I need to present help texts to the user in edit mode.

I understand that I can use the EditFormHeaderTextFormat property to alter the header in edit mode, but I would like to insert a user control in the header table cell since I already have a help-icon-user-control that we use on the rest of our site (this control is a small questionmark-image which displays the help text onhover, so it is not just a plain text string).
Is there any way I can add controls to the header table cell in edit mode?

Or is my only option to make a Template of the edit form?
Yavor
Telerik team
 answered on 06 Oct 2008
1 answer
194 views
I have a scenario where I have two menus on the same page. The problem is when one of the menus items hovers over the other. When either of the menus is active everything is fine, however, when I switch from one menu to the other the second menu shows up above the first menu for the second or so the first menu hides. I've tracked this down to how the z-indexes are set on the div with the rmSlide CSS class. For both menus the z-index is set to 5 (I noticed this using FireBug) so it makes sense that neither has a priority. I would like the first menu to be always on top. Settings the z-index using CSS does not help because the value set in the CSS file is overridden in code via JavaScript.

Any thoughts? Thanks.
Yana
Telerik team
 answered on 06 Oct 2008
3 answers
628 views

Hi,

 

I’m trying to bind a GridDropDownColumn dynamically to a RadGrid.

Each row in the RadGrid has an independent GridDropDownColumn and values in these dropdown is not the same in the rest of the rows.

Say, there a row ‘CountyCode’ and has a GridDropDownColumn with a set of CountryCodes.

And the next row may be States and the GridDropDownColumn will have the StatesList.

But when I identify the GridDropDownColumn with a UniqueName, all the dropdown vales in the Grid gets updated with the last set of values.

(Got an example from telerik.com to Customize/Configure GridDropDownColumn)

 

Please let me know how to identify a specific row in a RadGrid & just bind that GridDropDownColumn in that row.

 

Here is the code I’m working on.

 

protected void RadGrid_ItemDataBound (object sender, Telerik.Web.UI.GridItemEventArgs e)

    {

        if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode)

        {

            GridEditableItem editedItem = e.Item as GridEditableItem;

            GridEditManager editMan = editedItem.EditManager;

 

            int i = 0;

            foreach (CommonConfigurationDataItem cd in _configData)

            {

                try

                {

                    if (cd.Values != null && cd.Values.Count > 0)

                    {

                        GridDropDownColumnEditor editor = editMan.GetColumnEditor("List") as GridDropDownColumnEditor;

                        editor.DataSource = cd.Values;

                        editor.DataBind();

                    }

                 

                  //’i’ would be a row index – How do I access the GridDropDownColumn in that row using i//

                }

                i++;

            }

 

        }

    }

 

private void AddComboBoxPDValues()

      {

        if (RadGrid.Columns.Contains("List"))

            RadGrid.Columns.Remove("List");

 

        GridDropDownColumn List = new GridDropDownColumn();

        List.HeaderText = "Provisioned Values";

        List.ReadOnly = false;

        List.UniqueName = "List";

        RadGrid.Columns.Add(List);

      }

 

Thanks!

 

Vinya

 

Iana Tsolova
Telerik team
 answered on 06 Oct 2008
8 answers
232 views
I am fairly new to Telerik Controls and have been looking forward to the Scheduler.  I have followed the documentation for "Declarative Data Binding", created my database in SQL Server 2000 with the same column names in the tables as the documentation, matched the ASPX code pretty much line-for-line, and when I run the application the Scheduler appears but the hours/time slots do not show and none of the appointments are visible (I created 3 dummy appointments).  If I run the application with exampleScheduler.Appointments.Count and check the value returned I get "3" so I know the database is making the connection and retrieving the data.  Can you provide some insight as to what I am missing in code or property settings?  Thanks.

Steve
Top achievements
Rank 1
 answered on 06 Oct 2008
4 answers
270 views
I have a grid bound to an object datasource.  I also have my own filter control that I've created.  How can I filter multiple columns programmatically using my own filter control.  I've tried several examples from the forums and knowledgebase (primariliy setting the CurrentFilterFunction and CurrentFilterValue properties of the individual columns and setting the FilterExpression property of the MasterTableView and rebinding the datasource).  Do I just need to filter my datasource and and rebind it to the grid?
Yavor
Telerik team
 answered on 06 Oct 2008
2 answers
62 views
How can I conditionally bring up the LinkManager or MOSSLinkManager?  I want to bring up the MOSSLinkManager for IE only (Since it only works in IE).

Since this is set in the xml files, I added a conditional around the MOSSLinkManager function in the MOSSEditorTools.js file.  However, I don't know how to call the LinkManager dialog from this .js file (for the non-IE case).

Any help would be appreciated.

Thanks!
George
Telerik team
 answered on 06 Oct 2008
3 answers
179 views
Hi there,

We are trying to override the Default 'New Item' form for a SP List. We are doing this by implementing a Custom List Form for a SP List. We have enabled RadEditor to be used for editing items within SP.

When we insert a Custom List Form the form fails. We receive the following error:

[ArgumentNullException: Value cannot be null.

Parameter name: value]

   System.Collections.CollectionBase.OnValidate(Object value) +2742430

   Telerik.WebControls.RadEditorUtils.ToolbarCollection.OnValidate(Object value) +9

   System.Collections.CollectionBase.System.Collections.IList.Remove(Object value) +37

   Telerik.WebControls.RadEditorUtils.ToolbarCollection.Remove(Toolbar toolbar) +5

   Telerik.SharePoint.ListFieldEditor.RadHtmlListField.OnLoad(EventArgs e) +442

   System.Web.UI.Control.LoadRecursive() +47

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Control.LoadRecursive() +131

   System.Web.UI.Control.AddedControl(Control control, Int32 index) +318

   System.Web.UI.ControlCollection.Add(Control child) +146

   System.Web.UI.Control.AddParsedSubObject(Object obj) +38

   Microsoft.SharePoint.WebPartPages.WebPart.AddParsedSubObject(Object obj) +879

   Microsoft.SharePoint.WebPartPages.DataFormWebPart.CreateChildControls() +1036

   System.Web.UI.Control.EnsureChildControls() +87

   System.Web.UI.Control.PreRenderRecursiveInternal() +50

   System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Control.PreRenderRecursiveInternal() +170

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041

Also, when viewing the List Form within SharePoint Designer, the field control does not render and gives the error:
"Failed to render "Description" column because of an error in the "Multiple lines of text" field type control. See details in log. Exception message: the RadControls folder was not found."

Thanks!
Gavin

George
Telerik team
 answered on 06 Oct 2008
1 answer
121 views
I am converting from the old ASP.Net controls to the ASP.Net Ajax controls.  For RadEditor, when I click on the Find and Replace Icon, I don't have a dialog popping up.  Instead I have a box in the tool bar area with a red banner at the top that says "FindReplace" with a Find box and a Find button.  The Find button DOES work.  However, If I select with my cursor and scroll inside the "box", there are other controls that were not visible, including the Close button.

What do I need to do to see the entire dialog?

I am using version 2008.2.826.20
Lini
Telerik team
 answered on 06 Oct 2008
1 answer
760 views
Hi! Is it possible set time in RadDateTimePicker invisible in code? I need it sometimes to be shown, and sometimes not. I could use both RadDatePicker and RadDateTimePicker and show / hide them, but I would like more to use only one (DateTime) and hide time if needed.
Thanks, Ana
Vlad
Telerik team
 answered on 06 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?