Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
46 views
Hi
What's the problem of these codes?
<telerik:RadRotator ID="RadRotator1" runat="server" FrameDuration="3000"
        RotatorType="SlideShow" ScrollDirection="Down" Height="190px" ItemHeight="30px"
        Width="178px">
        <Items>
        <telerik:RadRotatorItem>
        <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/main-bg.jpg" />
        </ItemTemplate>
        </telerik:RadRotatorItem>
        <telerik:RadRotatorItem>
        <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/main-bg.jpg" />
        </ItemTemplate>
        </telerik:RadRotatorItem>
        <telerik:RadRotatorItem>
        <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/main-bg.jpg" />
        </ItemTemplate>
        </telerik:RadRotatorItem>
        <telerik:RadRotatorItem>
        <ItemTemplate>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/main-bg.jpg" />
        </ItemTemplate>
        </telerik:RadRotatorItem>
        </Items>
        <ItemTemplate>
             
        </ItemTemplate>
    </telerik:RadRotator>
Marin Bratanov
Telerik team
 answered on 05 Sep 2012
1 answer
47 views
It doesn't seem to matter what I do, when trying to create a new skin, I get the error:

Failed to create skin!

A server error has occured.
We have been notified and will try to resolve it ASAP.
Sorry for the inconvenience.
I have tried in IE 9 and Chrome. 
David
Top achievements
Rank 1
 answered on 05 Sep 2012
9 answers
276 views
I am building a radgrid programmatically in the code behind.  I have been unsuccessful in changing the text box width.  I have tried all sorts of different variations of header-style properties along with mastertable view settings.  I am new to the RadGrid controls and here is how I am currently adding my fields to the radgrid.
Dim boundColumn As GridBoundColumn
boundColumn = New GridBoundColumn()
gridPrgGrpDefinition.MasterTableView.Columns.Add(boundColumn)
boundColumn.DataField = "GrantName"
boundColumn.HeaderText = "Grant Name"
boundColumn.EditFormColumnIndex = 0
boundColumn.HeaderStyle.Width = Unit.Percentage(35)

Doug

Doug
Top achievements
Rank 1
 answered on 05 Sep 2012
5 answers
194 views
The documentation seems to point out that you can use NodeTemplates when using a DataSource, but if I have a SiteMap declaritvely populated how can define a Node template and use the Text value of the Node in the template?

Code sample (see the bold black text - this is where the telerik documentation would use the databinder to bind to a datasource, but I just want to be able to determine how the node with the text value is represented. I could just type it in I guess? ):
<telerik:RadSiteMap ID="SiteMap" CssClass="subNavSiteMap" runat="server" EnableEmbeddedBaseStylesheet="False" EnableEmbeddedSkins="False">
    <LevelSettings>
        <telerik:SiteMapLevelSetting Level="0" ListLayout-RepeatColumns="3" ListLayout-RepeatDirection="Horizontal">
        </telerik:SiteMapLevelSetting>
    </LevelSettings>
    <Nodes>
        <telerik:RadSiteMapNode Text="Menu 1" runat="server">
            <NodeTemplate>
                <h3 class="Header">
                    [show the text from the SiteMapeNode: Menu 1]</h3>
            </NodeTemplate>
            <Nodes>
                <telerik:RadSiteMapNode Text="SubMenu 1" NavigateUrl="" runat="server">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode Text="SubMenu 2" runat="server">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode Text="SubMenu 3" runat="server">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode Text="SubMenu 4" runat="server">
                </telerik:RadSiteMapNode>
            </Nodes>
        </telerik:RadSiteMapNode>
        <telerik:RadSiteMapNode Text="Menu 2" runat="server">
            <Nodes>
                <telerik:RadSiteMapNode Text="SubMenu 1" runat="server">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode Text="SubMenu 2" runat="server">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode Text="SubMenu 3" runat="server">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode Text="SubMenu 4" runat="server">
                </telerik:RadSiteMapNode>
                <telerik:RadSiteMapNode Text="SubMenu 5" runat="server">
                </telerik:RadSiteMapNode>
            </Nodes>
        </telerik:RadSiteMapNode>
    </Nodes>
</telerik:RadSiteMap>

Regards,
Jacques
Kate
Telerik team
 answered on 05 Sep 2012
1 answer
204 views
I have a RadGrid in which first column has value as hyperlink. OnClick event of which I open a contextMenu option for that row.

The problem I am facing now is most of the Radgrid client events do not get fired. Specifically click events do not get fired when clicked on the link in the row column. How can I have OnRowClick, or OnRowSelected fired before my context menu script gets fired (which is OnClick for the hyperlink data on that row column).

Thank you
Eyup
Telerik team
 answered on 05 Sep 2012
1 answer
99 views
I am using RAD Image editor on Sharepoint 2010 site to edit images from doc library. (intended document library contains Audio, Video, Images, Documents(word, PDF) etc.)

My issue is when I click on image items, page works fine, image gets loaded into page, I can edit it and save it as per requirement.
but when I click on any  media other than image type, page is crashed with error "Parameter is not valid. "

this error occures in (from stack trace)
Telerik.Web.UI.RadImageEditor.GetCurrentEditableImage() +251
Telerik.Web.UI.RadImageEditor.ApplyClientOperations() +35
Telerik.Web.UI.RadImageEditor.ControlPreRender() +27

I wish to handle the selection of media other than image type in my code with appropriate message, 
but it seems that prerender is being called even before page_load.

please suggest me the reason of error and how to handle it.
here is complete stack trace 

[ArgumentException: Parameter is not valid.]
   System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData) +430
   System.Drawing.Image.FromStream(Stream stream) +14
   Telerik.Web.UI.ImageEditor.CacheImageProvider.LoadImage(String imageUrl, String physicalPath, HttpContext context) +234
   Telerik.Web.UI.RadImageEditor.GetCurrentEditableImage() +251
   Telerik.Web.UI.RadImageEditor.ApplyClientOperations() +35
   Telerik.Web.UI.RadImageEditor.ControlPreRender() +27
   System.Web.UI.Control.PreRenderRecursiveInternal() +108
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Control.PreRenderRecursiveInternal() +224
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
If you wish I can provide screen shot of error also Looking forward for your suppport.
Vessy
Telerik team
 answered on 05 Sep 2012
1 answer
59 views
I am unable to retain the selected value of combo box in Item command event when I selects a value the previous value of the selected event is getting displayed how can resolve this
Eyup
Telerik team
 answered on 05 Sep 2012
3 answers
449 views
Hi,
       
                In my aspx page, I got two List view and an add button. I am trying to remove one row from the list view and adding it to another List view. The button click event is working fine for the first time. But not working on the second time.

My settings

<telerik:AjaxSetting AjaxControlID="cmdAdd">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="lv1" /> 
                    <telerik:AjaxUpdatedControl ControlID="lv2" />             
                </UpdatedControls>
</telerik:AjaxSetting>

if I remove the above settings code, the button click event is working fine. 

When I checked the generated html on firebug  the following click event disappears on second time. Any idea how to fix it? am I missing any settings? Thanks for the help. 

onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$cmdAdd','')" 





Vasil
Telerik team
 answered on 05 Sep 2012
1 answer
99 views
Dear Telerik,

I've got a RadGrid, which has been filled with data from EntityDataSource - perfect. First column contains a GridEditCommandColumn, which fires correctly and display a FormTemplate with plenty of TextBoxes, FormTemplate contains also w RadButton with CommandName="Update" (and Cancel) - data updating works perfecty.
One of bound columns is a "Status_ID" column, which is related to another table (MSSQL). Statuses are displayed (inside FormTemplate) with RadTreeView control - also works perfectly. Unfortunately I could not find any solution for "automagical" binding "SelectedValue" of RadTreeView control with some of "Bind(column)" expression, so I've used the "NodeDataBound" event and if node.Value equals my Status_ID I select it.

Unfortunately the problem is, when I'd like to change another node from RadTreeView and fire data updating. Now I'm using such method (just after NodeClick)

var n = (e.Node);
int selectedStatus = int.Parse(e.Node.Value.ToString());
if (Respondent_Current == null)
{
  int respondentId = int.Parse((this.RadGrid_Respondent.EditItems[0] as GridDataItem).GetDataKeyValue("ID").ToString());
  Respondent_Current = Csi_Entities.PB_Respondent.Where(i => i.ID.Equals(respondentId)).First();
}
if (Respondent_Current != null)
{
  Respondent_Current.Status_ID = selectedStatus;
  this.Csi_Entities.SaveChanges();
  this.RadGrid_Respondent.Rebind();
}
else { //Crap }


Which works, but it's ugly - when I update textboxes AND i update RadTreeView just after and I submit, the textboxes-changes are ignored where status is updated correctly - but it's obvious with my solution.

What would be nice:
1. When node click - update an entity object which is used by FormTemplate (not the new one).
- Maybe I should update data by accessing the (EditItems[0] as GridDataItem).DataItem as MyEntity)? Will it work?
2. On CommandName="Update" fired, all controls might be successfully updated - am I right?

Thank you for ur time & help ;)

All the best,
Przemek M. Zawada
Vasil
Telerik team
 answered on 05 Sep 2012
5 answers
290 views
In my Radscheduler I am giving 15 minutes interval with MinutesPerRow="15"  and the time panel shows time as 8:00 am,8:30 am,9:00 am etc  even though there is 15 min interval in between.

How can I show 8:00 am,8:15 am,8:30 am etc in the scheduler time panel so that user can easily distinguish the time interval.

Thanks,
Soumya
Helen
Telerik team
 answered on 05 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?