Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
92 views
Hi,

following is my code for drag assignments in Rad Schedular

var lastArgs = null;
var lastContext = null;
var longTouchID = 0;
var menuShown = false;
function longTouch()
{
    longTouchID = 0;
    menuShown = true;
    var scheduler = $find('RadScheduler1');
    var eventArgs = null;
    var target = null;
   
    
        target = scheduler.getAppointmentFromDomElement(lastContext.target);
        eventArgs = new Telerik.Web.UI.SchedulerAppointmentContextMenuEventArgs(target, lastContext);
        MoveAssignments(eventArgs);
    
}

But I am unable to find the next day of the current appointment date
with the use of  eventArgs.get_newStartTime() 

please help me it very impotent and very urgent for our team.

Thanks,


K. R.Murthii
Top achievements
Rank 1
 answered on 01 Oct 2013
4 answers
238 views
Hi All,

Whenever an exception error is thrown, the Application_Error (in Global.ascx) is fired, but neither Response.Redirect or Server.Transfer works.

I tried the same thing with Page_Error (on individual page), it works.

Is there any workaround to make it works in Application_Error like it is in Page_Error?

Thanks All.
LamKhoa
Top achievements
Rank 1
 answered on 01 Oct 2013
5 answers
87 views
HI all i have a radgrid that its scrollable, but that doesnt happen and the columns are over each other? my problem is get the columns all tidy and add a horizontal scroll bar to it.

Best Regards
Shinu
Top achievements
Rank 2
 answered on 01 Oct 2013
0 answers
51 views
i have a ticket  (www.telerik.com/community/forums/aspnet-ajax/general-discussions/print-out-all-page-in-project.aspx) but no one help me to resolve.

i want to get some knowledge about print css with telerik control. Can i

print out every page in projectusing print css with Telerik Control?

please help me (!important)

thanks,

nguyen
Top achievements
Rank 1
 asked on 01 Oct 2013
2 answers
215 views
Hi,

I have a field in the RadMaskedTextBox RadGrid in edit mode and I have a Handler on TextChanged this field to set a default value in another field in the input value. By the postback, I lose the information contained in my other fields that are not updated by the action of the TextChanged. What is the best strategy to solve this problem and keep data into field1 and field2?

Field1 (textbox), Field2 (textbox), Field3 (textchanged), Field4 (set default value by field3 textchanged from server-side)

Thank you.


Allin
Top achievements
Rank 1
 answered on 30 Sep 2013
6 answers
593 views
I am using an upload control:

<telerik:RadAsyncUpload runat="server" ID="uxUpload" OnClientFileUploaded="clientFileUploaded"
    MultipleFileSelection="Automatic" TemporaryFolder="~/App_Data/TemporaryFileUpload"
    Skin="" OnFileUploaded="uxUpload_FileUploaded" DropZones=".uploading-section">
</telerik:RadAsyncUpload>

with an UpdatePanel:

<asp:UpdatePanel runat="server" ID="UpdatePanel1" ChildrenAsTriggers="true" UpdateMode="Conditional">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="uxUpload" EventName="FileUploaded" />
    </Triggers>
    <ContentTemplate>
      stuff
    </ContentTemplate>
</asp:UpdatePanel>

After uploading a file (or files), the UpdatePanel is updated, but the RadAsyncUpload's upload button no longer works.  The textbox portion of the upload section is also now a regular textbox (previously clicking it triggered a File dialog).  Is there any javascript I need to run after the UpdatePanel's AJAX response to fix the Upload control?
Hristo Valyavicharski
Telerik team
 answered on 30 Sep 2013
3 answers
265 views
I am considering recommending to avoid using Telerik controls in our web development. They have been a cause for frustration and productivity loss for me, instead of being the opposite, first with the RadGrid control now with the charts. It starts great - with a few clicks you can have a skinned control running. But if you want something specific to your user needs, even if it's quite simple - forget about it! You want multi-row edit and update in RadGrid? Sure - but unless you customize, you'll be updating ALL rows, even the ones that have not changed. You don't want child items to be automatically expanded when you expand parent groups? - Get ready to figure out exactly how grouping is implemented under the hood and bugs it might have and then hack around it. Want to use Rad Ajax Manager? Sure, but just for the fun of it will change the order in which your controls get data-bound.
Here's a simple task for a prototype we are trying to put together:
A stacked bar chart coming from a simple data table. Forget stacked chart, let's have a regular bar chart that will have the multiple series displayed on it. Drag and drop, right? Right, but it doesn't work.

Here's what I have, resulting (messed up) chart is attached. How do I get my FUND_GROUP_NAME series to be displayed within the corresponding PROG_NAMEs?

<telerik:RadChart ID="RadChart1" runat="server"
        DataGroupColumn="FUND_GROUP_NAME" DataSourceID="ProgramsDataSource"
        Height="303px" Width="968px" SeriesOrientation="Horizontal">
        <Series>
<telerik:ChartSeries Name="Capital Projects                                  "
                DataYColumn="TOT_END_BUDGET"></telerik:ChartSeries>
<telerik:ChartSeries Name="Fish and Game Fund                                "
                DataYColumn="TOT_END_BUDGET"></telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="General Fund                                      ">
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="Grant Funds                                       ">
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="Library Fund                                      ">
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="Library Special Tax Zone                          ">
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="Measure A                                         ">
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="Property Development Funds                        ">
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="Redevelopment                                     ">
            </telerik:ChartSeries>
            <telerik:ChartSeries DataYColumn="TOT_END_BUDGET"
                Name="Road Fund                                         ">
            </telerik:ChartSeries>
</Series>
<PlotArea><XAxis DataLabelsColumn="PROG_NAME">
    <AxisLabel>
        <Appearance RotationAngle="270">
        </Appearance>
    </AxisLabel>
    <Items>
<telerik:ChartAxisItem Value="1">
<TextBlock Text="Capital Projects"></TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="2">
<TextBlock Text="General Government"></TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="3">
<TextBlock Text="Public Protection"></TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="4">
<TextBlock Text="Contingency & Reserves"></TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="5">
<TextBlock Text="Health Care Services"></TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="6">
<TextBlock Text="Non Program Activities"></TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="7">
<TextBlock Text="Public Assistance"></TextBlock>
</telerik:ChartAxisItem>
<telerik:ChartAxisItem Value="8">
<TextBlock Text="Cultural, Recreation & Education"></TextBlock>
 
<ActiveRegion Tooltip="Cultural, Recreation & Education"></ActiveRegion>
</telerik:ChartAxisItem>
</Items>
    </XAxis>
    <YAxis>
        <AxisLabel>
            <Appearance RotationAngle="0">
            </Appearance>
        </AxisLabel>
    </YAxis>
    <YAxis2>
        <AxisLabel>
            <Appearance RotationAngle="0">
            </Appearance>
        </AxisLabel>
    </YAxis2>
        </PlotArea>
    </telerik:RadChart>
 <asp:SqlDataSource ID="ProgramsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:db2dConnectionString %>"
        ProviderName="<%$ ConnectionStrings:db2dConnectionString.ProviderName %>" SelectCommand="SELECT F.FUND_GROUP_NAME, P.PROG_NAME, SUM(DB.END_BUDGET) AS TOT_END_BUDGET 
    FROM BUAOWN.BU_ACCOUNT       A,  
         BUAOWN.BU_DEV_BUDGET    DB,  
         BUAOWN.BU_FUND          F,
         BUAOWN.BU_DEV_FUND_ORG  DFO,
         BUAOWN.BU_DEV_FUND_PROG DFP,
         BUAOWN.CAO_MAJOR_GROUP  MG,
         BUAOWN.CAO_PROGRAM      P,  
         BUAOWN.CAO_DEPARTMENT   D,  
         BUAOWN.BU_ACCOUNT_CODE  AC
   WHERE ( DB.ACCOUNTING_YEAR   = DFO.ACCOUNTING_YEAR ) and 
         ( DB.SCENARIO_CODE     = DFO.SCENARIO_CODE   ) and 
         ( DB.ORG_CODE          = DFO.ORG_CODE        ) and 
         ( DB.FUND_CODE         = DFO.FUND_CODE       ) and 
         ( DB.ACCOUNTING_YEAR   = DFP.ACCOUNTING_YEAR ) and 
         ( DB.SCENARIO_CODE     = DFP.SCENARIO_CODE   ) and 
         ( DB.ORG_CODE          = DFP.ORG_CODE        ) and 
         ( DB.FUND_CODE         = DFP.FUND_CODE       ) and 
         ( DB.PROGRAM_CODE      = DFP.PROGRAM_CODE    ) and 
         ( DFO.PROG_CODE        = P.PROG_CODE         ) and
         ( DFP.DEPT_CODE        = D.DEPT_CODE         ) and
         ( F.FUND_CODE          = DB.FUND_CODE        ) and 
         ( DB.ACCOUNTING_YEAR   = A.ACCOUNTING_YEAR   ) and 
         ( A.ACCOUNTING_YEAR    = MG.ACCOUNTING_YEAR  ) and 
         ( A.MAJOR_GRP_CODE     = MG.MAJOR_GRP_CODE   ) and 
         ( DB.ACCOUNT_CODE      = A.ACCOUNT_CODE      ) and 
         ( DB.ACCOUNT_CODE      = AC.ACCOUNT_CODE     ) and
         ( DB.END_BUDGET       <> 0                   )
 
GROUP BY F.FUND_GROUP_NAME, P.PROG_NAME"></asp:SqlDataSource>
here's the resulting data table from my data source:
Capital Projects Capital Projects 120264742.00
Capital Projects General Government 8684000.00
Fish and Game Fund Public Protection 7310.00
General Fund Capital Projects 9454429.00
General Fund Contingency & Reserves 49961067.00
General Fund General Government 163825697.00
General Fund Health Care Services 498250248.00
General Fund Non Program Activities 59448630.00
General Fund Public Assistance 653448182.00
General Fund Public Protection 518568622.00
Grant Funds General Government 39827409.00
Grant Funds Health Care Services 46075483.00
Grant Funds Public Assistance 30394240.00
Grant Funds Public Protection 21064091.00
Library Fund Cultural, Recreation & Education 28195269.00
Library Special Tax Zone Cultural, Recreation & Education 1030899.00
Measure A Health Care Services 22008349.00
Property Development Funds Capital Projects 61296804.00
Redevelopment General Government 53880662.00
Road Fund Public Ways & Facilities 68539768.00

Marin Bratanov
Telerik team
 answered on 30 Sep 2013
2 answers
121 views
I am trying to cancel postback when the dropdown is closed, something similar to what is happening here, http://www.telerik.com/help/aspnet-ajax/treeview-onclientnodeclicking.html.

function ClientNodeClicking(sender, eventArgs) {
        var node = eventArgs.get_node();
        if (node.get_text() == "Search") {
            eventArgs.set_cancel(true);
        }
    }
How can I go about doing the same thing for the RadDropDownTree? The functionality on the client side event OnClientDropDownClosed should do the trick. Thanks, Tauqir.

Tauqir
Top achievements
Rank 1
 answered on 30 Sep 2013
1 answer
36 views
var b=(!this._isSticky)?$get(this.get_element().id+k):this.get_element();
var i=new Date();
if(b==null){return;
}var j=i-b._startDisplayTime;
var f=this._minDisplayTime;
var e=new Telerik.Web.UI.AjaxLoadingPanelEventArgs(b,d);
this.raise_hiding(e);
if(!e.get_cancelNativeDisplay()){var a=this.get_animationDuration();
if(this._isSticky){if(f>j){window.setTimeout(function(){if(a>0){$telerik.$(b).fadeOut(a,function(){b.style.display="none";
});
}else{b.style.display="none";
}},f-j);
}else{if(a>0){$telerik.$(b).fadeOut(a,function(){b.style.display="none";
});
}else{b.style.display="none";
}}}else{if(f>j){window.setTimeout(function(){if(a>0){$telerik.$(b).fadeOut(a,function(){b.parentNode.removeChild(b);
});
}else{b.parentNode.removeChild(b);
}},f-j);
}else{if(a>0){$telerik.$(b).fadeOut(a,function(){b.parentNode.removeChild(b);
});
}else{b.parentNode.removeChild(b);
}}}}

I have a masterpage with a toolbar and RadAjaxManager control and the content page has the RadAjaxManagerProxy and RadAjaxLoadingPanel.  When users accidently double clicks the toolbar button, Loading panel wait screen shows up and Never goes away.  Single click works fine.  When I run this inside Visual Studio I get a JavaScript error message: JavaScript runtime error: Unable to get property 'removeChild' of undefined or null reference.  This is originating from the line: b.parentNode.removeChild(b). 
I am using version 2013.1.417.40. 
Daniel
Telerik team
 answered on 30 Sep 2013
1 answer
68 views
Hi,
i created a custom Skin using Visual style builder. The Skin is basically accepted but for some reason there is a rb-vertical-component added (see screenshot). How to hide this part?
Bozhidar
Telerik team
 answered on 30 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?