Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
I am having difficulty on a tooltip with grid and this grid has pagination.

Scenario:
Parent page -> radgrid with tooltip -> load ascx for tooltip
Tooltip (ascx) -> radgrid with pagination

If tooltip is shown and next page is clicked, nothing happens since it always call ajaxupdate and not the pagination event or the needdatasource event of the grid on the tooltip (ascx)

Kindly advise on this scenario.

Thanks.
Jayzle
Top achievements
Rank 1
 answered on 16 Dec 2012
0 answers
114 views
we are actually facing a problem when ever uploading occasionaly and we don't know the cause, please help us in this, below is a description of the exception we have.

The given key was not present in the dictionary.   at System.ThrowHelper.ThrowKeyNotFoundException()     at System.Collections.Generic.Dictionary`2.get_Item(TKey key)     at Telerik.Web.UI.AsyncUpload.AsyncUploadClientStateConverter.Deserialize(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer)     at System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)     at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)     at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)     at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serial

Stack Trace: 
   at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at ASP.attachments_aspx.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Muhahammad
Top achievements
Rank 1
 asked on 16 Dec 2012
1 answer
163 views

Is there a way to configure the RadRadialGauge for quadrant-style or semi-circle gauges.  The Silverlight gauges have this option, but I don't see it for the ASP.NET gauge controls.

http://www.telerik.com/help/silverlight/radial-scale-semicircle-gauge.html
http://www.telerik.com/help/silverlight/radial-scale-quadrant-style-gauge.html

Danail Vasilev
Telerik team
 answered on 15 Dec 2012
3 answers
498 views
Hello,

How can I show/hide the RadToolBar control using client-side javascript?

I've tried:
var toolBar = $find("<%=RadToolBar2.ClientID%>");
toolBar.set_visible(false);

and..

var toolBar = $find("<%=RadToolBar2.ClientID%>");
toolBar.hide;

Doesn't work!

Thank you!
Kevin
Top achievements
Rank 2
 answered on 15 Dec 2012
1 answer
98 views
Hi,
  Here is the situation:
   I have a master page with telerik menu control (ID=testMenu)with  2 top level menu items "A", "B" . In the page load event of this page, I have added 3 sub menus -a1,a2,a3 to "A"   [ testMenu.Items[0].Items.Add(new RadMenuItem("a1")); testMenu.Items[0].Items.Add(new RadMenuItem("a4")); testMenu.Items[0].Items.Add(new RadMenuItem("a3"));]

  . No issues till now... now trying to get the total sub menus under "A"   from content page load event using [ (RadMenu )Master.FindControl("testMenu") ).Items[0].Items.Count] , returns '0' always  .. Can you tell me why dynamically added menu is reflected inside menu control object.

Regards
Madhu
Kevin
Top achievements
Rank 2
 answered on 15 Dec 2012
1 answer
131 views
hello all,

how to display an image (retrieved from  DB as byte[]) inside an edit form template in radgrid ??

can anyone help me ?

thanks in advance
Jayesh Goyani
Top achievements
Rank 2
 answered on 15 Dec 2012
1 answer
56 views
I am facing a issue regarding the radgrid, in which a white space is coming below the pagination. 

I had already tried the solution which is suggested by support but not working and there is no other solution found.

Below is the previous post by other developer and has screen shot attached.

            http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid---having-extra-white-space-below-the-pagination.aspx

I am having same issue and there is no solution found and the solution provided by Telerik support seems to be doesn't work.

Please help, Thanks in advanced.

Mayur
Pavlina
Telerik team
 answered on 15 Dec 2012
2 answers
169 views

private void RadGrid_InitCol()
 {
       RadGrid1.AutoGenerateColumns = false;
       RadGrid1.Columns.Clear();
       GridBoundColumn boundColumn;
  
       boundColumn = new GridBoundColumn();
       boundColumn.DataField = "id";
       boundColumn.HeaderText = "id";
       boundColumn.UniqueName = "id";
       boundColumn.HeaderStyle.Width = Unit.Pixel(60);
       boundColumn.Visible = false;
       RadGrid1.MasterTableView.Columns.Add(boundColumn);
 
       String templateColName = "SO2";
       GridTemplateColumn templateColumn;
       templateColumn = new GridTemplateColumn() {
           UniqueName = "tempCol0",
           HeaderText = templateColName,
           ItemTemplate = new MyTemplate("0", templateColName)
           //EditItemTemplate = new MyEditTemplate(templateColName)   
       };
       RadGrid1.MasterTableView.Columns.Add(templateColumn);
}

protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
        if (e.Argument == string.Empty)
        {
             RadGrid1.Rebind();
             return;
        }
 
        String[] editedItemIds = e.Argument.Trim(':').Split(':');
        int i;
        for (i = 0; i < editedItemIds.Length; i++)
        {
            string id = editedItemIds[i];
            GridDataItem updatedItem = RadGrid1.MasterTableView.FindItemByKeyValue("id", int.Parse(id));
            TextBox txtBox = (TextBox)updatedItem.FindControl("txtBox");
         }
}

updatedItem["id"].Text=115102
updatedItem["tempCol0"] .Text=""  updatedItem["tempCol0"] .Controls.Count=0
-------------------------------------------------------------------------------------------------------------------------------
How to get the txtbox control?


Thanks!

Tony Liu
Top achievements
Rank 1
 answered on 15 Dec 2012
1 answer
111 views
Using the RadComboBox for the first time, I first implemented it on a test page to ensure I figured out how to implement it properly.  After a little trial & error, I got it working, displaying 2 columns of a DataTable as is shown in the first attachment.

Now I'm trying to implement it for real, which happens to be in a RadWindow dialog box.  Yet, as the 2nd attachment shows, it's not populating in the same way.  Not only does it only have just one column, but even the basic appearance of the collapsed RadComboBox is different:
  • In the test case it appeared grey in colour
  • In the RadWindow it appears white in colour, indistinguishable from the standard DropDown ListBox

What do I need to do with the RadWindow implementation to get it to populate correctly?

Robert

Robert
Top achievements
Rank 1
 answered on 15 Dec 2012
2 answers
195 views
To test out the RadComboBox I constructed a simple web page that has just this one control on it.  A small datatable (see attachment) is used to populate the control with this code:

radList.DataSource = CurrentPasses;
radList.DataTextField = "Description";
radList.DataValueField = "Master_Idx";
radList.DataBind();

My initial testing has revealed something strange: When I click on any item, the SelectedIndexChanged event is fired.

protected void radList_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

When I check "e.Text" the correct string is shown.  But when I check "e.Value" it always displays -1.  Why isn't it showing the correct "Master_Idx" value for that row?

Am I missing something or is this a known bug in the RadComboBox?

Robert
Robert
Top achievements
Rank 1
 answered on 14 Dec 2012
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?