Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
223 views
I have Sql Database and I want to bind it through LINQ from code-behind programmatically in C#.NET. How can I do that?

I have the following code written:

public void populatetree()
    {

        using (DataClasses1DataContext db = new DataClasses1DataContext())
        {
            MsgType mt=new MsgType();
            RadTreeView1.DataFieldParentID = mt.ParentID.ToString();
            RadTreeView1.DataFieldID = mt.ID.ToString();
            RadTreeView1.DataValueField = mt.ID.ToString();
            RadTreeView1.DataTextField = mt.Name;
            RadTreeView1.ToolTip = mt.Description;
           RadTreeView1.DataSource= ?
   
            RadTreeView1.DataBind();
            
        }
    }
what shud I do for the datasource?
Richard
Top achievements
Rank 1
 answered on 31 Jan 2012
2 answers
593 views
Hi guys

I want to call buttonClick event from javascript

 <telerik:RadToolBar ID="_rtooMenu" runat="server" Width="100%" dir="rtl">
            <Items>
                <telerik:RadToolBarButton runat="server" Text="Save" Value="Save" Owner="_rtooMenu" PostBack="true">
                </telerik:RadToolBarButton>
            </Items>
</telerik:RadToolBar>

<script type="text/javascript">
         function FunctionFoundByJavascriptThroughLayersAndLayersOfControls() {
__dopostback ????
         }
    </script>

 Protected Sub _rtooMenu_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles _rtooMenu.ButtonClick
'I want FunctionFoundByJavascriptThroughLayersAndLayersOfControls to get here

end sub
Bill Togkas
Top achievements
Rank 2
 answered on 31 Jan 2012
4 answers
401 views

Hello all

if i put this code into the head section of my master page,
items are 10 pix height as expected, but only on vstudio2008 webdevserver, not on production server (w2k3).

<style type="text/css">
.RadListBox span.rlbText  { padding:0; line-height:10px; }
</style>

the only differences in ie8 sourcetext compare are things like this: <link href="/WebResource.axd?d=Xv_vuQIqd...blabla
Maybe there is a better way to set the line height of my listbox items, the default height is much too big for my taste.
i am a bit lost...
Any ideas?

Jean-Francois Lussier
Top achievements
Rank 1
 answered on 31 Jan 2012
1 answer
68 views
Hi there. First, sorry about my english.

We have a project on Visual Studio 2010 and we had implement the demo of the MDI application and works great but when we implement an ajax request to get the url of the window to be open, everything go fine until the tabstrip call the repaint method and because of this, the minimize window doesn't work. The question is How can a fix this situation??



Thanks in Advance
Oscar
Top achievements
Rank 1
 answered on 31 Jan 2012
3 answers
64 views
How do I switch between showing a Listview with pictures to a more grid0like view. It must use JavaScript and/or Ajax not repaint the whole screen.
Andrey
Telerik team
 answered on 31 Jan 2012
1 answer
78 views

Hello,

I am using radgrid in my web appliaction i want to disable the radgrid on certain conditions,so i am using radgrid.enable=false at server side. It is working fine in IE but in mozilla and safari its not disabled its still enabled.

How to make radgrid disabled in mozilla and safari? please help me....

Richard
Top achievements
Rank 1
 answered on 31 Jan 2012
9 answers
171 views
I have following test code and I cannot get the Active Region to work, any help would be highly appreciated

<telerik:RadChart ID="RadChart3" runat="server" Skin="Mac" Width="900" Height="500"
            <Series> 
                <telerik:ChartSeries ActiveRegionUrl="javascript:alert('123')" Name="testSeries" Type="Line" > 
                    <Items> 
                        <telerik:ChartSeriesItem ActiveRegion-Url="javascript:alert('item1')" XValue="1" YValue="12"></telerik:ChartSeriesItem>  
                        <telerik:ChartSeriesItem ActiveRegion-Url="javascript:alert('item2')" XValue="2" YValue="15"></telerik:ChartSeriesItem>  
                        <telerik:ChartSeriesItem ActiveRegion-Url="javascript:alert('item3')" XValue="3" YValue="20"></telerik:ChartSeriesItem>  
                    </Items> 
                </telerik:ChartSeries> 
            </Series> 
            <PlotArea> 
               <XAxis LayoutMode="Inside" AutoScale="false" LabelStep="10" > 
                    <Appearance ValueFormat="Number" MajorGridLines-Visible="false"
                        <LabelAppearance RotationAngle="45" Position-AlignedPosition="Top"
                        </LabelAppearance> 
                    </Appearance> 
                </XAxis> 
                <YAxis IsZeroBased="true"
                </YAxis> 
            </PlotArea> 
    </telerik:RadChart> 
 
Ves
Telerik team
 answered on 31 Jan 2012
3 answers
62 views
Hello,

I have a textbox control in raddock content and click on it to give it the focus. When I click the collapse command button, the content area is hidden (including the textbox) but the blinking caret still visible. Even typing will go into the textbox even though the caret does not move at all.

This is observed only under IE9. In other browsers, the textbox will lose the focus when clicking the collapse button so the above behaviour does not occur.
Slav
Telerik team
 answered on 31 Jan 2012
1 answer
79 views
I have a RadColorPicker (Telerik) inside of a HTML tablecell. The HTML table is within a RadPane that is vertically scrollabe. As soon as the user starts scrolling, the RadColorPicker stays at the same position and is thus 'floating' up and down the screen. I have inserted javascript to stop the colorpalette from floating, thats not the issue.

Any ideas as to how I can make the colorpicker move with the rest of the elements?

The problem happens only on IE 9.0.4.

Thanks
Slav
Telerik team
 answered on 31 Jan 2012
0 answers
131 views
hi i am zaib ali mughal
i have got a error when i reset password
i am getting this error
Exception Details: Nolics.ORMapper.Base.NolnetException: The object belongs already into a different transaction


  pass = Telerik.Security.UserManager.Default.MembershipProvider.ResetPassword(custObj.Username, "no");

i am updating user password through above code and i got this when i click on link which i recieve through email can you help me how can i handle this issue

Thank you
zaib
Top achievements
Rank 1
 asked on 31 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?