Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
242 views
Hi,

I am struggling with how to pass a context variable to the insert logic in a user control edit form when Add a new Row is selected in a grid. The example I'm modelling this after is here:

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

However on the DataBinding event of the user control for GridInsertionObject, I need to get one variable from the parent form, which is the ID of a row in a related table, which is required on insert to tie the inserted row to its parent. I've tried the mechanism here:

http://www.telerik.com/help/aspnet-ajax/grdinsertingvaluesusercontrolformtemplate.html

but that doesn't work. In the end, I store the ID I need in a session variable, but I'm not happy with that approach. Is there a simple way to do what I need to do?

Thanks, Steve

Veli
Telerik team
 answered on 06 Aug 2010
1 answer
62 views

How do I bind the Custom Field to the TreeView Node so that in javascript, I can get "Custom1" and "Custom2" value.

DataTable tb = new DataTable(); 
tb.Columns.Add("ID"); 
tb.Columns.Add("ParentID"); 
tb.Columns.Add("Name"); 
tb.Columns.Add("Custom1"); 
tb.Columns.Add("Custom2"); 
    
// add item to the datatable 
    
TreeView1.DataSource = tb; 
TreeView1.DataBind();

 

<telerik:RadTreeView ID="TreeView1" runat="server" Skin="Default" DataFieldID="ID" DataFieldParentID="ParentID" DataTextField="Name">
    <DataBindings>
        <telerik:RadTreeNodeBinding Expanded="True" TextField="Name" ValueField="ID" />
    </DataBindings>
</telerik:RadTreeView>

Thanks in advance.
Yana
Telerik team
 answered on 06 Aug 2010
1 answer
108 views
Hey guys,

I am binding to our company exchange server and grouping by 2 conference room resources in the Scheduer Instance. Was able to add them as required attendees when creating appointments.

The issue I am having is that the meeting in my calendar takes the subject from the appointment created in the scheduler, while the conference room calendar shows my name as the subject... Strangely enough, debugging on the client side, I can see that the calendaritem object has the subject properly inherited from the scheduler...

Here is a screenshot from my Outlook Calendar...

Any help is greatly appreciated!

Thanks,

Sergiu Pascutiu


Sergiu
Top achievements
Rank 2
 answered on 05 Aug 2010
7 answers
170 views
Even though it makes the title of this thread invalid, I have simplified the problem in the next post...
iTools
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
336 views

 

I have a column defined something like this:
<
rada:GridTemplateColumn >

 

 

<HeaderTemplate>headertext</HeaderTemplate>

 

 

<ItemTemplate>
...

 

 

</ItemTemplate>

 

 

 

 

 

</rada:GridTemplateColumn>

 




Is there a way to dynamically hide or show this column in the code behind depending on when I need it?

I know I can hide a

GridBoundColumn

 by calling this:

rg.Columns.FindByDataField(

"Columnname").Visible = false;

but haven't figured out GridTemplateColumn yet.

 

Mike Causi
Top achievements
Rank 1
 answered on 05 Aug 2010
4 answers
177 views
Hi. Is there any way that I can get a LinkButton that's on the same page as a Grid to generate an 'InitInsert' command so that a new grid row can be entered by a user? For UI design reasons, I'm not able to include the LinkButton within a Grid CommandItemTemplate - it needs to be a separate LinkButton that's located in the page sidebar.
Regards.
Ian
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
48 views
Is it possible to attach a asp.net/custom control to the pane header? Please see the attachment to see what I mean byt that.

Thanking you for your earliest attention
Suraj
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
144 views
Hi,

I have read the article on "Disabling the Anchor tab on the Link Manager" and that seems straight forward but I want to add a new property, tracktag,  to the Hyperlink Manager tab - is this possible?

I have looked in the LinkManager.ascx and this seems fine and I can create a new field and label for my tracktag property but how do:
  1. Save the tracktag property in to an attribute in the created anchor link
  2. retrieve the value of the tracktag if its an existing anchor link

It really would be a pain if I had to create new customised dialogs for this purpose.

Also, is there any detailed information regarding radeditor extensions and they seem to be in snipets all over the place.

Thanks,
Graham

 

Dobromir
Telerik team
 answered on 05 Aug 2010
2 answers
312 views
I am using radtextbox on a form with no radgrid.  I am trying to find the control using the findcontrol method but I have not been successful.   The code is very simple:

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server"
 Skin="WebBlue" />  
 
<div  class="tablediv">
<div class="rowdiv">
 
<div  class="celldivleft">First Name:</div>
<div  class="celldivright">
    <asp:TextBox ID="FirstNameBox" runat="server"></asp:TextBox></div>
</div>   
     
<div class="rowdiv">
 
<div  class="celldivleft">Last Name:</div>
<div  class="celldivright">
    <asp:TextBox ID="LastNameBox" runat="server"></asp:TextBox></div>
 </div>  
  
<div class="rowdiv">
<div  class="celldivleft">Last Name:</div>
<div  class="celldivright"><telerik:RadTextBox ID="RadTextBox1" runat="server">
    </telerik:RadTextBox></div>
     
</div>
     
       
    <div class="rowdiv">
     
        <div  class="celldivleft">
         
        </div>
         
        <div  class="celldivright">
         
            <asp:Button ID="SubmitButton" runat="server" Text="Submit"
        onclick="SubmitButton_Click" />
        </div>
    </div>
     
</div>
  
 
</asp:Content>

And the code behind to find the control:

protected void Page_InitComplete(object sender, EventArgs e)
    {
          RadTextBox rtb = (this.Page.FindControl("RadTextBox1") as RadTextBox);
 
    }

No matter what I do rtp comes up null...cannot find control.   I am new to Telerik so it is probably something stupid but can you help?

Thanks,

Eric
Eric Schuler
Top achievements
Rank 1
 answered on 05 Aug 2010
4 answers
259 views
Hi guys,

Appreciate if someone could share with me on how can I get RadAsyncUpload working in web farm environment.

On this page it mentioned the control supports Web Farm scenarios.
http://www.telerik.com/help/aspnet-ajax/async-upload-overview.html

By the way, setting the TargetFolder to a dedicated file server is not an option.
And I am using version 2010.2.713.35.

Any help would be greatly appreciated.

Thank you.
Eric Wong
Top achievements
Rank 1
 answered on 05 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?