Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
87 views
If there's anyone out there who (just like me) builds their appointments with codebehind and the Subject-property.

To be able to use HTML from codebehind, just add the AppointmentTemplate like this (In the markup)

<AppointmentTemplate> 
    <%#Eval("Subject") %> 
</AppointmentTemplate> 

This way it evaluates all the HTML, instead of rendering it as plain text.


wima
Top achievements
Rank 1
 answered on 04 Jun 2009
3 answers
404 views
hello to all,

               i would like ask help to you all guys who knows very about the menu control, here's my question i have a menu here and 2 main items which namely Product and Department ..now what should i do to have a submenu under the product without affecting the department during design.  here's my figure

Department
Product      ---> Milk --> (undermilk we have) Nedo
                                                                      Bearbrand
                                                                      and so on..(when the user click this submilk item it will redirect to other page)

how can i do that..please help

sample codes is highly appreciated

thanks
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2009
1 answer
125 views
I have an API that will handle all the updates to my data so I don't want to use the automatic updates.

I can't find any good examples of doing binding, updating, inserting and deleting all manually WITHOUT an autogenerated editform.

Anyone have any example you can point me to or share?

I think the part I'm having the most trouble with is working with the non-autogenerated editform.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2009
2 answers
128 views
Hi,

I tried to set fill color into mark zone on window properties.  Those selected colors disappear once I close the window.  I also did manually to type into the source code however there were not good results.  May I have your suggestion?  I would like to have some text in the marked zone, is it possible?

Regards,

Duy
Duy
Top achievements
Rank 1
 answered on 04 Jun 2009
2 answers
235 views
I have a nested view in my radgrid so that, when you expand an item you see the details of the item.  One of the things in there is a checkbox that changes a status.  I have it firing a standard checkbox event method (i.e. chkThisBox_CheckChanged(object sender, EventArgs e)...).  It updates the database.  I also have it rebinding the radgrid.  What I want to do is, after rebinding the radgrid, re-select and re-expand the item that was changed.  Here's what I have, which does not work:
    protected void chkApprehended_CheckChanged(object sender, EventArgs e)  
    {  
        var apprehended = ((CheckBox) sender).Checked;  
        var mwId = RadGrid1.SelectedValue.ToString();  
        var p = Person.GetWantedPerson(mwId);  
        p.Apprehended = apprehended;  
        p.ApprehendedDate = DateTime.Now;  
        Person.ApprehendPerson(p);  
        var thisRow = RadGrid1.SelectedItems[0];  
        RadGrid1.Rebind();  
        thisRow.FireCommandEvent("ExpandCollapse"new EventArgs());  
//        thisRow.Selected = true;  
//        thisRow.Expanded = true;  
    }  
 
I also have a RadGrid1_ItemCommand method that handles several commands, including the ExpandCollapse command.  But the line that has FireCommandEvent doesn't fire off the itemcommand method.  What am I missing here, and is this possible without client side code?

Thanks!

Eddie
Lee
Top achievements
Rank 2
 answered on 04 Jun 2009
1 answer
113 views
This might seem like a simple answer--but I can't seem to figure it out right now.

I have a RADTabStrip with a RADmultipage. When I launch the page, TAB1 the initial TAB but it shows as if its empty. In order for me to see the contents of TAB1, I have to click on TAB2 then click back on TAB1 and then the contents of TAB1 are shown.

Is this by default? Thanks!!!


PJ
PJ Rodriguez
Top achievements
Rank 1
 answered on 03 Jun 2009
2 answers
236 views
The preserve client state feature does not work right when window's RestrictionZoneID property is set. The windows height and width reverts to original for some reason. See sample code.
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"
    <div id="restrictionZone" style="border: 1px dotted #000000; width: 99%; height: 95%; 
        position: relative;"> 
        <table cellpadding="1" cellspacing="1" style="height: 65px; position: absolute; bottom: 0px;"
            <tr> 
                <td id="portfolioZone" style="width: 230px;"
                </td> 
                <td id="banchmarkZone" style="width: 230px;"
                </td> 
            </tr> 
        </table> 
    </div> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" KeepInScreenBounds="true" 
        RestrictionZoneID="restrictionZone" EnableViewState="False" PreserveClientState="True"
        <Windows> 
            <telerik:RadWindow ID="portfolio" runat="server" NavigateUrl="#" 
                ShowContentDuringLoad="True" VisibleOnPageLoad="True" ReloadOnShow="False" VisibleStatusbar="False" 
                Left="0" Top="0" Width="300" Height="300" MinimizeZoneID="portfolioZone"
            </telerik:RadWindow> 
            <telerik:RadWindow ID="banchmark" runat="server" NavigateUrl="#" ShowContentDuringLoad="True" 
                VisibleOnPageLoad="True" ReloadOnShow="False" VisibleStatusbar="False" Left="0" 
                Top="0" Width="300" Height="300" MinimizeZoneID="banchmarkZone"
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
</asp:Content> 

Maxim
Top achievements
Rank 1
 answered on 03 Jun 2009
3 answers
781 views
I have a GridTemplateColumn with a RadComboBox in the EditItemTemplate:
<telerik:GridTemplateColumn DataField="Priority" DataType="System.Int32"  HeaderText="Priority" SortExpression="Priority" UniqueName="Priority"
    <EditItemTemplate> 
        <telerik:RadComboBox ID="comboPriority" runat="server"></telerik:RadComboBox> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 


<asp:LinqDataSource ID="LinqTasks" runat="server" ContextTypeName="SWcom.SWDataContext" EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="Tasks"
</asp:LinqDataSource> 

The combo is populated in code-behind, in the RadGrid's ItemDataBound event:
    public Dictionary<string, int> Priors = new Dictionary<string, int>() 
    { 
        { "Low",    -1     }, 
        { "Normal",  0     }, 
        { "High",    1     } 
    }; 
     
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
        { 
            GridEditableItem eeditItem = e.Item as GridEditableItem; 
            RadComboBox combo = (RadComboBox)editItem.FindControl("comboPriority"); 
             
            combo.DataSource = Priors
            combo.DataTextField = "Key"
            combo.DataValueField = "Value"
            combo.DataBind(); 
            combo.SelectedValue = ((SWcom.Task)editItem.DataItem).Priority.GetValueOrDefault(0).ToString(); 
        }  
    } 


This works fine when I open a row for editing, but when I click 'update', the new selected value from the combobox is not saved in the database. I'm using a simple LinqDataSource (see above). I'm sure I have missed something obvious, but I can't find it. 

Also, is there a more elegant or better way to get a key/value list bound to a combobox instead of a Dictionary?

Thanks!
oVan
Lee Nessling
Top achievements
Rank 1
 answered on 03 Jun 2009
0 answers
104 views
Hi,

I am reposting my question as a new thread here. 
I am trying to deploy my application from my development machine to the client test server. The application works well on my development machine and one of our local servers. 
After a postback(from a button)  it throws 'sys.argumentnullexception:Value cannot be null. Parameter name:id Javascript error and does not do anything.
The error is from grid.get_masterTableView(). The grid is databound in the button postback.
Servers are both Windows 2003 and my development machine is XP. I am using 2009 Q1 version of telerik controls

I was able to reproduce this scenerio on one of our spare machine (also a XP). Here is what I did on that:
I installed telerik controls and my application started working without the javascript errors. Out of curiosity I then uninstalled telerik controls from the machine. My application still works without issues.
Thats make me think that its not the install per se, but during the install telerik is making some setting change which was missing earlier. Anybody have any idea what this could be? I will have to do it manually on the client test server because I cannot install/uninstall telerik controls on that machine.
Also, the version I installed was 2009 Q1(without the SP) so I had to go through the step of reinstalling SMdiagnostics.dll and System.Runtime.Serialization.dll in the GAC. Could this have fixed the issue?
Thanks.
sp
Top achievements
Rank 1
 asked on 03 Jun 2009
1 answer
122 views
Hi everyone,

I have an issue when navigate through the differente pages of a radgrid.
My form has a Radmultipage control with two radpageviews.

The Radgrid is on radpageview 2.

When I use all others controls from radpageview 2 everything is correct, the call has a isPostback status equals to true.

But if i change the page using radgrid pager, the call enters the loadpage event with a isPostback status equals to false.
The radpageview 2 renders correctly (the rad grid is showing the correct page with the correct data) but the radpageview 1 has all its controls resetting losing all the informations.

Is it normal that this call has a ispostback status equals to false?

thank you and have good day.
regis
Top achievements
Rank 1
 answered on 03 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?