Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
203 views
I'm using the scheduler with a SharePoint List as the datasource. I want to show a hyperlink for the Subject but it should only be a hyperlink if another Field in the ListItem is a certain value.

I got this code from another post:

        protected void Page_Load(object sender, EventArgs e)  
        {  
            RadScheduler1.AppointmentTemplate = new AppTemplate();  
        }  
 

public class AppTemplate : ITemplate  
{  
    private Literal subject;  
 
    public void InstantiateIn(Control container)  
    {  
        subject = new Literal();  
        subject.DataBinding += subject_DataBinding;  
 
        container.Controls.Add(subject);  
    }  
 
    private void subject_DataBinding(object sender, EventArgs e)  
    {  
        IDataItemContainer aptContainer = (IDataItemContainer)subject.BindingContainer;  
        int lId = (int)DataBinder.Eval(aptContainer.DataItem, "ID");  
        string strSubject = HttpUtility.HtmlEncode((string)DataBinder.Eval(aptContainer.DataItem, "Subject"));  
 
        SPWeb oWeb = null;  
        oWeb = SPContext.Current.Web;  
        String requestListName = "TravelCalendarList";  
        SPListItem itm = oWeb.Lists[requestListName].GetItemById(Convert.ToInt32(lId));  
        if (itm != null)  
        {  
            if (null != itm["RequestId"])  
            {  
                subject.Text = "<a href=\"" + oWeb.Url + "/default.aspx?ListId=" + lId + "\">" + strSubject + "</a>";  
            }  
            else 
            {  
                subject.Text = strSubject;  
            }  
        }  
    }  
} 

I added a breakpoint to subject_DataBinding and although I have 3 items returned from the SharePoint List (and I can see them correctly plotted in the Scheduler), the values that are returned in subject_DataBinding are always the same. Therefore it only applies a hyperlink to one Subject, the rest are blank.

Any ideas what I'm doing wrong here?
Peter
Telerik team
 answered on 19 Sep 2008
5 answers
123 views
Hi Rumen,

I need some help to load variable inside Image manager standardalone. I send one value with one javascript to codebehind to create custom folders. I read this value in the codebehind. My problem is that the image Manager is formed at Page_Load event and the value are catched before are sent at button event, resulting null. I can't read the value at load, because if user change I need to change the folder name. Could you suggest another solution to create the image manager not in Page_Load event but during button click or similar and the good instant to load the value to create the custom folders.

Regards
Lini
Telerik team
 answered on 19 Sep 2008
5 answers
190 views
Hi.
How to add item on client to multicolumn combobox?
Rosi
Telerik team
 answered on 19 Sep 2008
1 answer
80 views
Hi,

I am trying to create a facebook type page just like the ToolTip Manager example (here) where an ajax tooltip pops up for each asp:image within a Repeater control. However I also have buttons on the same page and I do not want the tooltip on the button controls.  How do include just the images from the repeater control and exclude all other controls?

Thanks.
Svetlina Anati
Telerik team
 answered on 19 Sep 2008
9 answers
328 views
Is it possible to remove the arrow button on the appointments in timeline view if the appointments is crossing the boundary of the timeline?

Thanks
Peter
Telerik team
 answered on 19 Sep 2008
5 answers
512 views
My parent page has a gridView -- which can easily have 1000+ rows.   This page loads relatively quickly (4 seconds or less).

I also have a button on the page, that opens the RadWindow via client-side javascript -- on the buttons onclientClick event I'm calling OpenRadWindow()

function

OpenRadWindow()
{

    var radWindow = GetRadWindowManager().GetWindowByName( 'rwAddItem');

    radWindow.Show();

}

I have the RadWindow control set to ReloadOnShow = false and , so it isn't attempting to reload the page again when I show it. I've also set ShowContentDuringLoad to true on the RadWindow control.   Both have provided no improvement.

When the parent's gridView has a small amount of data it shows just fine. But in cases where I have many more rows in the grid, and I click the button to show the radwindow, it is VERY VERY SLOW. But since i'm doing this all client-side, no server side postbacks, shouldn't this all be relatively quick. 

The contents of the window, when loaded in a standard browser window load just fine, so I just don't understand why it would load so slowly based on teh content of the parent page.

Thanks!
Debbie

Tervel
Telerik team
 answered on 19 Sep 2008
3 answers
261 views
Hi,$0$0$0$0i'm using a RadGrid with user control for editing and inserting data.$0$0I looking for a possibility to keep the actual item in edit mode after updating. Actual after clicking update  the grid collapse and only the rad grid row without the embedded edit form is shown.$0$0$0$0$0I tried with the EditItems collection but found no solution.$0$0$0$0$0Is there a similar statement like EditItemIndex?$0$0$0$0$0Thanks in advance for help.$0$0Regards$0$0Stefan$0$0$0$0$0$0$0
Stefan
Top achievements
Rank 1
 answered on 19 Sep 2008
3 answers
107 views
Hi ,

I have created a custom control rendered with HTML. I want to implement ajax to my custom control.iwant to make them ajax enabled. please find the render code  below.

 



writer.RenderBeginTag(

HtmlTextWriterTag.Table);
writer.RenderBeginTag(HtmlTextWriterTag.Tr);
writer.RenderBeginTag(
HtmlTextWriterTag.Td);
 lblGroup.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddGroup.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderEndTag(); // tr
//--------Second Row--------
writer.RenderBeginTag(HtmlTextWriterTag.Tr);
writer.RenderBeginTag(
HtmlTextWriterTag.Td);
lblUser.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderBeginTag(HtmlTextWriterTag.Td);
ddUser.RenderControl(writer);
writer.RenderEndTag();
// td
writer.RenderEndTag(); // tr
writer.RenderEndTag(); // table

please  help me in this venture.....

Thnks

Sebastian
Telerik team
 answered on 19 Sep 2008
4 answers
290 views
 
Hi,


How can i access the footer item of details table in server validator.

the below coding is not entering into the loop

Please find the solutions.

   foreach (GridFooterItem fooitem in UI_GrdSchedule.MasterTableView.DetailTables[0].GetItems(GridItemType.Footer))
            {
                DropDownList ddlFitemOperatorA = ((DropDownList)(fooitem.FindControl("ddlFitemOperatorA")));
                user1 = Convert.ToInt16(ddlFitemOperatorA.SelectedValue);
}

Regards,
KamalPriya
Devi
Top achievements
Rank 1
 answered on 19 Sep 2008
1 answer
102 views
I am getting an "Stack Overflow at line: 356" error on my page with the Telerik radControls for ASP.NET and Telerik radControls for AJAX.  I get this error when I fill in part of the form and click a button on the page.  The whole page is wrapped in a RadAjaxPanel.

The page is using the RadAjaxManager, RadAjaxPanel, AjaxLoadingPanel, RadInput, as well as the RadToolTip.

I am using version 2008.02.0723.35 for the Telerik.Web.UI dll, RadAjax version 1.8.5.0, and RadInput version 2.1.5.0.

I read a forum posting about setting EnableOutsideScripts="False" but that didn't fix the problem when I tried it.

Any ideas?
Iana Tsolova
Telerik team
 answered on 19 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?